1 | <?php |
||
18 | class PrioritizedPathsResolver extends FileResolverAbstract |
||
19 | { |
||
20 | /** |
||
21 | * @var PriorityQueue|ResolverInterface[] |
||
22 | */ |
||
23 | protected $paths; |
||
24 | |||
25 | /** |
||
26 | * Flag indicating whether or not LFI protection for rendering view scripts is enabled |
||
27 | * |
||
28 | * @var bool |
||
29 | */ |
||
30 | protected $lfiProtectionOn = true; |
||
31 | |||
32 | /** |
||
33 | * Constructor. |
||
34 | * Construct object and set a new PriorityQueue. |
||
35 | */ |
||
36 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function addPath($path) |
||
67 | |||
68 | /** |
||
69 | * {@inheritDoc} |
||
70 | */ |
||
71 | public function getPaths() |
||
75 | |||
76 | /** |
||
77 | * {@inheritDoc} |
||
78 | */ |
||
79 | public function clearPaths() |
||
83 | |||
84 | /** |
||
85 | * Add many paths to the stack at once |
||
86 | * |
||
87 | * @param array|Traversable $paths |
||
88 | * |
||
89 | * @return void |
||
90 | */ |
||
91 | public function addPaths($paths) |
||
97 | |||
98 | /** |
||
99 | * Rest the path stack to the paths provided |
||
100 | * |
||
101 | * @param Traversable|array $paths |
||
102 | * |
||
103 | * @throws Exception\InvalidArgumentException |
||
104 | */ |
||
105 | public function setPaths($paths) |
||
117 | |||
118 | /** |
||
119 | * Normalize a path for insertion in the stack |
||
120 | * |
||
121 | * @param string $path |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | protected function normalizePath($path) |
||
132 | |||
133 | /** |
||
134 | * Set LFI protection flag |
||
135 | * |
||
136 | * @param bool $flag |
||
137 | * @return void |
||
138 | */ |
||
139 | public function setLfiProtection($flag) |
||
143 | |||
144 | /** |
||
145 | * Return status of LFI protection flag |
||
146 | * |
||
147 | * @return bool |
||
148 | */ |
||
149 | public function isLfiProtectionOn() |
||
153 | |||
154 | /** |
||
155 | * {@inheritDoc} |
||
156 | */ |
||
157 | public function resolve($name) |
||
177 | |||
178 | /** |
||
179 | * {@inheritDoc} |
||
180 | */ |
||
181 | public function collect() |
||
209 | } |
||
210 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.