Completed
Pull Request — master (#75)
by Vladimir
02:08
created
src/allejo/stakx/AssetEngine/Sass/SassEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -158,6 +158,9 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
src/allejo/stakx/AssetEngine/Sass/SourceMapGenerator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/allejo/stakx/Server/RouteDispatcher.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@
 block discarded – undo
88 88
      * Find a ContentItem from a Dynamic PageView or null if it doesn't exist.
89 89
      *
90 90
      * @param DynamicPageView $pageView
91
-     * @param                 $permalink
91
+     * @param                 string $permalink
92 92
      *
93
-     * @return CollectableItem|ReadableDocument|TemplateReadyDocument|null
93
+     * @return CollectableItem|null
94 94
      */
95 95
     private static function getContentItem(DynamicPageView $pageView, $permalink)
96 96
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Server/DevServer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
 class DevServer
15 15
 {
16
+    /**
17
+     * @param string $url
18
+     */
16 19
     private static function searchAsset($url, $continueNesting = true)
17 20
     {
18 21
         $preparedPath = substr($url, 0, 1) === '/' ? substr($url, 1) : $url;
Please login to merge, or discard this patch.
src/allejo/stakx/Server/MimeDetector.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         'json'  => 'application/json'
99 99
     ];
100 100
 
101
+    /**
102
+     * @return \allejo\stakx\Document\StaticPageView
103
+     */
101 104
     public static function getMimeType($extension)
102 105
     {
103 106
         return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null;
Please login to merge, or discard this patch.
src/allejo/stakx/Service.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -13,11 +13,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.