@@ -153,7 +153,7 @@ |
||
153 | 153 | * |
154 | 154 | * Any controller options are documented in that controller's setupSources() method. |
155 | 155 | * |
156 | - * @param mixed $controller instance of subclass of Minify_Controller_Base or string |
|
156 | + * @param string $controller instance of subclass of Minify_Controller_Base or string |
|
157 | 157 | * name of controller. E.g. 'Files' |
158 | 158 | * |
159 | 159 | * @param array $options controller/serve options |
@@ -96,6 +96,9 @@ |
||
96 | 96 | return implode("\n", $output); |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $tmpFile |
|
101 | + */ |
|
99 | 102 | private static function _getCmd($userOptions, $tmpFile) |
100 | 103 | { |
101 | 104 | $o = array_merge( |
@@ -212,7 +212,7 @@ |
||
212 | 212 | * |
213 | 213 | * @param string $path |
214 | 214 | * |
215 | - * @return mixed path with no trailing slash |
|
215 | + * @return string path with no trailing slash |
|
216 | 216 | */ |
217 | 217 | protected static function _realpath($path) |
218 | 218 | { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * Get unique string for a set of sources |
149 | 149 | * |
150 | - * @param array $sources Minify_Source instances |
|
150 | + * @param Minify_Source[] $sources Minify_Source instances |
|
151 | 151 | * |
152 | 152 | * @return string |
153 | 153 | */ |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * This is called if the user doesn't pass in a 'contentType' options |
168 | 168 | * |
169 | - * @param array $sources Minify_Source instances |
|
169 | + * @param Minify_Source[] $sources Minify_Source instances |
|
170 | 170 | * |
171 | 171 | * @return string content type. e.g. 'text/css' |
172 | 172 | */ |
@@ -86,6 +86,10 @@ discard block |
||
86 | 86 | return self::_minify('css', $css, $options); |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param string $type |
|
91 | + * @param string $content |
|
92 | + */ |
|
89 | 93 | private static function _minify($type, $content, $options) |
90 | 94 | { |
91 | 95 | self::_prepare(); |
@@ -101,6 +105,9 @@ discard block |
||
101 | 105 | return implode("\n", $output); |
102 | 106 | } |
103 | 107 | |
108 | + /** |
|
109 | + * @param string $tmpFile |
|
110 | + */ |
|
104 | 111 | private static function _getCmd($userOptions, $type, $tmpFile) |
105 | 112 | { |
106 | 113 | $o = array_merge( |
@@ -316,6 +316,7 @@ |
||
316 | 316 | * {@inheritdoc} |
317 | 317 | * |
318 | 318 | * @throws \LogicException when the content is not null |
319 | + * @param string $content |
|
319 | 320 | */ |
320 | 321 | public function setContent($content) |
321 | 322 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * |
32 | 32 | * @param string $name The name of the cookie |
33 | 33 | * @param string $value The value of the cookie |
34 | - * @param int|string|\DateTime|\DateTimeInterface $expire The time the cookie expires |
|
34 | + * @param integer $expire The time the cookie expires |
|
35 | 35 | * @param string $path The path on the server in which the cookie will be available on |
36 | 36 | * @param string $domain The domain that the cookie is available to |
37 | 37 | * @param bool $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client |
@@ -103,6 +103,10 @@ |
||
103 | 103 | return $target; |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $directory |
|
108 | + * @param string $name |
|
109 | + */ |
|
106 | 110 | protected function getTargetFile($directory, $name = null) |
107 | 111 | { |
108 | 112 | if (!is_dir($directory)) { |
@@ -104,7 +104,7 @@ |
||
104 | 104 | * Returns a header value by name. |
105 | 105 | * |
106 | 106 | * @param string $key The header name |
107 | - * @param mixed $default The default value |
|
107 | + * @param string|null $default The default value |
|
108 | 108 | * @param bool $first Whether to return the first value or all header values |
109 | 109 | * |
110 | 110 | * @return string|array The first header value if $first is true, an array of values otherwise |