@@ -76,7 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $table = trim($table); |
| 78 | 78 | |
| 79 | - if (! static::tableExists($table)) { |
|
| 79 | + if (!static::tableExists($table)) { |
|
| 80 | 80 | throw SchemaException::tableDoesNotExist($table); |
| 81 | 81 | } |
| 82 | 82 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public static function create($table) |
| 89 | 89 | { |
| 90 | - if (! is_array($table)) { |
|
| 90 | + if (!is_array($table)) { |
|
| 91 | 91 | $table = json_decode($table, true); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public static function update($table) |
| 113 | 113 | { |
| 114 | - if (! is_array($table)) { |
|
| 114 | + if (!is_array($table)) { |
|
| 115 | 115 | $table = json_decode($table, true); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | public static function prepareTable($table) |
| 149 | 149 | { |
| 150 | - if (! is_array($table)) { |
|
| 150 | + if (!is_array($table)) { |
|
| 151 | 151 | $table = json_decode($table, true); |
| 152 | 152 | } |
| 153 | 153 | |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | return MongoDB::hasCollection($tableName); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - if (! SchemaManager::getInstance()->tablesExist($tableName)) { |
|
| 264 | + if (!SchemaManager::getInstance()->tablesExist($tableName)) { |
|
| 265 | 265 | throw SchemaException::tableDoesNotExist($tableName); |
| 266 | 266 | } |
| 267 | 267 | |
@@ -284,8 +284,8 @@ discard block |
||
| 284 | 284 | $options['path'] = Paginator::resolveCurrentPath(); |
| 285 | 285 | $items = static::all(); |
| 286 | 286 | $collection = $items instanceof Collection ? $items : Collection::make($items); |
| 287 | - if (! empty($query)) { |
|
| 288 | - $collection = $collection->filter(function ($value, $key) use ($query) { |
|
| 287 | + if (!empty($query)) { |
|
| 288 | + $collection = $collection->filter(function($value, $key) use ($query) { |
|
| 289 | 289 | return false !== stristr($value, $query); |
| 290 | 290 | }); |
| 291 | 291 | } |