also looking at this
Apply fixes from StyleCI
#114
14 files
+143
-256
formatting only · 8 hidden lines
| @@ -30,7 +30,7 @@ class Media formatting only | ||
| 30 | 30 | /** |
| 31 | 31 | * Construct media model. |
| 32 | 32 | * |
| 33 | * @param Meema\MeemaClient\Client $client | |
| 33 | * @param Meema\MeemaClient\Client $client | |
| 34 | 34 | */ |
| 35 | 35 | public function __construct(Client $client) |
| 36 | 36 | { |
| @@ -50,8 +50,7 @@ class Media | ||
| 50 | 50 | /** |
| 51 | 51 | * Get specific media. |
| 52 | 52 | * |
| 53 | * @param array $ids | |
| 54 | * | |
| 53 | * @param array $ids | |
| 55 | 54 | * @return \Illuminate\Support\Collection|array |
| 56 | 55 | * |
| 57 | 56 | * @throws InvalidFormatException |
| @@ -82,8 +81,7 @@ class Media | ||
| 82 | 81 | /** |
| 83 | 82 | * Search for specific media. |
| 84 | 83 | * |
| 85 | * @param string $query | |
| 86 | * | |
| 84 | * @param string $query | |
| 87 | 85 | * @return \Illuminate\Support\Collection|array |
| 88 | 86 | */ |
| 89 | 87 | public function search($query) |
| @@ -96,8 +94,7 @@ class Media | ||
| 96 | 94 | /** |
| 97 | 95 | * Get specific media. |
| 98 | 96 | * |
| 99 | * @param int $id | |
| 100 | * | |
| 97 | * @param int $id | |
| 101 | 98 | * @return array |
| 102 | 99 | * |
| 103 | 100 | * @throws InvalidFormatException |
| @@ -116,8 +113,7 @@ class Media | ||
| 116 | 113 | /** |
| 117 | 114 | * Create media. |
| 118 | 115 | * |
| 119 | * @param string $name | |
| 120 | * | |
| 116 | * @param string $name | |
| 121 | 117 | * @return array |
| 122 | 118 | */ |
| 123 | 119 | public function create($name) |
| @@ -130,9 +126,8 @@ class Media | ||
| 130 | 126 | /** |
| 131 | 127 | * Update media. |
| 132 | 128 | * |
| 133 | * @param int $id | |
| 134 | * @param string $name | |
| 135 | * | |
| 129 | * @param int $id | |
| 130 | * @param string $name | |
| 136 | 131 | * @return array |
| 137 | 132 | * |
| 138 | 133 | * @throws InvalidFormatException |
| @@ -151,8 +146,7 @@ class Media | ||
| 151 | 146 | /** |
| 152 | 147 | * Delete a media. |
| 153 | 148 | * |
| 154 | * @param array $ids | |
| 155 | * | |
| 149 | * @param array $ids | |
| 156 | 150 | * @return null |
| 157 | 151 | * |
| 158 | 152 | * @throws InvalidFormatException |
| @@ -180,8 +174,7 @@ class Media | ||
| 180 | 174 | /** |
| 181 | 175 | * Archive a media. |
| 182 | 176 | * |
| 183 | * @param array $ids | |
| 184 | * | |
| 177 | * @param array $ids | |
| 185 | 178 | * @return array |
| 186 | 179 | * |
| 187 | 180 | * @throws InvalidFormatException |
| @@ -209,8 +202,7 @@ class Media | ||
| 209 | 202 | /** |
| 210 | 203 | * Unarchive a media. |
| 211 | 204 | * |
| 212 | * @param array $ids | |
| 213 | * | |
| 205 | * @param array $ids | |
| 214 | 206 | * @return array |
| 215 | 207 | * |
| 216 | 208 | * @throws InvalidFormatException |
| @@ -238,8 +230,7 @@ class Media | ||
| 238 | 230 | /** |
| 239 | 231 | * Make a media private. |
| 240 | 232 | * |
| 241 | * @param array $ids | |
| 242 | * | |
| 233 | * @param array $ids | |
| 243 | 234 | * @return array |
| 244 | 235 | * |
| 245 | 236 | * @throws InvalidFormatException |
| @@ -267,8 +258,7 @@ class Media | ||
| 267 | 258 | /** |
| 268 | 259 | * Make a media public. |
| 269 | 260 | * |
| 270 | * @param array $ids | |
| 271 | * | |
| 261 | * @param array $ids | |
| 272 | 262 | * @return array |
| 273 | 263 | * |
| 274 | 264 | * @throws InvalidFormatException |
| @@ -296,8 +286,7 @@ class Media | ||
| 296 | 286 | /** |
| 297 | 287 | * Duplicate a media. |
| 298 | 288 | * |
| 299 | * @param array $ids | |
| 300 | * | |
| 289 | * @param array $ids | |
| 301 | 290 | * @return array |
| 302 | 291 | * |
| 303 | 292 | * @throws InvalidFormatException |
| @@ -349,8 +338,7 @@ class Media | ||
| 349 | 338 | /** |
| 350 | 339 | * Fetch the media for the folder. |
| 351 | 340 | * |
| 352 | * @param Meema\MeemaClient\Models\Folder $folder | |
| 353 | * | |
| 341 | * @param Meema\MeemaClient\Models\Folder $folder | |
| 354 | 342 | * @return self |
| 355 | 343 | */ |
| 356 | 344 | public function setFolder($folder): self |
| @@ -363,8 +351,7 @@ class Media | ||
| 363 | 351 | /** |
| 364 | 352 | * Initialize media model. |
| 365 | 353 | * |
| 366 | * @param Meema\MeemaClient\Models\Tag $tag | |
| 367 | * | |
| 354 | * @param Meema\MeemaClient\Models\Tag $tag | |
| 368 | 355 | * @return self |
| 369 | 356 | */ |
| 370 | 357 | public function setTag($tag): self |
| @@ -387,8 +374,7 @@ class Media | ||
| 387 | 374 | /** |
| 388 | 375 | * Fetch the media for the folder. |
| 389 | 376 | * |
| 390 | * @param int $id | |
| 391 | * | |
| 377 | * @param int $id | |
| 392 | 378 | * @return array |
| 393 | 379 | */ |
| 394 | 380 | protected function fetchMediaForFolder($id) |
| @@ -399,8 +385,7 @@ class Media | ||
| 399 | 385 | /** |
| 400 | 386 | * Fetch the media for tags. |
| 401 | 387 | * |
| 402 | * @param int $id | |
| 403 | * | |
| 388 | * @param int $id | |
| 404 | 389 | * @return array |
| 405 | 390 | */ |
| 406 | 391 | protected function fetchMediaForTag($id) |
| @@ -435,9 +420,8 @@ class Media | ||
| 435 | 420 | /** |
| 436 | 421 | * Associate tag to a media. |
| 437 | 422 | * |
| 438 | * @param int $id | |
| 439 | * @param array $tag | |
| 440 | * | |
| 423 | * @param int $id | |
| 424 | * @param array $tag | |
| 441 | 425 | * @return array |
| 442 | 426 | */ |
| 443 | 427 | public function associateTag($id, $tag) |
| @@ -448,9 +432,8 @@ class Media | ||
| 448 | 432 | /** |
| 449 | 433 | * Disassociate tag from a media. |
| 450 | 434 | * |
| 451 | * @param int $id | |
| 452 | * @param array $tag | |
| 453 | * | |
| 435 | * @param int $id | |
| 436 | * @param array $tag | |
| 454 | 437 | * @return array |
| 455 | 438 | */ |
| 456 | 439 | public function disassociateTag($id, $tag) |