@@ -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 | { |
@@ -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 | } |
@@ -40,7 +40,7 @@ |
||
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 | { |
@@ -259,7 +259,7 @@ discard block |
||
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 |
||
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 |
||
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 | { |
@@ -92,6 +92,9 @@ |
||
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @return string |
|
97 | + */ |
|
95 | 98 | public static function stringToFormatter($format) |
96 | 99 | { |
97 | 100 | if ($format == 'nested') |
@@ -78,13 +78,16 @@ |
||
78 | 78 | { |
79 | 79 | $sourcemap = __::get($this->options, 'sourcemap'); |
80 | 80 | |
81 | - if ($sourcemap === false || $sourcemap === null) { |
|
81 | + if ($sourcemap === false || $sourcemap === null) |
|
82 | + { |
|
82 | 83 | $this->compiler->setSourceMap(Compiler::SOURCE_MAP_NONE); |
83 | 84 | } |
84 | - elseif ($sourcemap === 'inline') { |
|
85 | + elseif ($sourcemap === 'inline') |
|
86 | + { |
|
85 | 87 | $this->compiler->setSourceMap(Compiler::SOURCE_MAP_INLINE); |
86 | 88 | } |
87 | - else { |
|
89 | + else |
|
90 | + { |
|
88 | 91 | $this->compiler->setSourceMap(Compiler::SOURCE_MAP_FILE); |
89 | 92 | $this->compiler->setSourceMapOptions([ |
90 | 93 | 'sourceMapRootpath' => Service::getWorkingDirectory(), |