@@ -30,7 +30,9 @@ |
||
| 30 | 30 | |
| 31 | 31 | $location = $this->response->location->get(); |
| 32 | 32 | |
| 33 | - if ( $location != null ) $this->response->headers->set("Location", $location); |
|
| 33 | + if ( $location != null ) { |
|
| 34 | + $this->response->headers->set("Location", $location); |
|
| 35 | + } |
|
| 34 | 36 | |
| 35 | 37 | parent::consolidate(); |
| 36 | 38 | |
@@ -32,7 +32,9 @@ |
||
| 32 | 32 | |
| 33 | 33 | $location = $this->response->location->get(); |
| 34 | 34 | |
| 35 | - if ( empty($location) ) throw new Exception("Invalid location, cannot redirect"); |
|
| 35 | + if ( empty($location) ) { |
|
| 36 | + throw new Exception("Invalid location, cannot redirect"); |
|
| 37 | + } |
|
| 36 | 38 | |
| 37 | 39 | $this->response->headers->set("Location", $location); |
| 38 | 40 | |