summaryrefslogtreecommitdiffstats
path: root/scripts/mysqlGraph.php
diff options
context:
space:
mode:
authorSebastian Schmelzer2012-01-11 15:59:04 +0100
committerSebastian Schmelzer2012-01-11 15:59:04 +0100
commitac7df5d8551cbacf60f9adc770783a710737fa90 (patch)
tree6d4823587c44e1e5551a191e6a86547b41a52320 /scripts/mysqlGraph.php
parentfix stylecode output (diff)
downloadpbs2-ac7df5d8551cbacf60f9adc770783a710737fa90.tar.gz
pbs2-ac7df5d8551cbacf60f9adc770783a710737fa90.tar.xz
pbs2-ac7df5d8551cbacf60f9adc770783a710737fa90.zip
fix stupid checkstyle bugs .. once again..
Diffstat (limited to 'scripts/mysqlGraph.php')
-rw-r--r--scripts/mysqlGraph.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/mysqlGraph.php b/scripts/mysqlGraph.php
index 18eb9f6..1074325 100644
--- a/scripts/mysqlGraph.php
+++ b/scripts/mysqlGraph.php
@@ -44,14 +44,14 @@ $str = 'digraph x {
// get all table-fields
foreach($tables as $tablename => $data) {
- $str . = $tablename .' [label= "{';
+ $str .= $tablename .' [label= "{';
$array = array();
$array[] = strtoupper($tablename);
foreach($data as $d) {
$array[] = "<".$d['Field'].">".$d['Field'];
}
- $str . = implode("|", $array);
- $str . = '}",width=3];'.$b;
+ $str .= implode("|", $array);
+ $str .= '}",width=3];'.$b;
}
echo "Generate the Links ...\n";
@@ -64,7 +64,7 @@ foreach($tables as $tablename1 => $table1) {
$f2 = $field2['Field'];
if( $tablename1 != $tablename2 && $f1 == $f2 && strstr($f1, 'ID') && "pbs_".str_replace("ID", '', $f1) == $tablename1) {
// Draw lines to tables
- $str . = $tablename1 ." -> ".$tablename2.";".$b;
+ $str .= $tablename1 ." -> ".$tablename2.";".$b;
// draw lines to table-items
#$str .= $tablename1.":".$f1 ." -> ".$tablename2.":".$f2 .";".$b;
}
@@ -72,7 +72,7 @@ foreach($tables as $tablename1 => $table1) {
}
}
}
-$str . = "}";
+$str .= "}";
echo "Write to file ...\n";
// Create the dot file
$fp = fopen("mysqlGraph.dot", "w");