@@ -18,7 +18,8 @@ |
||
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 |
@@ -38,6 +38,9 @@ |
||
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; |
@@ -44,7 +44,7 @@ |
||
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 | { |
@@ -249,7 +249,7 @@ |
||
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 | { |
@@ -105,7 +105,8 @@ |
||
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 | } |
@@ -91,13 +91,16 @@ |
||
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 |