@@ -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; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param string $url |
208 | 208 | * |
209 | - * @return mixed |
|
209 | + * @return string |
|
210 | 210 | */ |
211 | 211 | public static function normalizeUrl($url) |
212 | 212 | { |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | * Find a ContentItem from a Dynamic PageView or null if it doesn't exist. |
218 | 218 | * |
219 | 219 | * @param DynamicPageView $pageView |
220 | - * @param $permalink |
|
220 | + * @param string $permalink |
|
221 | 221 | * |
222 | - * @return CollectableItem|ReadableDocument|TemplateReadyDocument|null |
|
222 | + * @return CollectableItem|null |
|
223 | 223 | */ |
224 | 224 | private static function getContentItem(DynamicPageView $pageView, $permalink) |
225 | 225 | { |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * Find the ExpandedValue from a Repeater PageView or null if it doesn't exist. |
241 | 241 | * |
242 | 242 | * @param RepeaterPageView $pageView |
243 | - * @param $permalink |
|
243 | + * @param string $permalink |
|
244 | 244 | * |
245 | 245 | * @return ExpandedValue|null |
246 | 246 | */ |
@@ -104,6 +104,9 @@ |
||
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; |