@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | 193 | * @param $fileName |
| 194 | - * @return mixed |
|
| 194 | + * @return boolean |
|
| 195 | 195 | */ |
| 196 | 196 | public function fileExists($fileName) |
| 197 | 197 | { |
@@ -203,8 +203,8 @@ discard block |
||
| 203 | 203 | /** |
| 204 | 204 | * Deletes a directory and its contents or a file. |
| 205 | 205 | * |
| 206 | - * @param $target |
|
| 207 | - * @return bool |
|
| 206 | + * @param string $target |
|
| 207 | + * @return boolean|null |
|
| 208 | 208 | */ |
| 209 | 209 | public function deleteDirectory($target) |
| 210 | 210 | { |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | /** |
| 233 | 233 | * @param $path |
| 234 | - * @return bool |
|
| 234 | + * @return boolean|null |
|
| 235 | 235 | */ |
| 236 | 236 | public function deleteFile($path) |
| 237 | 237 | { |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | /** |
| 390 | 390 | * Ensures that a string has a trailing slash or not. |
| 391 | 391 | * |
| 392 | - * @param $path |
|
| 392 | + * @param boolean|string $path |
|
| 393 | 393 | * @param bool $slash |
| 394 | 394 | * @return string |
| 395 | 395 | */ |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * |
| 116 | 116 | * @param $source |
| 117 | 117 | * @param $destination |
| 118 | - * @param array $style |
|
| 118 | + * @param boolean $style |
|
| 119 | 119 | * @param null $cropFocusCoords |
| 120 | 120 | * @return string |
| 121 | 121 | */ |
@@ -82,9 +82,9 @@ discard block |
||
| 82 | 82 | * Creates styled images for an image object. |
| 83 | 83 | * Handles generation from the controller or the form. |
| 84 | 84 | * |
| 85 | - * @param $imageObject |
|
| 85 | + * @param ResponsiveImageInterface $imageObject |
|
| 86 | 86 | * @param $styleName |
| 87 | - * @return mixed |
|
| 87 | + * @return string |
|
| 88 | 88 | */ |
| 89 | 89 | private function createImageDerivative($imageObject, $styleName = NULL) |
| 90 | 90 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param ResponsiveImageInterface $image |
| 118 | 118 | * @paran string $stylename |
| 119 | - * @return image |
|
| 119 | + * @return string |
|
| 120 | 120 | */ |
| 121 | 121 | public function createStyledImages(ResponsiveImageInterface $image, $stylename = NULL) |
| 122 | 122 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * StyleManager constructor. |
| 39 | 39 | * |
| 40 | - * @param \ResponsiveImageBundle\FileManager $system |
|
| 40 | + * @param FileManager $system |
|
| 41 | 41 | * @param array $parameters |
| 42 | 42 | */ |
| 43 | 43 | public function __construct(FileManager $system, array $parameters) |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | /** |
| 164 | 164 | * Prefixes url string with the displayPathPrefix string, if the style and the config require it. |
| 165 | 165 | * |
| 166 | - * @param $url |
|
| 166 | + * @param string $url |
|
| 167 | 167 | * @param $style |
| 168 | 168 | * @return string |
| 169 | 169 | */ |
@@ -67,6 +67,9 @@ discard block |
||
| 67 | 67 | return $this->path; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $path |
|
| 72 | + */ |
|
| 70 | 73 | public function setPath($path) |
| 71 | 74 | { |
| 72 | 75 | $this->path = $path; |
@@ -156,7 +159,6 @@ discard block |
||
| 156 | 159 | /** |
| 157 | 160 | * Generates an <img> tag for a given style. |
| 158 | 161 | * |
| 159 | - * @param null $style |
|
| 160 | 162 | * @return string |
| 161 | 163 | */ |
| 162 | 164 | public function img() |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * Sanitizes and cleans up filename |
| 68 | 68 | * |
| 69 | 69 | * @param $str |
| 70 | - * @return mixed |
|
| 70 | + * @return string |
|
| 71 | 71 | */ |
| 72 | 72 | private function createFilename($str) |
| 73 | 73 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | /** |
| 91 | 91 | * Convert MB/K/G to bytesize |
| 92 | 92 | * |
| 93 | - * @param $uploadMaxSize |
|
| 93 | + * @param string $uploadMaxSize |
|
| 94 | 94 | * @return int |
| 95 | 95 | */ |
| 96 | 96 | public function mToBytes($uploadMaxSize) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Checks to see if a file name is unique in the storage directory. |
| 120 | 120 | * |
| 121 | - * @param $name |
|
| 121 | + * @param string $name |
|
| 122 | 122 | * @return bool |
| 123 | 123 | */ |
| 124 | 124 | private function isUniqueFilename($name) |