Completed
Branch master (45b4dd)
by Valentin
06:01
created
source/Snapshotter/Controllers/SnapshotsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             return [
184 184
                 'status'  => 200,
185 185
                 'message' => $this->say('Snapshot deleted.'),
186
-                'action'  => ['redirect' => $uri]
186
+                'action'  => [ 'redirect' => $uri ]
187 187
             ];
188 188
         } else {
189 189
             return $this->responses->redirect($uri);
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             return [
231 231
                 'status'  => 200,
232 232
                 'message' => $this->say('Snapshots deleted.'),
233
-                'action'  => ['redirect' => $uri]
233
+                'action'  => [ 'redirect' => $uri ]
234 234
             ];
235 235
         } else {
236 236
             return $this->responses->redirect($uri);
@@ -273,12 +273,12 @@  discard block
 block discarded – undo
273 273
 
274 274
         $snapshotSource->delete($snapshot);
275 275
 
276
-        $uri = $this->vault->uri('snapshots:edit', ['id' => $aggregation->id]);
276
+        $uri = $this->vault->uri('snapshots:edit', [ 'id' => $aggregation->id ]);
277 277
         if ($this->input->isAjax()) {
278 278
             return [
279 279
                 'status'  => 200,
280 280
                 'message' => $this->say('Snapshot deleted.'),
281
-                'action'  => ['redirect' => $uri]
281
+                'action'  => [ 'redirect' => $uri ]
282 282
             ];
283 283
         } else {
284 284
             return $this->responses->redirect($uri);
Please login to merge, or discard this patch.
source/Snapshotter/Database/Aggregation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
      * {@inheritdoc}
58 58
      */
59 59
     protected $indexes = [
60
-        [self::UNIQUE, 'exception_hash'],
61
-        [self::INDEX, 'exception_teaser']
60
+        [ self::UNIQUE, 'exception_hash' ],
61
+        [ self::INDEX, 'exception_teaser' ]
62 62
     ];
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
source/Snapshotter/Database/Sources/AggregationSource.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
      */
31 31
     public function findWithSnapshots()
32 32
     {
33
-        return $this->find()->where(['count_stored' => ['>=' => 1]]);
33
+        return $this->find()->where([ 'count_stored' => [ '>=' => 1 ] ]);
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
source/Snapshotter/Database/Sources/SnapshotSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         ];
54 54
 
55 55
         if (!empty($aggregation)) {
56
-            $where['aggregation_id'] = $aggregation->id;
56
+            $where[ 'aggregation_id' ] = $aggregation->id;
57 57
         }
58 58
 
59 59
         return $this->find($where);
Please login to merge, or discard this patch.
source/Snapshotter/Database/Snapshot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 //        'aggregation_id'      => 'bigint',
41 41
         'aggregation'         => [
42 42
             self::BELONGS_TO => Aggregation::class,
43
-            self::INVERSE    => [self::HAS_MANY, 'snapshots']
43
+            self::INVERSE    => [ self::HAS_MANY, 'snapshots' ]
44 44
         ],
45 45
 
46 46
         //exception fields
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * {@inheritdoc}
58 58
      */
59 59
     protected $indexes = [
60
-        [self::INDEX, 'exception_hash']
60
+        [ self::INDEX, 'exception_hash' ]
61 61
     ];
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
source/views/snapshot.dark.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
     <?php if ($snapshot->stored()) { ?>
18 18
         <vault:uri target="snapshots:removeSnapshot" icon="delete"
19 19
                    class="btn red waves-effect waves-light"
20
-                   options="<?= ['id' => $snapshot->id] ?>">
20
+                   options="<?= [ 'id' => $snapshot->id ] ?>">
21 21
             [[Remove]]
22 22
         </vault:uri>
23 23
     <?php } ?>
24 24
 
25 25
     <vault:uri target="snapshots:edit" class="btn-flat teal-text waves-effect"
26
-               post-icon="trending_flat" options="<?= ['id' => $snapshot->aggregation_id] ?>">
26
+               post-icon="trending_flat" options="<?= [ 'id' => $snapshot->aggregation_id ] ?>">
27 27
         [[BACK]]
28 28
     </vault:uri>
29 29
 </define:actions>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             break;
48 48
         default:
49 49
             ?>
50
-            <iframe src="<?= vault()->uri('snapshots:iframe', ['id' => $snapshot->id]) ?>"
50
+            <iframe src="<?= vault()->uri('snapshots:iframe', [ 'id' => $snapshot->id ]) ?>"
51 51
                     width="100%" height="100%" frameborder="0" scrolling="no"
52 52
                     onload="javascript:resizeIframe(this);"></iframe>
53 53
         <?php } ?>
Please login to merge, or discard this patch.
source/views/list.dark.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         </vault:uri>
15 15
 
16 16
         <vault:uri target="snapshots:edit" icon="edit" class="btn teal waves-effect waves-light"
17
-                   options="<?= ['id' => $lastSnapshot->id] ?>">
17
+                   options="<?= [ 'id' => $lastSnapshot->id ] ?>">
18 18
             [[View last]]
19 19
         </vault:uri>
20 20
     <?php } ?>
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
         </grid:cell>
56 56
 
57 57
         <grid:cell style="text-align:right">
58
-            <vault:uri target="snapshots:edit" icon="edit" options="<?= ['id' => $entity->id] ?>"
58
+            <vault:uri target="snapshots:edit" icon="edit" options="<?= [ 'id' => $entity->id ] ?>"
59 59
                        class="btn-flat waves-effect"/>
60 60
         </grid:cell>
61 61
         <grid:cell style="text-align:right">
62 62
             <vault:uri target="snapshots:removeSnapshots" icon="delete"
63 63
                        class="btn red waves-effect waves-light"
64
-                       options="<?= ['id' => $entity->id] ?>"></vault:uri>
64
+                       options="<?= [ 'id' => $entity->id ] ?>"></vault:uri>
65 65
         </grid:cell>
66 66
     </vault:grid>
67 67
 </define:content>
Please login to merge, or discard this patch.
source/views/aggregation.dark.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     <?php if (!empty($aggregation->count_stored)) { ?>
20 20
         <vault:uri target="snapshots:removeSnapshots" icon="delete"
21 21
                    class="btn red waves-effect waves-light"
22
-                   options="<?= ['id' => $aggregation->id] ?>">
22
+                   options="<?= [ 'id' => $aggregation->id ] ?>">
23 23
             [[Remove all]]
24 24
         </vault:uri>
25 25
     <?php } ?>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     ?>
98 98
     <?php if (!empty($snapshot)) { ?>
99 99
         <p class="card-panel-title">[[You have only one snapshot occurred.]]</p>
100
-        <iframe src="<?= vault()->uri('snapshots:iframe', ['id' => $snapshot->id]) ?>" width="100%"
100
+        <iframe src="<?= vault()->uri('snapshots:iframe', [ 'id' => $snapshot->id ]) ?>" width="100%"
101 101
                 height="100%" frameborder="0" scrolling="no"
102 102
                 onload="javascript:resizeIframe(this);"></iframe>
103 103
     <?php } else { ?>
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             <grid:cell style="text-align:right">
117 117
                 <?php if ($entity->stored()) { ?>
118 118
                     <vault:uri target="snapshots:snapshot" icon="edit" class="btn-flat waves-effect"
119
-                               options="<?= ['id' => $entity->id] ?>"/>
119
+                               options="<?= [ 'id' => $entity->id ] ?>"/>
120 120
                 <?php } ?>
121 121
             </grid:cell>
122 122
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 <?php if ($entity->stored()) { ?>
125 125
                     <vault:uri target="snapshots:removeSnapshot" icon="delete"
126 126
                                class="btn red waves-effect waves-light"
127
-                               options="<?= ['id' => $entity->id] ?>">
127
+                               options="<?= [ 'id' => $entity->id ] ?>">
128 128
                         [[Remove]]
129 129
                     </vault:uri>
130 130
                 <?php } ?>
Please login to merge, or discard this patch.