Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function process(Request $request, DynamicRoute $route) |
||
22 | { |
||
23 | if(isset($route->configuration['status_code']) && in_array((int)$route->configuration['status_code'], [300,301,302,303,304,305,307,308])) { |
||
|
|||
24 | return Redirect::to($route->configuration['target'], (int)$route->configuration['status_code']); |
||
25 | } |
||
26 | return Redirect::to($route->configuration['target']); |
||
27 | } |
||
28 | |||
42 | } |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.