Passed
Pull Request — master (#1)
by Maksim
01:50
created
tests/database/migrations/2014_10_12_000001_create_organizations_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/database/migrations/2014_10_12_000000_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
tests/database/migrations/2014_10_12_000003_create_binary_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
database/migrations/2014_10_12_000002_create_non_composite_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/CompositeKeyBaseUnit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
tests/BinaryKeysTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Http/Traits/HasCompositePrimaryKey.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.