Passed
Push — master ( 96222b...f19e46 )
by Arthur
23:27
created
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/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.
src/Foundation/Traits/RefreshDatabase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $this->artisan('migrate:refresh');
33 33
         }
34 34
         $this->artisan('db:seed');
35
-        $this->beforeApplicationDestroyed(function () {
35
+        $this->beforeApplicationDestroyed(function() {
36 36
             RefreshDatabaseState::$migrated = false;
37 37
         });
38 38
     }
Please login to merge, or discard this patch.
src/Foundation/Cache/ModelCache.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
     /**
25 25
      * ModelCache constructor.
26 26
      */
27
-    public function __construct(string $model, array $indexes = [], $cacheTime = null)
27
+    public function __construct(string $model, array $indexes = [ ], $cacheTime = null)
28 28
     {
29 29
         $this->model = $model;
30 30
         $this->secondaryIndexes = $indexes;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     protected function eagerLoadRelations($model)
71 71
     {
72 72
         if ($model !== null) {
73
-            return $model::eagerLoadRelations([$model])[0];
73
+            return $model::eagerLoadRelations([ $model ])[ 0 ];
74 74
         }
75 75
     }
76 76
 
Please login to merge, or discard this patch.
src/Foundation/Console/SeedCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $this->resolver->setDefaultConnection($this->getDatabase());
36 36
 
37
-        Model::unguarded(function () {
37
+        Model::unguarded(function() {
38 38
             foreach ($this->getSeeders() as $seeder) {
39 39
                 $seeder = $this->laravel->make($seeder);
40 40
                 if (!isset($seeder->enabled) || $seeder->enabled) {
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $this->service = $this->laravel->make(BootstrapRegistrarService::class);
52 52
 
53
-        return $this->service->getSeeders() ?? [];
53
+        return $this->service->getSeeders() ?? [ ];
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/Modules/Telescope/Providers/TelescopeServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
         //Telescope::night();
24 24
 
25
-        Telescope::filter(function (IncomingEntry $entry) {
25
+        Telescope::filter(function(IncomingEntry $entry) {
26 26
             if (is_bool($filter = $this->filterHorizonEntries($entry))) {
27 27
                 return $filter;
28 28
             }
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
     protected function filterHorizonEntries(IncomingEntry $entry)
46 46
     {
47 47
         if ($entry->type === EntryType::REQUEST
48
-            && isset($entry->content['uri'])
49
-            && str_contains($entry->content['uri'], 'horizon')) {
48
+            && isset($entry->content[ 'uri' ])
49
+            && str_contains($entry->content[ 'uri' ], 'horizon')) {
50 50
             return false;
51 51
         }
52 52
 
53 53
         if ($entry->type === EntryType::EVENT
54
-            && isset($entry->content['name'])
55
-            && str_contains($entry->content['name'], 'Horizon')) {
54
+            && isset($entry->content[ 'name' ])
55
+            && str_contains($entry->content[ 'name' ], 'Horizon')) {
56 56
             return false;
57 57
         }
58 58
     }
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     protected function filterCorsRequests(IncomingEntry $entry)
61 61
     {
62 62
         if ($entry->type === EntryType::REQUEST
63
-            && isset($entry->content['method'])
64
-            && $entry->content['method'] === 'OPTIONS') {
63
+            && isset($entry->content[ 'method' ])
64
+            && $entry->content[ 'method' ] === 'OPTIONS') {
65 65
             return false;
66 66
         }
67 67
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected function gate()
77 77
     {
78
-        Gate::define('viewTelescope', function ($user) {
78
+        Gate::define('viewTelescope', function($user) {
79 79
             return in_array($user->email, [
80 80
                 //
81 81
             ]);
Please login to merge, or discard this patch.
src/Modules/Mongo/Abstracts/MongoCollectionMigration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     final public function up()
41 41
     {
42 42
         if (!Schema::connection($this->connection)->hasTable($this->collection)) {
43
-            Schema::connection($this->connection)->create($this->collection, function (Blueprint $collection) {
43
+            Schema::connection($this->connection)->create($this->collection, function(Blueprint $collection) {
44 44
                 if (method_exists($this, 'migrate')) {
45 45
                     $this->migrate($collection);
46 46
                 }
Please login to merge, or discard this patch.
src/Modules/Machine/Routes/machines.v1.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use Modules\Authorization\Entities\Permission;
15 15
 
16
-Route::get('/{id}', 'MachineController@show')->middleware(['permission:'.Permission::SHOW_MACHINE]);
17
-Route::patch('/{id}', 'MachineController@update')->middleware(['permission:'.Permission::UPDATE_MACHINE]);
18
-Route::delete('/{id}', 'MachineController@destroy')->middleware(['permission:'.Permission::DELETE_MACHINE]);
16
+Route::get('/{id}', 'MachineController@show')->middleware([ 'permission:'.Permission::SHOW_MACHINE ]);
17
+Route::patch('/{id}', 'MachineController@update')->middleware([ 'permission:'.Permission::UPDATE_MACHINE ]);
18
+Route::delete('/{id}', 'MachineController@destroy')->middleware([ 'permission:'.Permission::DELETE_MACHINE ]);
19 19
 
20
-Route::post('/', 'MachineController@store')->middleware(['permission:'.Permission::CREATE_MACHINE]);
21
-Route::get('/', 'MachineController@index')->middleware(['permission:'.Permission::SHOW_MACHINE]);
20
+Route::post('/', 'MachineController@store')->middleware([ 'permission:'.Permission::CREATE_MACHINE ]);
21
+Route::get('/', 'MachineController@index')->middleware([ 'permission:'.Permission::SHOW_MACHINE ]);
Please login to merge, or discard this patch.