| @@ -78,10 +78,10 @@ | ||
| 78 | 78 | */ | 
| 79 | 79 | public static function associative_array_split($key, array &$array, $considerOffset = true) | 
| 80 | 80 |      { | 
| 81 | - $offset = array_search($key, array_keys($array)) + (int)$considerOffset; | |
| 81 | + $offset = array_search($key, array_keys($array)) + (int) $considerOffset; | |
| 82 | 82 | $result = array(); | 
| 83 | 83 | |
| 84 | - $result[0] = array_slice($array, 0 , $offset, true); | |
| 84 | + $result[0] = array_slice($array, 0, $offset, true); | |
| 85 | 85 | $result[1] = array_slice($array, $offset, null, true); | 
| 86 | 86 | |
| 87 | 87 | return $result; | 
| @@ -66,6 +66,9 @@ discard block | ||
| 66 | 66 | $this->fs = new Filesystem(); | 
| 67 | 67 | } | 
| 68 | 68 | |
| 69 | + /** | |
| 70 | + * @param string $filePath | |
| 71 | + */ | |
| 69 | 72 | private static function readFile($filePath) | 
| 70 | 73 |      { | 
| 71 | 74 | $fs = new Filesystem(); | 
| @@ -75,6 +78,9 @@ discard block | ||
| 75 | 78 | return (null === $parsed) ? array() : $parsed; | 
| 76 | 79 | } | 
| 77 | 80 | |
| 81 | + /** | |
| 82 | + * @param string $configFile | |
| 83 | + */ | |
| 78 | 84 | public function parse($configFile = null) | 
| 79 | 85 |      { | 
| 80 | 86 | $this->parentConfig = $configFile; | 
| @@ -152,7 +158,7 @@ discard block | ||
| 152 | 158 | /** | 
| 153 | 159 | * @TODO 1.0.0 Remove support for 'base' in next major release; it has been replaced by 'baseurl' | 
| 154 | 160 | * | 
| 155 | - * @return mixed|null | |
| 161 | + * @return string | |
| 156 | 162 | */ | 
| 157 | 163 | public function getBaseUrl() | 
| 158 | 164 |      { | 
| @@ -223,6 +229,9 @@ discard block | ||
| 223 | 229 | return $this->configuration['twig']['autoescape']; | 
| 224 | 230 | } | 
| 225 | 231 | |
| 232 | + /** | |
| 233 | + * @return string|false | |
| 234 | + */ | |
| 226 | 235 | public function getRedirectTemplate() | 
| 227 | 236 |      { | 
| 228 | 237 | return $this->configuration['templates']['redirect']; | 
| @@ -384,6 +393,9 @@ discard block | ||
| 384 | 393 | return $noErrors; | 
| 385 | 394 | } | 
| 386 | 395 | |
| 396 | + /** | |
| 397 | + * @param string $filePath | |
| 398 | + */ | |
| 387 | 399 | private function isRecursiveImport($filePath) | 
| 388 | 400 |      { | 
| 389 | 401 | if (in_array($filePath, self::$configImports)) |