Completed
Push — master ( 5c5243...8f9adc )
by Elf
05:55 queued 02:02
created
src/Datatables/DatatablesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
      */
37 37
     public function provides()
38 38
     {
39
-        return ['datatables.html'];
39
+        return [ 'datatables.html' ];
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Datatables/Engines/EloquentEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         if (is_null($content) && is_string($name)) {
25
-            $content = function ($model) use ($name) {
25
+            $content = function($model) use ($name) {
26 26
                 return $model->{$name};
27 27
             };
28 28
         }
Please login to merge, or discard this patch.
src/Datatables/Services/DataTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * @param  array  $attributes
15 15
      * @return $this
16 16
      */
17
-    protected function staticColumn($name, array $attributes = [])
17
+    protected function staticColumn($name, array $attributes = [ ])
18 18
     {
19 19
         return array_merge([
20 20
             'data' => $name,
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $prefix = $prefix ? '/'.$prefix.'/' : '/';
46 46
         $suffix = $suffix ? '/'.$suffix : '';
47 47
 
48
-        return function () use ($prefix, $suffix, $data, $content) {
48
+        return function() use ($prefix, $suffix, $data, $content) {
49 49
             return <<<JS
50 50
 function (data, type, row, meta) {
51 51
     if (type == 'display' && data) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     protected function getBuilderParameters()
99 99
     {
100 100
         return [
101
-            'order' => [[0, 'desc']],
101
+            'order' => [ [ 0, 'desc' ] ],
102 102
         ];
103 103
     }
104 104
 }
Please login to merge, or discard this patch.
src/Datatables/Html/Builder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function stripedTable()
37 37
     {
38
-        if (! str_contains($this->tableAttributes['class'], 'table-striped')) {
39
-            $this->tableAttributes['class'] = str_replace(
38
+        if (!str_contains($this->tableAttributes[ 'class' ], 'table-striped')) {
39
+            $this->tableAttributes[ 'class' ] = str_replace(
40 40
                 'table-hover', '',
41
-                $this->tableAttributes['class'].' table-striped'
41
+                $this->tableAttributes[ 'class' ].' table-striped'
42 42
             );
43 43
         }
44 44
 
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function hoveredTable()
54 54
     {
55
-        if (! str_contains($this->tableAttributes['class'], 'table-hover')) {
56
-            $this->tableAttributes['class'] = str_replace(
55
+        if (!str_contains($this->tableAttributes[ 'class' ], 'table-hover')) {
56
+            $this->tableAttributes[ 'class' ] = str_replace(
57 57
                 'table-striped', '',
58
-                $this->tableAttributes['class'].' table-hover'
58
+                $this->tableAttributes[ 'class' ].' table-hover'
59 59
             );
60 60
         }
61 61
 
Please login to merge, or discard this patch.
src/Console/Commands/AssetsVersion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $filename = (string) $this->option('filename');
32 32
 
33
-        $assets = $this->laravel['config']->get($filename);
33
+        $assets = $this->laravel[ 'config' ]->get($filename);
34 34
 
35 35
         $revisioned = $this->revisionAssets($assets);
36 36
 
37 37
         if ($assets !== $revisioned) {
38 38
             $this->updateAssetsVersionConfigFile($filename, $revisioned);
39 39
 
40
-            $this->laravel['config'][$filename] = $revisioned;
40
+            $this->laravel[ 'config' ][ $filename ] = $revisioned;
41 41
         }
42 42
 
43 43
         $this->info('Assets version configuration'.
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     protected function revisionAssets($assets)
55 55
     {
56
-        $newAssets = [];
56
+        $newAssets = [ ];
57 57
 
58 58
         if (is_array($assets)) {
59 59
             foreach ($assets as $filename => $value) {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     $this->error("Revisioning file [{$filename}] failed.");
73 73
                 }
74 74
 
75
-                $newAssets[$filename] = $value;
75
+                $newAssets[ $filename ] = $value;
76 76
             }
77 77
         }
78 78
 
Please login to merge, or discard this patch.
src/Console/Commands/GenerateIdeHelpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@
 block discarded – undo
38 38
      */
39 39
     public function handle()
40 40
     {
41
-        if (! $this->option('alone')) {
41
+        if (!$this->option('alone')) {
42 42
             $this->call('clear-compiled');
43 43
         }
44 44
 
45 45
         if ($this->laravel->bound('command.ide-helper.generate')) {
46 46
             $this->call('ide-helper:generate');
47 47
             $this->call('ide-helper:meta');
48
-            $this->call('ide-helper:models', ['-R' => true, '-N' => true]);
48
+            $this->call('ide-helper:models', [ '-R' => true, '-N' => true ]);
49 49
         }
50 50
 
51
-        if (! $this->option('alone')) {
51
+        if (!$this->option('alone')) {
52 52
             $this->call('optimize');
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
src/Console/Commands/GenerateInt2stringCharacters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
         $this->setCharactersInEnvironmentFile($characters);
39 39
 
40
-        $this->laravel['config']['support.int2string'] = $characters;
40
+        $this->laravel[ 'config' ][ 'support.int2string' ] = $characters;
41 41
 
42 42
         $this->info("Characters [<comment>$characters</comment>] set successfully.");
43 43
     }
Please login to merge, or discard this patch.
src/Services/XgPush/XgPusher.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -623,7 +623,7 @@
 block discarded – undo
623 623
      * Remove tags for the given device token.
624 624
      *
625 625
      * @param  string  $deviceToken
626
-     * @param  mixed  $tags
626
+     * @param  string[]  $tags
627 627
      * @return bool
628 628
      */
629 629
     public function removeTagsForDeviceToken($deviceToken, $tags)
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -222,10 +222,10 @@  discard block
 block discarded – undo
222 222
     public function encodeCustomData($data)
223 223
     {
224 224
         if ($this->customKey && $data) {
225
-            return [$this->customKey => $data];
225
+            return [ $this->customKey => $data ];
226 226
         }
227 227
 
228
-        return $data ?: [];
228
+        return $data ?: [ ];
229 229
     }
230 230
 
231 231
     /**
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         if (is_object($user)) {
244 244
             $user = $user->id;
245 245
         } elseif (is_array($user)) {
246
-            $user = $user['id'];
246
+            $user = $user[ 'id' ];
247 247
         }
248 248
 
249 249
         return $this->accountPrefix.$user;
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     public function accountsForUsers(array $users)
259 259
     {
260
-        return array_map([$this, 'accountForUser'], $users);
260
+        return array_map([ $this, 'accountForUser' ], $users);
261 261
     }
262 262
 
263 263
     /**
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         $accounts = $this->accountsForUsers($users);
364 364
 
365 365
         if (count($accounts) == 1) {
366
-            return $this->xinge->PushSingleAccount(0, $accounts[0], $message, $this->environment);
366
+            return $this->xinge->PushSingleAccount(0, $accounts[ 0 ], $message, $this->environment);
367 367
         }
368 368
 
369 369
         return $this->xinge->PushAccountList(0, $accounts, $message, $this->environment);
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
     {
438 438
         $pushIds = $this->getParameterAsArray(func_get_args());
439 439
 
440
-        $list = $this->result($this->xinge->QueryPushStatus($pushIds), 'list', []);
440
+        $list = $this->result($this->xinge->QueryPushStatus($pushIds), 'list', [ ]);
441 441
 
442 442
         return array_combine(array_pluck($list, 'push_id'), $list);
443 443
     }
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
      */
462 462
     public function queryDeviceTokensForUser($user)
463 463
     {
464
-        return $this->result($this->xinge->QueryTokensOfAccount($this->accountForUser($user)), 'tokens', []);
464
+        return $this->result($this->xinge->QueryTokensOfAccount($this->accountForUser($user)), 'tokens', [ ]);
465 465
     }
466 466
 
467 467
     /**
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
      */
541 541
     public function queryTagsForDeviceToken($deviceToken)
542 542
     {
543
-        return $this->result($this->xinge->QueryTokenTags($deviceToken), 'tags', []);
543
+        return $this->result($this->xinge->QueryTokenTags($deviceToken), 'tags', [ ]);
544 544
     }
545 545
 
546 546
     /**
@@ -554,9 +554,9 @@  discard block
 block discarded – undo
554 554
     {
555 555
         $deviceTokens = $this->queryDeviceTokensForUser($user);
556 556
 
557
-        $result = [];
557
+        $result = [ ];
558 558
         foreach ($deviceTokens as $token) {
559
-            $result[$token] = $this->queryTagsForDeviceToken($token);
559
+            $result[ $token ] = $this->queryTagsForDeviceToken($token);
560 560
         }
561 561
 
562 562
         return $result;
@@ -687,8 +687,8 @@  discard block
 block discarded – undo
687 687
         $tags = $this->getParameterAsArray(func_get_args(), 1);
688 688
         $oldTags = $this->queryTagsForUser($user, $tokens);
689 689
 
690
-        $addTagTokenPairs = [];
691
-        $removeTagTokenPairs = [];
690
+        $addTagTokenPairs = [ ];
691
+        $removeTagTokenPairs = [ ];
692 692
 
693 693
         foreach ($oldTags as $token => $tokenTags) {
694 694
             $addTagTokenPairs = array_merge($addTagTokenPairs,
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
      */
723 723
     protected function getParameterAsArray(array $args, $offset = 0)
724 724
     {
725
-        return is_array($args[$offset]) ? $args[$offset] : array_slice($args, $offset);
725
+        return is_array($args[ $offset ]) ? $args[ $offset ] : array_slice($args, $offset);
726 726
     }
727 727
 
728 728
     /**
@@ -736,12 +736,12 @@  discard block
 block discarded – undo
736 736
      */
737 737
     protected function createTagTokenPairs($tags, $tokens)
738 738
     {
739
-        $tagTokenPairs = [];
739
+        $tagTokenPairs = [ ];
740 740
 
741 741
         $tokens = (array) $tokens;
742 742
         foreach ((array) $tags as $tag) {
743 743
             foreach ($tokens as $token) {
744
-                $tagTokenPairs[] = new TagTokenPair($tag, $token);
744
+                $tagTokenPairs[ ] = new TagTokenPair($tag, $token);
745 745
             }
746 746
         }
747 747
 
@@ -757,6 +757,6 @@  discard block
 block discarded – undo
757 757
      */
758 758
     public function __call($method, $parameters)
759 759
     {
760
-        return call_user_func_array([$this->xinge, $method], $parameters);
760
+        return call_user_func_array([ $this->xinge, $method ], $parameters);
761 761
     }
762 762
 }
Please login to merge, or discard this patch.
src/Services/Optimus/OptimusServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@
 block discarded – undo
19 19
      */
20 20
     public function register()
21 21
     {
22
-        $this->app->singleton(Optimus::class, function ($app) {
23
-            $config = $app['config']->get('support.optimus');
22
+        $this->app->singleton(Optimus::class, function($app) {
23
+            $config = $app[ 'config' ]->get('support.optimus');
24 24
 
25
-            return new Optimus($config['prime'], $config['inverse'], $config['random']);
25
+            return new Optimus($config[ 'prime' ], $config[ 'inverse' ], $config[ 'random' ]);
26 26
         });
27 27
 
28 28
         $this->app->alias(Optimus::class, 'optimus');
29 29
 
30
-        $this->app->singleton('command.optimus.generate', function () {
30
+        $this->app->singleton('command.optimus.generate', function() {
31 31
             return new GenerateOptimusCommand;
32 32
         });
33 33
 
Please login to merge, or discard this patch.