@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | $colsItem = self::extractLines($code, $type); |
10 | 10 | |
11 | 11 | foreach ($colsItem as &$item) { |
12 | - $item = str_replace(' ','', $item); |
|
12 | + $item = str_replace(' ', '', $item); |
|
13 | 13 | // "['label'=>'KanapeType','name'=>'kanape_type',];\r\n" |
14 | 14 | |
15 | - $item = str_replace('\',]',']', $item); // replaces: ',] with ] |
|
15 | + $item = str_replace('\',]', ']', $item); // replaces: ',] with ] |
|
16 | 16 | // "['label'=>'KanapeType','name'=>'kanape_type];\r\n" |
17 | 17 | |
18 | 18 | $item = trim($item); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } elseif (strpos($s, 'callback') !== false) { |
132 | 132 | $colInnerItem['callback'] = self::parseCallback($s); |
133 | 133 | } else { |
134 | - $s = str_replace("'", '',$s); |
|
134 | + $s = str_replace("'", '', $s); |
|
135 | 135 | $sSplit = explode('=>', $s); |
136 | 136 | $colInnerItem[$sSplit[0]] = $sSplit[1]; |
137 | 137 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $columnScript[] = str_repeat(' ', 12).'$this->col[] = [];'; |
63 | 63 | foreach ($labels as $i => $label) { |
64 | 64 | |
65 | - if (! $name[$i]) { |
|
65 | + if (!$name[$i]) { |
|
66 | 66 | continue; |
67 | 67 | } |
68 | 68 |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | public static function first($table, $id) |
111 | 111 | { |
112 | 112 | $table = self::parseSqlTable($table)['table']; |
113 | - if (! is_array($id)) { |
|
113 | + if (!is_array($id)) { |
|
114 | 114 | $pk = DbInspector::findPK($table); |
115 | 115 | |
116 | 116 | return DB::table($table)->where($pk, $id)->first(); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $controllerName = basename($controllerName); |
144 | 144 | $route_url = route($controllerName.'GetIndex'); |
145 | 145 | |
146 | - if (! $path) { |
|
146 | + if (!$path) { |
|
147 | 147 | return trim($route_url, '/'); |
148 | 148 | } |
149 | 149 | |
@@ -171,11 +171,11 @@ discard block |
||
171 | 171 | |
172 | 172 | public static function listCbTables() |
173 | 173 | { |
174 | - $tables = array_map(function ($table) { |
|
174 | + $tables = array_map(function($table) { |
|
175 | 175 | return $table->TABLE_NAME; |
176 | 176 | }, DbInspector::listTables()); |
177 | 177 | |
178 | - $filter = function ($tableName) { |
|
178 | + $filter = function($tableName) { |
|
179 | 179 | |
180 | 180 | if ($tableName == config('database.migrations')) { |
181 | 181 | return false; |