Completed
Pull Request — master (#69)
by Vladimir
05:36
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/Service.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
         return self::$workingDirectory;
39 39
     }
40 40
 
41
+    /**
42
+     * @param \string|null $directory
43
+     */
41 44
     public static function setWorkingDirectory($directory)
42 45
     {
43 46
         self::$workingDirectory = $directory;
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.
tests/allejo/stakx/Test/PHPUnit_Stakx_TestCase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
     ///
250 250
 
251 251
     /**
252
-     * @return Configuration|\PHPUnit_Framework_MockObject_MockObject
252
+     * @return Configuration
253 253
      */
254 254
     protected function getMockConfiguration()
255 255
     {
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/AssetEngine/SassEngine.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,13 +91,16 @@
 block discarded – undo
91 91
     {
92 92
         $sourcemap = __::get($this->options, 'sourcemap');
93 93
 
94
-        if ($sourcemap === false || $sourcemap === null) {
94
+        if ($sourcemap === false || $sourcemap === null)
95
+        {
95 96
             $this->compiler->setSourceMap(Compiler::SOURCE_MAP_NONE);
96 97
         }
97
-        elseif ($sourcemap === 'inline') {
98
+        elseif ($sourcemap === 'inline')
99
+        {
98 100
             $this->compiler->setSourceMap(Compiler::SOURCE_MAP_INLINE);
99 101
         }
100
-        else {
102
+        else
103
+        {
101 104
             $this->compiler->setSourceMap(Compiler::SOURCE_MAP_FILE);
102 105
             $this->compiler->setSourceMapOptions([
103 106
                 'sourceMapWriteTo' => $sourcemap
Please login to merge, or discard this patch.