Passed
Pull Request — master (#14)
by Arthur
17:08 queued 09:48
created
src/Modules/Machine/Services/MachineService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
     {
57 57
         $this->update($id, [
58 58
             'last_heartbeat' => Carbon::now(),
59
-            'memory_usage'   => $data['memory_usage'],
60
-            'cpu_usage'      => $data['cpu_usage'],
59
+            'memory_usage'   => $data[ 'memory_usage' ],
60
+            'cpu_usage'      => $data[ 'cpu_usage' ],
61 61
             'online'         => true,
62 62
         ]);
63 63
     }
Please login to merge, or discard this patch.
src/Foundation/Abstracts/Tests/HttpTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,32 +58,32 @@
 block discarded – undo
58 58
         }
59 59
 
60 60
         if ($unwrap) {
61
-            return json_decode($content, true)['data'] ?? json_decode($content, true);
61
+            return json_decode($content, true)[ 'data' ] ?? json_decode($content, true);
62 62
         }
63 63
 
64 64
         return json_decode($content, true);
65 65
     }
66 66
 
67
-    protected function http(string $method, string $route, array $payload = [])
67
+    protected function http(string $method, string $route, array $payload = [ ])
68 68
     {
69 69
         return $this->sendRequest($method, $route, $payload, true);
70 70
     }
71 71
 
72
-    private function sendRequest(string $method, string $route, array $payload = [], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
72
+    private function sendRequest(string $method, string $route, array $payload = [ ], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
73 73
     {
74 74
         return $this->json($method, env('API_URL').'/'.$route, $payload, $authenticated ? [
75 75
             'Authorization' => 'Bearer '.$this->getAuth0Service()->getTestUserToken()->id_token,
76
-        ] : []);
76
+        ] : [ ]);
77 77
     }
78 78
 
79
-    protected function sendRequestWithToken($token, string $method, string $route, array $payload = [], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
79
+    protected function sendRequestWithToken($token, string $method, string $route, array $payload = [ ], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
80 80
     {
81 81
         return $this->json($method, env('API_URL').'/'.$route, $payload, $authenticated ? [
82 82
             'Authorization' => 'Bearer '.$token,
83
-        ] : []);
83
+        ] : [ ]);
84 84
     }
85 85
 
86
-    protected function httpNoAuth(string $method, string $route, array $payload = [])
86
+    protected function httpNoAuth(string $method, string $route, array $payload = [ ])
87 87
     {
88 88
         return $this->sendRequest($method, $route, $payload, false);
89 89
     }
Please login to merge, or discard this patch.
src/Foundation/Traits/Cacheable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         return static::$caching;
31 31
     }
32 32
 
33
-    public static function find($id, $columns = ['*'])
33
+    public static function find($id, $columns = [ '*' ])
34 34
     {
35 35
         if (static::cache()->enabled()) {
36 36
             $model = static::cache()->find($id) ?? static::recache($id);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         return $model;
50 50
     }
51 51
 
52
-    public static function findWithoutCache($id, $columns = ['*'])
52
+    public static function findWithoutCache($id, $columns = [ '*' ])
53 53
     {
54 54
         $model = new static();
55 55
         if (is_array($id) || $id instanceof Arrayable) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             return;
66 66
         }
67 67
 
68
-        if ($columns !== ['*']) {
68
+        if ($columns !== [ '*' ]) {
69 69
             return collect($model)->first($columns);
70 70
         }
71 71
 
Please login to merge, or discard this patch.
src/Modules/Machine/Entities/Machine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * @var array
35 35
      */
36
-    protected $guarded = [];
36
+    protected $guarded = [ ];
37 37
 
38 38
     protected $casts = [
39 39
         'online' => 'boolean',
Please login to merge, or discard this patch.
src/Modules/Auth0/Providers/Auth0ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
     {
26 26
         $this->app->register(\Auth0\Login\LoginServiceProvider::class);
27 27
 
28
-        $this->app->bind(\Auth0\Login\Contract\Auth0UserRepository::class, function () {
28
+        $this->app->bind(\Auth0\Login\Contract\Auth0UserRepository::class, function() {
29 29
             return new Auth0Service(new UserService());
30 30
         });
31 31
 
32
-        $this->app->bind(Auth0ServiceContract::class, function () {
32
+        $this->app->bind(Auth0ServiceContract::class, function() {
33 33
             return new Auth0Service(new UserService());
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
src/Modules/Auth0/Config/laravel-auth0.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     |   This is used to verify the decoded tokens when using RS256
60 60
     |
61 61
     */
62
-    'authorized_issuers' => [env('AUTH0_DOMAIN')],
62
+    'authorized_issuers' => [ env('AUTH0_DOMAIN') ],
63 63
 
64 64
     /*
65 65
     |--------------------------------------------------------------------------
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     |   Token decoding algorithms supported by your API
86 86
     |
87 87
     */
88
-    'supported_algs' => ['RS256'],
88
+    'supported_algs' => [ 'RS256' ],
89 89
 
90 90
     /*
91 91
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Modules/Cors/Config/cors.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
     */
14 14
 
15 15
     'supportsCredentials'    => true,
16
-    'allowedOrigins'         => ['*'],
17
-    'allowedOriginsPatterns' => [],
18
-    'allowedHeaders'         => ['*'],
19
-    'allowedMethods'         => ['*'],
20
-    'exposedHeaders'         => [],
16
+    'allowedOrigins'         => [ '*' ],
17
+    'allowedOriginsPatterns' => [ ],
18
+    'allowedHeaders'         => [ '*' ],
19
+    'allowedMethods'         => [ '*' ],
20
+    'exposedHeaders'         => [ ],
21 21
     'maxAge'                 => 0,
22 22
 
23 23
 ];
Please login to merge, or discard this patch.
src/Modules/Horizon/Config/horizon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         'production' => [
75 75
             'supervisor-1' => [
76 76
                 'connection' => 'redis',
77
-                'queue'      => ['default'],
77
+                'queue'      => [ 'default' ],
78 78
                 'balance'    => 'simple',
79 79
                 'processes'  => 10,
80 80
                 'tries'      => 3,
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         'local' => [
85 85
             'supervisor-1' => [
86 86
                 'connection' => 'redis',
87
-                'queue'      => ['default'],
87
+                'queue'      => [ 'default' ],
88 88
                 'balance'    => 'simple',
89 89
                 'processes'  => 3,
90 90
                 'tries'      => 3,
Please login to merge, or discard this patch.
src/Modules/User/Database/Migrations/2018_10_04_134544_CreateUserTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('users', function (Blueprint $table) {
15
+        Schema::create('users', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('identity_id')->unique();
18 18
             $table->string('email');
Please login to merge, or discard this patch.