Completed
Push — master ( 2fc4c0...354429 )
by Vladimir
02:57
created
src/allejo/stakx/Templating/Twig/Extension/OrderFilter.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
             return $array;
19 19
         }
20 20
 
21
-        usort($array, function ($a, $b) use ($key, $order) {
21
+        usort($array, function ($a, $b) use ($key, $order)
22
+        {
22 23
             $aValue = __::get($a, $key);
23 24
             $bValue = __::get($b, $key);
24 25
 
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * Compile the website.
46 46
      *
47
-     * @return true if the website built successfully
47
+     * @return false|null if the website built successfully
48 48
      */
49 49
     public function build()
50 50
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/CollectionManager.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,8 @@
 block discarded – undo
105 105
      */
106 106
     public function getJailedCollections()
107 107
     {
108
-        return self::getJailedTrackedItems($this->trackedItemsFlattened, function ($contentItem) {
108
+        return self::getJailedTrackedItems($this->trackedItemsFlattened, function ($contentItem)
109
+        {
109 110
             return $contentItem['basename'];
110 111
         });
111 112
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Document/BasePageView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * Create the appropriate object type when parsing a PageView.
42 42
      *
43
-     * @return DynamicPageView|StaticPageView|RepeaterPageView
43
+     * @return BasePageView
44 44
      */
45 45
     public static function create(File $filePath, array $complexVariables = [])
46 46
     {
Please login to merge, or discard this patch.
tests/allejo/stakx/Test/PHPUnit_Stakx_TestCase.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @return Configuration|\PHPUnit_Framework_MockObject_MockObject
262
+     * @return Configuration
263 263
      */
264 264
     protected function getMockConfiguration()
265 265
     {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     /**
378 378
      * Get a mock EventDispatcher.
379 379
      *
380
-     * @return EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject
380
+     * @return EventDispatcherInterface
381 381
      */
382 382
     protected function getMockEventDistpatcher()
383 383
     {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     /**
388 388
      * Get a mock logger.
389 389
      *
390
-     * @return LoggerInterface|\PHPUnit_Framework_MockObject_MockObject
390
+     * @return LoggerInterface
391 391
      */
392 392
     protected function getMockLogger()
393 393
     {
Please login to merge, or discard this patch.
src/allejo/stakx/AssetEngine/Sass/SourceMapGenerator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
         $this->generatorOptions = $options;
28 28
     }
29 29
 
30
+    /**
31
+     * @return string
32
+     */
30 33
     public function getSourceMapContents()
31 34
     {
32 35
         return $this->sourceMapContent;
Please login to merge, or discard this patch.
src/allejo/stakx/Service.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -13,11 +13,18 @@  discard block
 block discarded – undo
13 13
     protected static $runTimeStatus;
14 14
     protected static $options;
15 15
 
16
+    /**
17
+     * @param string $key
18
+     * @param string $value
19
+     */
16 20
     public static function setOption($key, $value)
17 21
     {
18 22
         self::$options[$key] = $value;
19 23
     }
20 24
 
25
+    /**
26
+     * @param string $key
27
+     */
21 28
     public static function getOption($key)
22 29
     {
23 30
         return isset(self::$options[$key]) ? self::$options[$key] : null;
@@ -48,6 +55,9 @@  discard block
 block discarded – undo
48 55
         return self::$workingDirectory;
49 56
     }
50 57
 
58
+    /**
59
+     * @param \string|null $directory
60
+     */
51 61
     public static function setWorkingDirectory($directory)
52 62
     {
53 63
         self::$workingDirectory = $directory;
Please login to merge, or discard this patch.
src/allejo/stakx/MarkupEngine/MarkdownEngine.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             try
72 72
             {
73 73
                 $highlighted = $this->highlighter->highlight($language, $block['element']['text']['text']);
74
-                $block['markup'] = "<pre><code class=\"hljs ${cssClass}\">" . $highlighted->value . '</code></pre>';
74
+                $block['markup'] = "<pre><code class=\"hljs ${cssclass}\">" . $highlighted->value . '</code></pre>';
75 75
 
76 76
                 // Only return the block if Highlighter knew the language and how to handle it.
77 77
                 return $block;
Please login to merge, or discard this patch.
src/allejo/stakx/Server/MimeDetector.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@
 block discarded – undo
104 104
         'svg' => 'image/svg+xml',
105 105
     ];
106 106
 
107
+    /**
108
+     * @return \allejo\stakx\Document\StaticPageView
109
+     */
107 110
     public static function getMimeType($extension)
108 111
     {
109 112
         return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null;
Please login to merge, or discard this patch.