Passed
Push — master ( 0f4309...58e0df )
by Valentin
04:47
created
source/views/file/snapshot.dark.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 <define:actions>
29 29
     <vault:guard permission="vault.snapshots.remove">
30 30
         <vault:uri target="snapshots:remove" icon="delete" class="btn red waves-effect waves-light"
31
-                   options="<?= ['filename' => $snapshot->id(), 'backToList' => 1] ?>">
31
+                   options="<?= [ 'filename' => $snapshot->id(), 'backToList' => 1 ] ?>">
32 32
             [[Remove]]
33 33
         </vault:uri>
34 34
     </vault:guard>
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         </vault:card>
47 47
         <vault:block>
48 48
             <iframe src="<?= vault()->uri('snapshots:iframe',
49
-                ['filename' => $snapshot->id()]) ?>" width="100%" height="100%" frameborder="0"
49
+                [ 'filename' => $snapshot->id() ]) ?>" width="100%" height="100%" frameborder="0"
50 50
                     scrolling="no" onload="javascript:resizeIframe(this);"></iframe>
51 51
         </vault:block>
52 52
     </vault:guard>
Please login to merge, or discard this patch.
source/views/aggregation/incident.dark.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         <?php } ?>
31 31
 
32 32
         <vault:uri target="snapshots:view" class="btn-flat teal-text waves-effect"
33
-                   post-icon="trending_flat" options="<?= ['id' => $snapshot->primaryKey()] ?>">
33
+                   post-icon="trending_flat" options="<?= [ 'id' => $snapshot->primaryKey() ] ?>">
34 34
             [[BACK]]
35 35
         </vault:uri>
36 36
     </vault:guard>
Please login to merge, or discard this patch.
source/views/aggregation/snapshot.dark.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         <?php if ($selector->count()) { ?>
37 37
             <vault:uri target="snapshots:remove" icon="delete"
38 38
                        class="btn red waves-effect waves-light"
39
-                       options="<?= ['id' => $snapshot->primaryKey(), 'backToList' => 1] ?>">
39
+                       options="<?= [ 'id' => $snapshot->primaryKey(), 'backToList' => 1 ] ?>">
40 40
                 [[Remove]]
41 41
             </vault:uri>
42 42
         <?php } ?>
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             <vault:guard permission="vault.snapshots.view">
53 53
                 <vault:block>
54 54
                     <iframe src="<?= vault()->uri('snapshots:iframe',
55
-                        ['id' => $snapshot->primaryKey()]) ?>" width="100%" height="100%"
55
+                        [ 'id' => $snapshot->primaryKey() ]) ?>" width="100%" height="100%"
56 56
                             frameborder="0" scrolling="no"
57 57
                             onload="javascript:resizeIframe(this);"></iframe>
58 58
                 </vault:block>
Please login to merge, or discard this patch.
source/Snapshotter/AggregationHandler/Database/IncidentRecord.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
      * {@inheritdoc}
65 65
      */
66 66
     const INDEXES = [
67
-        [self::INDEX, 'exception_hash'],
67
+        [ self::INDEX, 'exception_hash' ],
68 68
     ];
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
source/Snapshotter/AggregationHandler/Database/SnapshotRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * {@inheritdoc}
59 59
      */
60 60
     const INDEXES = [
61
-        [self::UNIQUE, 'exception_hash'],
61
+        [ self::UNIQUE, 'exception_hash' ],
62 62
     ];
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
source/Snapshotter/AggregationHandler/Database/Types/IncidentStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Values.
19 19
      */
20
-    const VALUES  = [self::STORED, self::DELETED, self::SUPPRESSED, self::LAST];
20
+    const VALUES = [ self::STORED, self::DELETED, self::SUPPRESSED, self::LAST ];
21 21
 
22 22
     /**
23 23
      * Default values.
Please login to merge, or discard this patch.
source/Snapshotter/AggregationHandler/Database/Sources/IncidentSource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $where = [
25 25
             'status' => [
26
-                'IN' => new Parameter([IncidentStatus::LAST, IncidentStatus::STORED])
26
+                'IN' => new Parameter([ IncidentStatus::LAST, IncidentStatus::STORED ])
27 27
             ]
28 28
         ];
29 29
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * @param array          $load
73 73
      * @return null|IncidentRecord
74 74
      */
75
-    public function findStoredBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = [])
75
+    public function findStoredBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = [ ])
76 76
     {
77 77
         /** @var IncidentRecord $incident */
78 78
         $incident = $this->findByPK($id, $load);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @param array          $load
94 94
      * @return null|IncidentRecord
95 95
      */
96
-    public function findBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = [])
96
+    public function findBySnapshotByPK(SnapshotRecord $snapshotRecord, $id, array $load = [ ])
97 97
     {
98 98
         /** @var IncidentRecord $incident */
99 99
         $incident = $this->findByPK($id, $load);
Please login to merge, or discard this patch.
source/Snapshotter/AggregationHandler/Database/Sources/SnapshotSource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function findByHash(string $hash)
19 19
     {
20
-        return $this->findOne(['exception_hash' => $hash]);
20
+        return $this->findOne([ 'exception_hash' => $hash ]);
21 21
     }
22 22
 
23 23
     /**
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function findWithLast(): RecordSelector
27 27
     {
28
-        return $this->find()->with('last_incident', ['alias' => 'last_incident']);
28
+        return $this->find()->with('last_incident', [ 'alias' => 'last_incident' ]);
29 29
     }
30 30
 
31 31
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param array      $load
46 46
      * @return null|SnapshotRecord
47 47
      */
48
-    public function findWithLastByPK($id, array $load = [])
48
+    public function findWithLastByPK($id, array $load = [ ])
49 49
     {
50 50
         /** @var SnapshotRecord|null $snapshot */
51 51
         $snapshot = $this->findByPK($id, $load);
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:edit', ['id' => $snapshot->primaryKey()])
255
+            ->uri('snapshots:edit', [ '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:edit', ['id' => $snapshot->primaryKey()])
371
+            ->uri('snapshots:edit', [ '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.