Passed
Push — master ( 156cbf...408f83 )
by Anton
06:52
created
tests/-app-/config/http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     'router'       => [
65 65
         //You can use your own router or entirely replace http endpoint using option above
66 66
         'class'   => Http\Routing\Router::class,
67
-        'options' => []
67
+        'options' => [ ]
68 68
     ],
69 69
 
70 70
     /*
Please login to merge, or discard this patch.
tests/-app-/config/schemas/records.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 
9 9
 return [
10 10
     'mutators' => [
11
-        'timestamp'  => ['accessor' => Accessors\SqlTimestamp::class],
12
-        'datetime'   => ['accessor' => Accessors\SqlTimestamp::class],
13
-        'php:int'    => ['setter' => 'intval', 'getter' => 'intval'],
14
-        'php:float'  => ['setter' => 'floatval', 'getter' => 'floatval'],
15
-        'php:string' => ['setter' => 'strval'],
16
-        'php:bool'   => ['setter' => 'boolval', 'getter' => 'boolval'],
11
+        'timestamp'  => [ 'accessor' => Accessors\SqlTimestamp::class ],
12
+        'datetime'   => [ 'accessor' => Accessors\SqlTimestamp::class ],
13
+        'php:int'    => [ 'setter' => 'intval', 'getter' => 'intval' ],
14
+        'php:float'  => [ 'setter' => 'floatval', 'getter' => 'floatval' ],
15
+        'php:string' => [ 'setter' => 'strval' ],
16
+        'php:bool'   => [ 'setter' => 'boolval', 'getter' => 'boolval' ],
17 17
         /*{{mutators}}*/
18 18
     ],
19 19
     'aliases'  => [
Please login to merge, or discard this patch.
tests/-app-/config/schemas/documents.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,19 +15,19 @@
 block discarded – undo
15 15
      * Set of mutators to be applied for specific field types.
16 16
      */
17 17
     'mutators' => [
18
-        'int'      => ['setter' => 'intval'],
19
-        'float'    => ['setter' => 'floatval'],
20
-        'string'   => ['setter' => 'strval'],
21
-        'bool'     => ['setter' => 'boolval'],
18
+        'int'      => [ 'setter' => 'intval' ],
19
+        'float'    => [ 'setter' => 'floatval' ],
20
+        'string'   => [ 'setter' => 'strval' ],
21
+        'bool'     => [ 'setter' => 'boolval' ],
22 22
 
23 23
         //Automatic casting of mongoID
24
-        'ObjectID' => ['setter' => [ODM::class, 'mongoID']],
24
+        'ObjectID' => [ 'setter' => [ ODM::class, 'mongoID' ] ],
25 25
 
26
-        'array::string'    => ['accessor' => ODMAccessors\StringArray::class],
27
-        'array::objectIDs' => ['accessor' => ODMAccessors\ObjectIDsArray::class],
28
-        'array::integer'   => ['accessor' => ODMAccessors\IntegerArray::class],
26
+        'array::string'    => [ 'accessor' => ODMAccessors\StringArray::class ],
27
+        'array::objectIDs' => [ 'accessor' => ODMAccessors\ObjectIDsArray::class ],
28
+        'array::integer'   => [ 'accessor' => ODMAccessors\IntegerArray::class ],
29 29
 
30
-        'timestamp' => ['accessor' => Accessors\UTCMongoTimestamp::class],
30
+        'timestamp' => [ 'accessor' => Accessors\UTCMongoTimestamp::class ],
31 31
         /*{{mutators}}*/
32 32
     ],
33 33
     /*
Please login to merge, or discard this patch.
tests/-app-/config/console.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
     /*
15 15
      * Manually registered set of commands. Use this section when locateCommands is off.
16 16
      */
17
-    'commands'          => [],
17
+    'commands'          => [ ],
18 18
 
19 19
     /*
20 20
      * This set of commands will be executed when command "configure" run. You can declare command
21 21
      * options, header and footer.
22 22
      */
23 23
     'configureSequence' => [
24
-        'views:compile' => ['options' => []],
24
+        'views:compile' => [ 'options' => [ ] ],
25 25
         /*{{sequence.configure}}*/
26 26
     ],
27 27
 
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
      * models with passive schemas.
32 32
      */
33 33
     'updateSequence'    => [
34
-        'odm:schema' => ['options' => []],
35
-        'orm:schema' => ['options' => []],
34
+        'odm:schema' => [ 'options' => [ ] ],
35
+        'orm:schema' => [ 'options' => [ ] ],
36 36
         /*{{sequence.update}}*/
37 37
     ]
38 38
 ];
Please login to merge, or discard this patch.
tests/-app-/config/mongo.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
         'default' => [
34 34
             'server'   => 'mongodb://localhost:27017',
35 35
             'database' => 'spiral-empty',
36
-            'options'  => ['connect' => true]
36
+            'options'  => [ 'connect' => true ]
37 37
         ],
38 38
         /*{{databases}}*/
39 39
     ]
Please login to merge, or discard this patch.
source/Snapshotter/FileHandler/Services/SnapshotService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@
 block discarded – undo
35 35
      */
36 36
     public function getSnapshots(): PaginableArray
37 37
     {
38
-        $order = [];
39
-        $snapshots = [];
38
+        $order = [ ];
39
+        $snapshots = [ ];
40 40
 
41 41
         if (!$this->files->exists($this->config->reportingDirectory())) {
42 42
             return new PaginableArray();
43 43
         }
44 44
 
45 45
         foreach ($this->files->getFiles($this->config->reportingDirectory(), '*.html') as $file) {
46
-            $snapshots[] = new FileSnapshot($file);
47
-            $order[] = $this->files->time($file);
46
+            $snapshots[ ] = new FileSnapshot($file);
47
+            $order[ ] = $this->files->time($file);
48 48
         }
49 49
 
50 50
         array_multisort($order, SORT_DESC, $snapshots);
Please login to merge, or discard this patch.
source/views/aggregation/incident.dark.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
             <vault:uri target="snapshots:suppressIncident"
25 25
                        class="btn blue-grey darken-2 waves-effect waves-light" icon="archive"
26 26
                        options="<?= [
27
-                           'id'       => $snapshot->primaryKey(),
28
-                           'incident' => $incident->primaryKey()
29
-                       ] ?>">
27
+                            'id'       => $snapshot->primaryKey(),
28
+                            'incident' => $incident->primaryKey()
29
+                        ] ?>">
30 30
                 [[Suppress]]
31 31
             </vault:uri>
32 32
         <?php } ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         <?php } ?>
33 33
 
34 34
         <vault:uri target="snapshots:view" class="btn-flat  waves-effect"
35
-                   post-icon="trending_flat" options="<?= ['id' => $snapshot->primaryKey()] ?>">
35
+                   post-icon="trending_flat" options="<?= [ 'id' => $snapshot->primaryKey() ] ?>">
36 36
             [[BACK]]
37 37
         </vault:uri>
38 38
     </vault:guard>
Please login to merge, or discard this patch.
source/Snapshotter/AggregationHandler/Controllers/SnapshotsController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             return [
158 158
                 'status'  => 200,
159 159
                 'message' => $this->say('Snapshots deleted.'),
160
-                'action'  => ['redirect' => $uri]
160
+                'action'  => [ 'redirect' => $uri ]
161 161
             ];
162 162
         } else {
163 163
             return $this->response->redirect($uri);
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             return [
194 194
                 'status'  => 200,
195 195
                 'message' => $this->say('Snapshot deleted.'),
196
-                'action'  => ['redirect' => $uri]
196
+                'action'  => [ 'redirect' => $uri ]
197 197
             ];
198 198
         } else {
199 199
             return $this->response->redirect($uri);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         if (array_key_exists('backToList', $query)) {
213 213
             $uri = $this->vault->uri('snapshots');
214 214
         } else {
215
-            $uri = $request->getServerParams()['HTTP_REFERER'];
215
+            $uri = $request->getServerParams()[ 'HTTP_REFERER' ];
216 216
         }
217 217
 
218 218
         return $uri;
@@ -252,14 +252,14 @@  discard block
 block discarded – undo
252 252
         $incident->save();
253 253
 
254 254
         $uri = $this->vault
255
-            ->uri('snapshots:view', ['id' => $snapshot->primaryKey()])
255
+            ->uri('snapshots:view', [ 'id' => $snapshot->primaryKey() ])
256 256
             ->withFragment('history');
257 257
 
258 258
         if ($this->input->isAjax()) {
259 259
             return [
260 260
                 'status'  => 200,
261 261
                 'message' => $this->say('Snapshot incident suppressed.'),
262
-                'action'  => ['redirect' => $uri]
262
+                'action'  => [ 'redirect' => $uri ]
263 263
             ];
264 264
         } else {
265 265
             return $this->response->redirect($uri);
@@ -368,14 +368,14 @@  discard block
 block discarded – undo
368 368
         $incident->delete();
369 369
 
370 370
         $uri = $this->vault
371
-            ->uri('snapshots:view', ['id' => $snapshot->primaryKey()])
371
+            ->uri('snapshots:view', [ 'id' => $snapshot->primaryKey() ])
372 372
             ->withFragment('history');
373 373
 
374 374
         if ($this->input->isAjax()) {
375 375
             return [
376 376
                 'status'  => 200,
377 377
                 'message' => $this->say('Snapshot incident deleted.'),
378
-                'action'  => ['redirect' => $uri]
378
+                'action'  => [ 'redirect' => $uri ]
379 379
             ];
380 380
         } else {
381 381
             return $this->response->redirect($uri);
Please login to merge, or discard this patch.
source/views/aggregation/list.dark.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 <div class="col s12 m2 right-align">
33 33
                     <vault:guard permission="vault.snapshots.view">
34 34
                         <vault:uri target="snapshots:view" icon="import_contacts" class="btn  waves-effect waves-light"
35
-                                   options="<?= ['id' => $lastSnapshot->primaryKey()] ?>">
35
+                                   options="<?= [ 'id' => $lastSnapshot->primaryKey() ] ?>">
36 36
                             [[View last]]
37 37
                         </vault:uri>
38 38
                     </vault:guard>
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
 
92 92
         <grid:cell style="text-align:right">
93 93
             <vault:guard permission="vault.snapshots.view">
94
-                <vault:uri target="snapshots:view" icon="import_contacts" title="[[View snapshot]]" options="<?= ['id' => $entity->primaryKey()] ?>"
94
+                <vault:uri target="snapshots:view" icon="import_contacts" title="[[View snapshot]]" options="<?= [ 'id' => $entity->primaryKey() ] ?>"
95 95
                            class="btn  waves-effect"/>
96 96
             </vault:guard>
97 97
             <vault:guard permission="vault.snapshots.remove">
98 98
                 <vault:uri target="snapshots:remove" icon="delete" title="[[Remove snapshot]]" class="btn red waves-effect waves-light"
99
-                           options="<?= ['id' => $entity->primaryKey()] ?>"/>
99
+                           options="<?= [ 'id' => $entity->primaryKey() ] ?>"/>
100 100
             </vault:guard>
101 101
         </grid:cell>
102 102
     </vault:grid>
Please login to merge, or discard this patch.