@@ -95,7 +95,7 @@ |
||
| 95 | 95 | /** |
| 96 | 96 | * Callback to json. |
| 97 | 97 | * |
| 98 | - * @param $callback |
|
| 98 | + * @param ProviderUser $callback |
|
| 99 | 99 | * @return string |
| 100 | 100 | */ |
| 101 | 101 | private function cleanCallback($callback) |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @param $product_id |
| 19 | - * @return static |
|
| 19 | + * @return SpecPrice |
|
| 20 | 20 | */ |
| 21 | 21 | public function createPlain($product_id) |
| 22 | 22 | { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @param $spec |
| 67 | 67 | * @param array $data |
| 68 | - * @return mixed |
|
| 68 | + * @return SpecPrice |
|
| 69 | 69 | */ |
| 70 | 70 | |
| 71 | 71 | public function create(array $data, $product) |
@@ -81,6 +81,9 @@ discard block |
||
| 81 | 81 | ]); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param Product $product |
|
| 86 | + */ |
|
| 84 | 87 | public function save(array $data, $product) |
| 85 | 88 | { |
| 86 | 89 | $key = ((isset($data['key']) && $data['key'] != null) ? $data['key'] : null); |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * Get available dynamic filters. |
| 101 | 101 | * |
| 102 | - * @param $category |
|
| 102 | + * @param Category $category |
|
| 103 | 103 | * @return array |
| 104 | 104 | */ |
| 105 | 105 | public function getAvailableDynamicFilters($category) |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | * @param $image |
| 33 | 33 | * @param $imageable |
| 34 | 34 | * @param null $data |
| 35 | - * @param null $location |
|
| 36 | - * @return static |
|
| 35 | + * @param string $location |
|
| 36 | + * @return Image|null |
|
| 37 | 37 | * @throws Exception |
| 38 | 38 | */ |
| 39 | 39 | public function uploadAndCreate($image, $imageable, $data = null, $location = null) |
@@ -55,11 +55,11 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Download image to server and get as UploadedFile object. |
| 57 | 57 | * |
| 58 | - * @param $url |
|
| 58 | + * @param string $url |
|
| 59 | 59 | * @param $imageable |
| 60 | 60 | * @param array|null $data |
| 61 | 61 | * @param string $location |
| 62 | - * @return static |
|
| 62 | + * @return Image |
|
| 63 | 63 | */ |
| 64 | 64 | public function downloadAndUpload($url, $imageable, array $data = null, $location = 'upload/images/') |
| 65 | 65 | { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * Set location. |
| 146 | 146 | * |
| 147 | - * @param $location |
|
| 147 | + * @param string $location |
|
| 148 | 148 | * @return $this |
| 149 | 149 | */ |
| 150 | 150 | public function setLocation($location) |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * @param $location |
|
| 158 | + * @param string $location |
|
| 159 | 159 | * @throws Exception |
| 160 | 160 | */ |
| 161 | 161 | protected function validateLocation($location) |
@@ -212,9 +212,9 @@ discard block |
||
| 212 | 212 | /** |
| 213 | 213 | * Standart pattern. |
| 214 | 214 | * |
| 215 | - * @param $location |
|
| 216 | - * @param $filename |
|
| 217 | - * @param $extension |
|
| 215 | + * @param string $location |
|
| 216 | + * @param string $filename |
|
| 217 | + * @param string|null $extension |
|
| 218 | 218 | * @return string |
| 219 | 219 | */ |
| 220 | 220 | private function pattern($filename, $extension, $location = null) |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @return mixed |
|
| 73 | + * @return string |
|
| 74 | 74 | */ |
| 75 | 75 | public function getProvider() |
| 76 | 76 | { |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | /** |
| 230 | 230 | * Login the user. |
| 231 | 231 | * |
| 232 | - * @param $user |
|
| 232 | + * @param \App\User $user |
|
| 233 | 233 | */ |
| 234 | 234 | public function login($user) |
| 235 | 235 | { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | /** |
| 112 | 112 | * Check if user has wallet. |
| 113 | 113 | * |
| 114 | - * @return bool |
|
| 114 | + * @return boolean|null |
|
| 115 | 115 | */ |
| 116 | 116 | public function haveWallet() |
| 117 | 117 | { |