Passed
Pull Request — master (#3)
by Valentin
03:18
created
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/FileHandler/Services/SnapshotService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@
 block discarded – undo
34 34
      */
35 35
     public function getSnapshots()
36 36
     {
37
-        $order = [];
38
-        $snapshots = [];
37
+        $order = [ ];
38
+        $snapshots = [ ];
39 39
 
40 40
         if (!$this->files->exists($this->config->reportingDirectory())) {
41
-            return [];
41
+            return [ ];
42 42
         }
43 43
 
44 44
         foreach ($this->files->getFiles($this->config->reportingDirectory(), '*.html') as $file) {
45
-            $snapshots[] = new FileSnapshot($file);
46
-            $order[] = $this->files->time($file);
45
+            $snapshots[ ] = new FileSnapshot($file);
46
+            $order[ ] = $this->files->time($file);
47 47
         }
48 48
 
49 49
         array_multisort($order, SORT_DESC, $snapshots);
Please login to merge, or discard this patch.
source/Snapshotter/FileHandler/Entities/FileSnapshot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
      */
39 39
     public function timestamp(): FileTimestamp
40 40
     {
41
-        return new FileTimestamp(filemtime($this->filename), []);
41
+        return new FileTimestamp(filemtime($this->filename), [ ]);
42 42
     }
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
source/Snapshotter/FileHandler/Controllers/SnapshotsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             return [
104 104
                 'status'  => 200,
105 105
                 'message' => $this->say('Snapshots deleted.'),
106
-                'action'  => ['redirect' => $uri]
106
+                'action'  => [ 'redirect' => $uri ]
107 107
             ];
108 108
         } else {
109 109
             return $this->response->redirect($uri);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             return [
137 137
                 'status'  => 200,
138 138
                 'message' => $this->say('Snapshot deleted.'),
139
-                'action'  => ['redirect' => $uri]
139
+                'action'  => [ 'redirect' => $uri ]
140 140
             ];
141 141
         } else {
142 142
             return $this->response->redirect($uri);
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         if (array_key_exists('backToList', $query)) {
156 156
             $uri = $this->vault->uri('snapshots');
157 157
         } else {
158
-            $uri = $request->getServerParams()['HTTP_REFERER'];
158
+            $uri = $request->getServerParams()[ 'HTTP_REFERER' ];
159 159
         }
160 160
 
161 161
         return $uri;
Please login to merge, or discard this patch.
tests/TestApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
  */
36 36
 class TestApplication extends Core
37 37
 {
38
-    const LOAD = [SpiralBindings::class];
38
+    const LOAD = [ SpiralBindings::class ];
39 39
 
40 40
     protected function bootstrap()
41 41
     {
Please login to merge, or discard this patch.