@@ -157,7 +157,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |