@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | if (env('DEBUG_QUERY_LOG', true)) { |
| 39 | 39 | DB::listen( |
| 40 | - function (QueryExecuted $queryExecuted) { |
|
| 40 | + function(QueryExecuted $queryExecuted) { |
|
| 41 | 41 | var_dump($queryExecuted->sql); |
| 42 | 42 | var_dump($queryExecuted->bindings); |
| 43 | 43 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | protected function loadMigrationsFrom($paths): void |
| 59 | 59 | { |
| 60 | 60 | $paths = (is_array($paths)) ? $paths : [$paths]; |
| 61 | - $this->app->afterResolving('migrator', function ($migrator) use ($paths) { |
|
| 61 | + $this->app->afterResolving('migrator', function($migrator) use ($paths) { |
|
| 62 | 62 | foreach ((array) $paths as $path) { |
| 63 | 63 | $migrator->path($path); |
| 64 | 64 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('roles', function (Blueprint $table) { |
|
| 14 | + Schema::create('roles', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('role_id'); |
| 16 | 16 | $table->string('name'); |
| 17 | 17 | }); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('binary_roles', function (Blueprint $table) { |
|
| 14 | + Schema::create('binary_roles', function(Blueprint $table) { |
|
| 15 | 15 | $table->binary('role_id'); |
| 16 | 16 | $table->string('name'); |
| 17 | 17 | }); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | protected function getEnvironmentSetUp($app) |
| 14 | 14 | { |
| 15 | 15 | $app['config']->set('database.default', 'testing'); |
| 16 | - $app['router']->get('binary-users/{binaryUser}', function (TestBinaryUserHex $binaryUser) { |
|
| 16 | + $app['router']->get('binary-users/{binaryUser}', function(TestBinaryUserHex $binaryUser) { |
|
| 17 | 17 | return $binaryUser->toJson(); |
| 18 | 18 | })->middleware(SubstituteBindings::class); |
| 19 | 19 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } else { |
| 141 | 141 | //remap hex ID to binary ID even if index is not composite |
| 142 | 142 | if ($this->shouldProcessBinaryAttribute($keys[0])) { |
| 143 | - $ids = array_map(function ($hex) { |
|
| 143 | + $ids = array_map(function($hex) { |
|
| 144 | 144 | return hex2bin($hex); |
| 145 | 145 | }, $ids); |
| 146 | 146 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | return $this->newQueryWithoutScopes()->applyIds( |
| 172 | 172 | array_map( |
| 173 | - function ($normalizedKey) { |
|
| 173 | + function($normalizedKey) { |
|
| 174 | 174 | return $this->parseNormalizedKey($normalizedKey); |
| 175 | 175 | }, |
| 176 | 176 | $ids |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function apply($query) |
| 42 | 42 | { |
| 43 | - $query->where(function ($query) { |
|
| 43 | + $query->where(function($query) { |
|
| 44 | 44 | foreach ($this->ids as $compositeKey) { |
| 45 | 45 | // try to parse normalized key |
| 46 | 46 | if (!is_array($compositeKey)) { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - $queryWriter = function ($query) use ($compositeKey) { |
|
| 59 | + $queryWriter = function($query) use ($compositeKey) { |
|
| 60 | 60 | /* |
| 61 | 61 | * @var \Illuminate\Database\Query\Builder $query |
| 62 | 62 | */ |