| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | */ | 
| 32 | 32 | public function __construct(&$session) | 
| 33 | 33 |      { | 
| 34 | - $this->session =& $session; | |
| 34 | + $this->session = & $session; | |
| 35 | 35 | } | 
| 36 | 36 | |
| 37 | 37 | /** | 
| @@ -290,7 +290,8 @@ | ||
| 290 | 290 | */ | 
| 291 | 291 | protected function getContentType($format) | 
| 292 | 292 |      { | 
| 293 | -        if (\Jasny\str_contains($format, '/')) { // Already MIME | |
| 293 | +        if (\Jasny\str_contains($format, '/')) { | |
| 294 | +// Already MIME | |
| 294 | 295 | return $format; | 
| 295 | 296 | } | 
| 296 | 297 | |
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 |          $this->session = $this->getRequest()->getAttribute('session'); | 
| 39 | 39 | |
| 40 | 40 |          if (!isset($this->session)) { | 
| 41 | - $this->session =& $_SESSION; | |
| 41 | + $this->session = & $_SESSION; | |
| 42 | 42 | } | 
| 43 | 43 | } | 
| 44 | 44 | |
| @@ -105,7 +105,7 @@ discard block | ||
| 105 | 105 | /** | 
| 106 | 106 | * Cancel the action | 
| 107 | 107 | * | 
| 108 | - * @return boolean | |
| 108 | + * @return boolean|null | |
| 109 | 109 | */ | 
| 110 | 110 | public function cancel() | 
| 111 | 111 |      { | 
| @@ -151,7 +151,7 @@ discard block | ||
| 151 | 151 | /** | 
| 152 | 152 | * Get the arguments for a function from a route using reflection | 
| 153 | 153 | * | 
| 154 | - * @param object $route | |
| 154 | + * @param \stdClass $route | |
| 155 | 155 | * @param \ReflectionFunctionAbstract $refl | 
| 156 | 156 | * @return array | 
| 157 | 157 | */ |