@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @param array $options |
69 | - * @param mixed $option |
|
69 | + * @param string $option |
|
70 | 70 | * @param mixed $default |
71 | 71 | * @return array |
72 | 72 | */ |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | - * @param $path |
|
52 | + * @param string $path |
|
53 | 53 | * @param string $filename Filename for saving dialog on the client-side |
54 | 54 | * @param bool $forceSaveDialog |
55 | 55 | * @return EmptyResponse |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @return string|null |
|
105 | + * @return UploadedFile|null |
|
106 | 106 | */ |
107 | 107 | protected function upload() |
108 | 108 | { |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | |
119 | 119 | /** |
120 | 120 | * @param ResourceDOInterface $resourceDO |
121 | - * @param $uri |
|
122 | - * @return UploadedFile |
|
121 | + * @param string $uri |
|
122 | + * @return DownloadedFile |
|
123 | 123 | * @throws ErrorException |
124 | 124 | * @throws \Exception |
125 | 125 | */ |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param $directory |
|
55 | + * @param string $directory |
|
56 | 56 | * @throws SaveResourceErrorException |
57 | 57 | * @see \Staticus\Resources\Middlewares\SaveResourceMiddlewareAbstract::createDirectory |
58 | 58 | */ |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return BackupResourceCommand |
|
27 | + * @return CopyResourceCommand |
|
28 | 28 | */ |
29 | 29 | public function getCommand(ResourceDO $resourceDOSource, ResourceDO $resourceDODest) |
30 | 30 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @return BackupResourceCommand |
|
29 | + * @return DestroyResourceCommand |
|
30 | 30 | */ |
31 | 31 | public function getCommand(ResourceDO $resourceDO) |
32 | 32 | { |
@@ -57,6 +57,12 @@ discard block |
||
57 | 57 | $next($request, $response, $next); |
58 | 58 | } |
59 | 59 | } |
60 | + |
|
61 | + /** |
|
62 | + * @param integer $status |
|
63 | + * @param string $message |
|
64 | + * @param string $code |
|
65 | + */ |
|
60 | 66 | protected function response($status, $message, $code) |
61 | 67 | { |
62 | 68 | $error = $this->getErrorArray($message, $code); |
@@ -86,7 +92,7 @@ discard block |
||
86 | 92 | } |
87 | 93 | |
88 | 94 | /** |
89 | - * @param $error |
|
95 | + * @param \Exception $error |
|
90 | 96 | * @param $className |
91 | 97 | * @return string |
92 | 98 | */ |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @param mixed $width |
|
53 | + * @param integer $width |
|
54 | 54 | * @return ResourceImageDO |
55 | 55 | */ |
56 | 56 | public function setWidth($width = self::DEFAULT_WIDTH) |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $height |
|
73 | + * @param integer $height |
|
74 | 74 | * @return ResourceImageDO |
75 | 75 | */ |
76 | 76 | public function setHeight($height = self::DEFAULT_HEIGHT) |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
120 | - * @return CropImageDOInterface|null |
|
120 | + * @return CropImageDOInterface |
|
121 | 121 | */ |
122 | 122 | public function getCrop() |
123 | 123 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
31 | - * @return BackupResourceCommand |
|
31 | + * @return DeleteImageSizesResourceCommand |
|
32 | 32 | */ |
33 | 33 | public function getCommand(ResourceImageDO $resourceDO) |
34 | 34 | { |