Completed
Pull Request — master (#42)
by Vladimir
02:42
created
src/allejo/stakx/Utilities/ArrayUtilities.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/allejo/stakx/Configuration.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
66 66
         $this->fs = new Filesystem();
67 67
     }
68 68
 
69
+    /**
70
+     * @param string|null $filePath
71
+     */
69 72
     private static function readFile($filePath)
70 73
     {
71 74
         $fs = new Filesystem();
@@ -75,6 +78,9 @@  discard block
 block discarded – undo
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;
@@ -147,7 +153,7 @@  discard block
 block discarded – undo
147 153
     /**
148 154
      * @TODO 1.0.0 Remove support for 'base' in next major release; it has been replaced by 'baseurl'
149 155
      *
150
-     * @return mixed|null
156
+     * @return string
151 157
      */
152 158
     public function getBaseUrl()
153 159
     {
@@ -218,6 +224,9 @@  discard block
 block discarded – undo
218 224
         return $this->configuration['twig']['autoescape'];
219 225
     }
220 226
 
227
+    /**
228
+     * @return string|false
229
+     */
221 230
     public function getRedirectTemplate()
222 231
     {
223 232
         return $this->configuration['templates']['redirect'];
@@ -379,6 +388,9 @@  discard block
 block discarded – undo
379 388
         return $noErrors;
380 389
     }
381 390
 
391
+    /**
392
+     * @param string|null $filePath
393
+     */
382 394
     private function isRecursiveImport($filePath)
383 395
     {
384 396
         if (in_array($filePath, self::$configImports))
Please login to merge, or discard this patch.