@@ -158,6 +158,9 @@ |
||
158 | 158 | ); |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @return string |
|
163 | + */ |
|
161 | 164 | public static function stringToFormatter($format) |
162 | 165 | { |
163 | 166 | if ($format == 'nested') |
@@ -27,6 +27,9 @@ |
||
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; |
@@ -13,11 +13,18 @@ discard block |
||
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 |
||
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; |
@@ -152,6 +152,9 @@ discard block |
||
152 | 152 | }); |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param string $url |
|
157 | + */ |
|
155 | 158 | public static function normalizeUrl($url) |
156 | 159 | { |
157 | 160 | return str_replace(self::$baseUrl, '/', $url); |
@@ -163,7 +166,7 @@ discard block |
||
163 | 166 | * @param DynamicPageView $pageView |
164 | 167 | * @param $permalink |
165 | 168 | * |
166 | - * @return CollectableItem|ReadableDocument|TemplateReadyDocument|null |
|
169 | + * @return CollectableItem|null |
|
167 | 170 | */ |
168 | 171 | private static function getContentItem(DynamicPageView $pageView, $permalink) |
169 | 172 | { |
@@ -103,6 +103,9 @@ |
||
103 | 103 | 'json' => 'application/json', |
104 | 104 | ]; |
105 | 105 | |
106 | + /** |
|
107 | + * @return \allejo\stakx\Document\StaticPageView |
|
108 | + */ |
|
106 | 109 | public static function getMimeType($extension) |
107 | 110 | { |
108 | 111 | return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null; |