Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function resolveResource(Request $request, array $options) |
||
17 | { |
||
18 | // TODO improve this detection maybe? |
||
19 | if (isset($options['expr'])) { |
||
20 | return $this->expressionLanguageBased->resolveResource($request, $options); |
||
21 | } |
||
22 | |||
23 | return $this->optionsBased->resolveResource($request, $options); |
||
24 | } |
||
25 | } |
||
26 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: