@@ -77,11 +77,11 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // Remove all beans and daos from junction tables |
| 79 | 79 | $junctionTables = $this->schemaAnalyzer->detectJunctionTables(); |
| 80 | - $junctionTableNames = array_map(function (Table $table) { |
|
| 80 | + $junctionTableNames = array_map(function(Table $table) { |
|
| 81 | 81 | return $table->getName(); |
| 82 | 82 | }, $junctionTables); |
| 83 | 83 | |
| 84 | - $tableList = array_filter($tableList, function (Table $table) use ($junctionTableNames) { |
|
| 84 | + $tableList = array_filter($tableList, function(Table $table) use ($junctionTableNames) { |
|
| 85 | 85 | return !in_array($table->getName(), $junctionTableNames); |
| 86 | 86 | }); |
| 87 | 87 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | // Ok, let's return the list of all tables. |
| 95 | 95 | // These will be used by the calling script to create Mouf instances. |
| 96 | 96 | |
| 97 | - return array_map(function (Table $table) { return $table->getName(); }, $tableList); |
|
| 97 | + return array_map(function(Table $table) { return $table->getName(); }, $tableList); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | $usedBeans[] = $beanClassName; |
| 288 | 288 | // Let's suppress duplicates in used beans (if any) |
| 289 | 289 | $usedBeans = array_flip(array_flip($usedBeans)); |
| 290 | - $useStatements = array_map(function ($usedBean) { |
|
| 290 | + $useStatements = array_map(function($usedBean) { |
|
| 291 | 291 | return "use $usedBean;\n"; |
| 292 | 292 | }, $usedBeans); |
| 293 | 293 | |
@@ -587,7 +587,7 @@ discard block |
||
| 587 | 587 | $pos = strpos($str, ' '); |
| 588 | 588 | } |
| 589 | 589 | $before = substr($str, 0, $pos); |
| 590 | - $after = substr($str, $pos + 1); |
|
| 590 | + $after = substr($str, $pos+1); |
|
| 591 | 591 | $str = $before.strtoupper(substr($after, 0, 1)).substr($after, 1); |
| 592 | 592 | } |
| 593 | 593 | |