@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return $this->getItem($name); |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $configurator |
|
135 | + */ |
|
133 | 136 | public function loadString($configurator) |
134 | 137 | { |
135 | 138 | $iniData = parse_ini_string($configurator, true); |
@@ -180,11 +183,17 @@ discard block |
||
180 | 183 | $this[$name] = $value; |
181 | 184 | } |
182 | 185 | |
186 | + /** |
|
187 | + * @param string $key |
|
188 | + */ |
|
183 | 189 | protected function keyHasStateInstance($key, &$k) |
184 | 190 | { |
185 | 191 | return $this->offsetExists($k = current((explode(' ', $key)))); |
186 | 192 | } |
187 | 193 | |
194 | + /** |
|
195 | + * @param string $key |
|
196 | + */ |
|
188 | 197 | protected function keyHasInstantiator($key) |
189 | 198 | { |
190 | 199 | return false !== stripos($key, ' '); |
@@ -213,6 +222,9 @@ discard block |
||
213 | 222 | return $value; |
214 | 223 | } |
215 | 224 | |
225 | + /** |
|
226 | + * @param string $key |
|
227 | + */ |
|
216 | 228 | protected function parseStandardItem($key, &$value) |
217 | 229 | { |
218 | 230 | if (is_array($value)) { |
@@ -224,11 +236,17 @@ discard block |
||
224 | 236 | $this->offsetSet($key, $value); |
225 | 237 | } |
226 | 238 | |
239 | + /** |
|
240 | + * @return string |
|
241 | + */ |
|
227 | 242 | protected function removeDuplicatedSpaces($string) |
228 | 243 | { |
229 | 244 | return preg_replace('/\s+/', ' ', $string); |
230 | 245 | } |
231 | 246 | |
247 | + /** |
|
248 | + * @param string $key |
|
249 | + */ |
|
232 | 250 | protected function parseInstantiator($key, $value) |
233 | 251 | { |
234 | 252 | $key = $this->removeDuplicatedSpaces($key); |
@@ -261,6 +279,10 @@ discard block |
||
261 | 279 | return $this->parseSingleValue($value); |
262 | 280 | } |
263 | 281 | } |
282 | + |
|
283 | + /** |
|
284 | + * @param string $value |
|
285 | + */ |
|
264 | 286 | protected function hasCompleteBrackets($value) |
265 | 287 | { |
266 | 288 | return false !== strpos($value, '[') && false !== strpos($value, ']'); |
@@ -276,6 +298,9 @@ discard block |
||
276 | 298 | } |
277 | 299 | } |
278 | 300 | |
301 | + /** |
|
302 | + * @param string $value |
|
303 | + */ |
|
279 | 304 | protected function parseConstants($value) |
280 | 305 | { |
281 | 306 | if (preg_match('/^[\\a-zA-Z_]+([:]{2}[A-Z_]+)?$/', $value) && defined($value)) { |
@@ -299,6 +324,9 @@ discard block |
||
299 | 324 | } |
300 | 325 | } |
301 | 326 | |
327 | + /** |
|
328 | + * @param string $value |
|
329 | + */ |
|
302 | 330 | protected function parseBrackets($value) |
303 | 331 | { |
304 | 332 | if ($this->matchSequence($value)) { |
@@ -194,6 +194,9 @@ |
||
194 | 194 | && $this->reflection->getMethod($name)->isStatic(); |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param \Closure $resultCallback |
|
199 | + */ |
|
197 | 200 | protected function performMethodCalls($class, array $methodCalls, $resultCallback = null) |
198 | 201 | { |
199 | 202 | list($methodName, $calls) = $methodCalls; |