Completed
Pull Request — master (#48)
by Vladimir
03:04
created
src/allejo/stakx/System/FileExplorer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
      * FileExplorer constructor.
64 64
      *
65 65
      * @param \RecursiveIterator $iterator
66
-     * @param array              $excludes
67
-     * @param array              $includes
66
+     * @param string[]              $excludes
67
+     * @param string[]              $includes
68 68
      * @param int|null           $flags
69 69
      */
70 70
     public function __construct(\RecursiveIterator $iterator, array $excludes = array(), array $includes = array(), $flags = null)
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/TextExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Returns a list of filters.
17 17
      *
18
-     * @return array
18
+     * @return Twig_SimpleFilter[]
19 19
      */
20 20
     public function getFilters()
21 21
     {
Please login to merge, or discard this patch.
tests/allejo/stakx/Test/PHPUnit_Stakx_TestCase.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
     // Assertion functions
51 51
     ///
52 52
 
53
+    /**
54
+     * @param string $haystack
55
+     */
53 56
     protected function assertStringContains($needle, $haystack, $message = '')
54 57
     {
55 58
         $this->assertNotFalse(strpos($haystack, $needle), $message);
Please login to merge, or discard this patch.
src/allejo/stakx/Engines/PlainTextEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 
10 10
 class PlainTextEngine implements ParsingEngine
11 11
 {
12
+    /**
13
+     * @param string $context
14
+     */
12 15
     public function parse($context)
13 16
     {
14 17
         return $context;
Please login to merge, or discard this patch.
src/allejo/stakx/System/StakxResource.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
      */
15 15
     private static $fs;
16 16
 
17
+    /**
18
+     * @param string $fileName
19
+     */
17 20
     public static function getResource($fileName)
18 21
     {
19 22
         self::initFileSystem();
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/WhereFilter.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param array|\ArrayAccess[] $array      The elements to filter through
90 90
      * @param string               $key        The key value in an associative array or FrontMatter
91 91
      * @param string               $comparison The actual comparison symbols being used
92
-     * @param mixed                $value      The value we're searching for
92
+     * @param string                $value      The value we're searching for
93 93
      *
94 94
      * @throws Twig_Error_Syntax
95 95
      *
@@ -147,6 +147,9 @@  discard block
 block discarded – undo
147 147
         return false;
148 148
     }
149 149
 
150
+    /**
151
+     * @param string $comparison
152
+     */
150 153
     private function comparisonSymbol($lhs, $comparison, $rhs)
151 154
     {
152 155
         switch ($comparison)
Please login to merge, or discard this patch.
src/allejo/stakx/Utilities/ArrayUtilities.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
         return false;
23 23
     }
24 24
 
25
+    /**
26
+     * @param string $keyField
27
+     */
25 28
     public static function array_merge_defaults(array &$array1, array &$array2, $keyField)
26 29
     {
27 30
         $merged = $array1;
Please login to merge, or discard this 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/FrontMatter/Parser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
      *
198 198
      * @param string $frontMatterKey     The current hierarchy of the Front Matter keys being used
199 199
      * @param string $expandableValue    The Front Matter value that will be expanded
200
-     * @param array  $arrayVariableNames The Front Matter variable names that reference arrays
200
+     * @param string[]  $arrayVariableNames The Front Matter variable names that reference arrays
201 201
      *
202 202
      * @throws YamlUnsupportedVariableException If a multidimensional array is given for value expansion
203 203
      *
Please login to merge, or discard this patch.
src/allejo/stakx/FrontMatter/WritableDocumentInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@  discard block
 block discarded – undo
13 13
      * Evaluate the FrontMatter in this object by merging a custom array of data.
14 14
      *
15 15
      * @param array|null $variables An array of YAML variables to use in evaluating the `$permalink` value
16
+     * @return void
16 17
      */
17 18
     public function evaluateFrontMatter($variables = null);
18 19
 
@@ -36,6 +37,7 @@  discard block
 block discarded – undo
36 37
      * Append a custom FrontMatter value.
37 38
      *
38 39
      * @param array $frontMatter
40
+     * @return void
39 41
      */
40 42
     public function appendFrontMatter(array $frontMatter);
41 43
 
@@ -45,6 +47,7 @@  discard block
 block discarded – undo
45 47
      * This will not delete a FrontMatter value parsed from the file
46 48
      *
47 49
      * @param string $key
50
+     * @return void
48 51
      */
49 52
     public function deleteFrontMatter($key);
50 53
 
@@ -55,6 +58,7 @@  discard block
 block discarded – undo
55 58
      * available to Twig templates
56 59
      *
57 60
      * @param array $frontMatter
61
+     * @return void
58 62
      */
59 63
     public function setFrontMatter(array $frontMatter);
60 64
 }
Please login to merge, or discard this patch.