@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('organizations', function (Blueprint $table) { |
|
16 | + Schema::create('organizations', function(Blueprint $table) { |
|
17 | 17 | $table->increments('organization_id'); |
18 | 18 | $table->string('name')->unique(); |
19 | 19 | $table->timestamps(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('users', function (Blueprint $table) { |
|
14 | + Schema::create('users', function(Blueprint $table) { |
|
15 | 15 | $table->unsignedInteger('user_id'); |
16 | 16 | $table->unsignedInteger('organization_id'); |
17 | 17 | $table->primary(['user_id', 'organization_id']); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('binary_users', function (Blueprint $table) { |
|
14 | + Schema::create('binary_users', function(Blueprint $table) { |
|
15 | 15 | $table->binary('user_id'); |
16 | 16 | $table->unsignedInteger('organization_id'); |
17 | 17 | $table->primary(['user_id', 'organization_id']); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('non_composite_users', function (Blueprint $table) { |
|
16 | + Schema::create('non_composite_users', function(Blueprint $table) { |
|
17 | 17 | $table->increments('user_id'); |
18 | 18 | $table->unsignedInteger('organization_id'); |
19 | 19 | $table->string('name')->unique(); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $this->seed(\TestUserNonCompositeSeeder::class); |
25 | 25 | $this->seed(\TestBinaryUserSeeder::class); |
26 | 26 | |
27 | - \DB::listen(function (QueryExecuted $queryExecuted) { |
|
27 | + \DB::listen(function(QueryExecuted $queryExecuted) { |
|
28 | 28 | var_dump($queryExecuted->sql); |
29 | 29 | var_dump($queryExecuted->bindings); |
30 | 30 | }); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | protected function loadMigrationsFrom($paths) |
44 | 44 | { |
45 | 45 | $paths = (is_array($paths)) ? $paths : [$paths]; |
46 | - $this->app->afterResolving('migrator', function ($migrator) use ($paths) { |
|
46 | + $this->app->afterResolving('migrator', function($migrator) use ($paths) { |
|
47 | 47 | foreach ((array) $paths as $path) { |
48 | 48 | $migrator->path($path); |
49 | 49 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | protected function getEnvironmentSetUp($app) |
12 | 12 | { |
13 | 13 | $app['config']->set('database.default', 'testing'); |
14 | - $app['router']->get('binary-users/{binaryUser}', function (TestBinaryUser $binaryUser) { |
|
14 | + $app['router']->get('binary-users/{binaryUser}', function(TestBinaryUser $binaryUser) { |
|
15 | 15 | return $binaryUser->toJson(); |
16 | 16 | })->middleware(SubstituteBindings::class); |
17 | 17 | } |
@@ -161,14 +161,14 @@ discard block |
||
161 | 161 | } |
162 | 162 | |
163 | 163 | if ($this->hasCompositeIndex()) { |
164 | - $query->where(function ($query) use ($keys, $ids, $inverse) { |
|
164 | + $query->where(function($query) use ($keys, $ids, $inverse) { |
|
165 | 165 | foreach ($ids as $compositeKey) { |
166 | 166 | // try to parse normalized key |
167 | 167 | if (!is_array($compositeKey)) { |
168 | 168 | $compositeKey = $this->parseNormalizedKey($compositeKey); |
169 | 169 | } |
170 | 170 | |
171 | - $queryWriter = function ($query) use ($keys, $compositeKey, $inverse) { |
|
171 | + $queryWriter = function($query) use ($keys, $compositeKey, $inverse) { |
|
172 | 172 | /* |
173 | 173 | * @var \Illuminate\Database\Query\Builder $query |
174 | 174 | */ |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | |
261 | 261 | return $this->newQueryWithoutScopes()->applyIds( |
262 | 262 | array_map( |
263 | - function ($normalizedKey) { |
|
263 | + function($normalizedKey) { |
|
264 | 264 | return $this->parseNormalizedKey($normalizedKey); |
265 | 265 | }, |
266 | 266 | $ids |