@@ -228,7 +228,7 @@ |
||
228 | 228 | |
229 | 229 | if (!empty($query) && !empty($searchColumn)) { |
230 | 230 | $records = DBM::model($model, $tableName) |
231 | - ->where($searchColumn, 'LIKE', '%' . $query . '%') |
|
231 | + ->where($searchColumn, 'LIKE', '%'.$query.'%') |
|
232 | 232 | ->paginate($perPage); |
233 | 233 | } |
234 | 234 |
@@ -21,6 +21,6 @@ |
||
21 | 21 | |
22 | 22 | $type = $fieldDeclaration['autoincrement'] ? 'smallserial' : 'smallint'; |
23 | 23 | |
24 | - return $type . $commonIntegerTypeDeclaration; |
|
24 | + return $type.$commonIntegerTypeDeclaration; |
|
25 | 25 | } |
26 | 26 | } |
@@ -24,10 +24,10 @@ |
||
24 | 24 | $pdo = DB::connection()->getPdo(); |
25 | 25 | |
26 | 26 | // trim the values |
27 | - $fieldDeclaration['allowed'] = array_map(function ($value) use ($pdo) { |
|
27 | + $fieldDeclaration['allowed'] = array_map(function($value) use ($pdo) { |
|
28 | 28 | return $pdo->quote(trim($value)); |
29 | 29 | }, $allowed); |
30 | 30 | |
31 | - return 'set(' . implode(', ', $fieldDeclaration['allowed']) . ')'; |
|
31 | + return 'set('.implode(', ', $fieldDeclaration['allowed']).')'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public static function getPlatform($platformName) |
19 | 19 | { |
20 | - $platform = __NAMESPACE__ . '\\' . ucfirst($platformName); |
|
20 | + $platform = __NAMESPACE__.'\\'.ucfirst($platformName); |
|
21 | 21 | |
22 | 22 | if (!class_exists($platform)) { |
23 | 23 | throw new \Exception("Platform {$platformName} doesn't exist"); |
@@ -117,7 +117,7 @@ |
||
117 | 117 | public static function dateTime($milliseconds = null) |
118 | 118 | { |
119 | 119 | if (!is_int($milliseconds) || !is_float($milliseconds) || !is_string($milliseconds) || !$milliseconds instanceof \DateTimeInterface) { |
120 | - throw new \Exception($milliseconds . " integer or float or string or instance of DateTimeInterface"); |
|
120 | + throw new \Exception($milliseconds." integer or float or string or instance of DateTimeInterface"); |
|
121 | 121 | |
122 | 122 | } |
123 | 123 | return new UTCDateTime($milliseconds); |
@@ -80,11 +80,11 @@ |
||
80 | 80 | |
81 | 81 | if (!empty($query)) { |
82 | 82 | $users = DBM::model($user_model, $user_table) |
83 | - ->where('name', 'LIKE', '%' . $query . '%') |
|
83 | + ->where('name', 'LIKE', '%'.$query.'%') |
|
84 | 84 | ->paginate($perPage); |
85 | 85 | } |
86 | 86 | |
87 | - $users->getCollection()->transform(function ($user) use ($user_display_name) { |
|
87 | + $users->getCollection()->transform(function($user) use ($user_display_name) { |
|
88 | 88 | $user->permissions = DBM::Object() |
89 | 89 | ->setManyToManyRelation( |
90 | 90 | $user, |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | foreach ($seeds as $class) { |
21 | 21 | $file = $this->seedersPath.$class.'.php'; |
22 | - if (file_exists($file) && ! class_exists($class)) { |
|
22 | + if (file_exists($file) && !class_exists($class)) { |
|
23 | 23 | require_once $file; |
24 | 24 | } |
25 | 25 | with(new $class())->run(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('menu_items', function (Blueprint $table) { |
|
16 | + Schema::create('menu_items', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('menu_id'); |
19 | 19 | $table->string('title'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('dbm_user_permissions', function (Blueprint $table) { |
|
16 | + Schema::create('dbm_user_permissions', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->bigInteger('user_id'); |
19 | 19 | $table->bigInteger('dbm_permission_id'); |