Completed
Pull Request — master (#41)
by Vladimir
02:32
created
src/allejo/stakx/System/FileExplorer.php 2 patches
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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,8 @@
 block discarded – undo
203 203
             }
204 204
 
205 205
             if (strpos($haystack, $query, $offset) !== false)
206
-            { // stop on first true result
206
+            {
207
+// stop on first true result
207 208
                 return true;
208 209
             }
209 210
         }
Please login to merge, or discard this patch.
src/allejo/stakx/Object/FrontMatterObject.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
         if (!$this->fs->exists($filePath))
86 86
         {
87
-            throw new FileNotFoundException("The following file could not be found: ${filePath}");
87
+            throw new FileNotFoundException("The following file could not be found: ${filepath}");
88 88
         }
89 89
 
90 90
         $this->extension = strtolower($this->fs->getExtension($filePath));
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
     /**
175 175
      * Get the original file path.
176 176
      *
177
-     * @return string
177
+     * @return SplFileInfo
178 178
      */
179 179
     final public function getFilePath()
180 180
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/ThemeManager.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         if (!$this->fs->exists($this->themeFolder))
26 26
         {
27
-            throw new FileNotFoundException("The '${themeName}' theme folder could not be found.'");
27
+            throw new FileNotFoundException("The '${themename}' theme folder could not be found.'");
28 28
         }
29 29
 
30 30
         if ($this->fs->exists($this->themeFile))
Please login to merge, or discard this patch.
src/allejo/stakx/FrontMatter/FrontMatterParser.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/Object/Configuration.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * @TODO 1.0.0 Remove support for 'base' in next major release; it has been replaced by 'baseurl'
99 99
      *
100
-     * @return mixed|null
100
+     * @return string
101 101
      */
102 102
     public function getBaseUrl()
103 103
     {
@@ -168,6 +168,9 @@  discard block
 block discarded – undo
168 168
         return $this->configuration['twig']['autoescape'];
169 169
     }
170 170
 
171
+    /**
172
+     * @return string|false
173
+     */
171 174
     public function getRedirectTemplate()
172 175
     {
173 176
         return $this->configuration['templates']['redirect'];
Please login to merge, or discard this patch.
src/allejo/stakx/Object/Website.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -349,6 +349,9 @@  discard block
 block discarded – undo
349 349
         $this->noClean = $noClean;
350 350
     }
351 351
 
352
+    /**
353
+     * @param string $filePath
354
+     */
352 355
     private function creationWatcher($filePath)
353 356
     {
354 357
         $this->output->writeln(sprintf('File creation detected: %s', $filePath));
@@ -390,6 +393,9 @@  discard block
 block discarded – undo
390 393
         }
391 394
     }
392 395
 
396
+    /**
397
+     * @param string $filePath
398
+     */
393 399
     private function modificationWatcher($filePath)
394 400
     {
395 401
         $this->output->writeln(sprintf('File change detected: %s', $filePath));
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/StreamInterceptor.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 
19 19
     public function filter($in, $out, &$consumed, $closing)
20 20
     {
21
-        while ($bucket = stream_bucket_make_writeable($in)) {
21
+        while ($bucket = stream_bucket_make_writeable($in))
22
+        {
22 23
             self::$output .= $bucket->data;
23 24
             $consumed += $bucket->datalen;
24 25
         }
Please login to merge, or discard this patch.
tests/allejo/stakx/Test/PHPUnit_Stakx_TestCase.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,8 @@
 block discarded – undo
84 84
     {
85 85
         $results = array();
86 86
 
87
-        foreach ($elements as $element) {
87
+        foreach ($elements as $element)
88
+        {
88 89
             $filename = (isset($element['filename'])) ? $element['filename'] : hash('sha256', uniqid(mt_rand(), true), false);
89 90
             $frontMatter = (empty($element['frontmatter'])) ? '' : Yaml::dump($element['frontmatter'], 2);
90 91
             $body = (isset($element['body'])) ? $element['body'] : 'Body Text';
Please login to merge, or discard this 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.