also looking at this
Apply fixes from StyleCI
#110
14 files
+143
-256
formatting only · 8 hidden lines
| @@ -30,7 +30,7 @@ class Folder formatting only | ||
| 30 | 30 | /** |
| 31 | 31 | * Construct Folder 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 Folder | ||
| 50 | 50 | /** |
| 51 | 51 | * Get specific folders. |
| 52 | 52 | * |
| 53 | * @param int $id | |
| 54 | * | |
| 53 | * @param int $id | |
| 55 | 54 | * @return \Illuminate\Support\Collection|array |
| 56 | 55 | * |
| 57 | 56 | * @throws InvalidFormatException |
| @@ -78,8 +77,7 @@ class Folder | ||
| 78 | 77 | /** |
| 79 | 78 | * Search for specific folders. |
| 80 | 79 | * |
| 81 | * @param string $query | |
| 82 | * | |
| 80 | * @param string $query | |
| 83 | 81 | * @return array |
| 84 | 82 | */ |
| 85 | 83 | public function search($query) |
| @@ -92,8 +90,7 @@ class Folder | ||
| 92 | 90 | /** |
| 93 | 91 | * Get specific folders. |
| 94 | 92 | * |
| 95 | * @param int $id | |
| 96 | * | |
| 93 | * @param int $id | |
| 97 | 94 | * @return Response |
| 98 | 95 | * |
| 99 | 96 | * @throws InvalidFormatException |
| @@ -112,8 +109,7 @@ class Folder | ||
| 112 | 109 | /** |
| 113 | 110 | * Create folder. |
| 114 | 111 | * |
| 115 | * @param string $name | |
| 116 | * | |
| 112 | * @param string $name | |
| 117 | 113 | * @return array |
| 118 | 114 | */ |
| 119 | 115 | public function create($name) |
| @@ -132,9 +128,8 @@ class Folder | ||
| 132 | 128 | /** |
| 133 | 129 | * Update folder. |
| 134 | 130 | * |
| 135 | * @param int $id | |
| 136 | * @param string $name | |
| 137 | * | |
| 131 | * @param int $id | |
| 132 | * @param string $name | |
| 138 | 133 | * @return array |
| 139 | 134 | */ |
| 140 | 135 | public function update($id, $name) |
| @@ -151,8 +146,7 @@ class Folder | ||
| 151 | 146 | /** |
| 152 | 147 | * Delete a folder. |
| 153 | 148 | * |
| 154 | * @param array $ids | |
| 155 | * | |
| 149 | * @param array $ids | |
| 156 | 150 | * @return null |
| 157 | 151 | * |
| 158 | 152 | * @throws InvalidFormatException |
| @@ -184,8 +178,7 @@ class Folder | ||
| 184 | 178 | /** |
| 185 | 179 | * Archive a folder. |
| 186 | 180 | * |
| 187 | * @param array $ids | |
| 188 | * | |
| 181 | * @param array $ids | |
| 189 | 182 | * @return array |
| 190 | 183 | * |
| 191 | 184 | * @throws InvalidFormatException |
| @@ -213,8 +206,7 @@ class Folder | ||
| 213 | 206 | /** |
| 214 | 207 | * Unarchive a folder. |
| 215 | 208 | * |
| 216 | * @param array $ids | |
| 217 | * | |
| 209 | * @param array $ids | |
| 218 | 210 | * @return array |
| 219 | 211 | * |
| 220 | 212 | * @throws InvalidFormatException |
| @@ -242,8 +234,7 @@ class Folder | ||
| 242 | 234 | /** |
| 243 | 235 | * Duplicate a folder. |
| 244 | 236 | * |
| 245 | * @param array $ids | |
| 246 | * | |
| 237 | * @param array $ids | |
| 247 | 238 | * @return array |
| 248 | 239 | * |
| 249 | 240 | * @throws InvalidFormatException |
| @@ -271,9 +262,8 @@ class Folder | ||
| 271 | 262 | /** |
| 272 | 263 | * Add folder to media. |
| 273 | 264 | * |
| 274 | * @param int $id | |
| 275 | * @param string $name | |
| 276 | * | |
| 265 | * @param int $id | |
| 266 | * @param string $name | |
| 277 | 267 | * @return array |
| 278 | 268 | * |
| 279 | 269 | * @throws InvalidFormatException |
| @@ -290,9 +280,8 @@ class Folder | ||
| 290 | 280 | /** |
| 291 | 281 | * Delete folder from media. |
| 292 | 282 | * |
| 293 | * @param int $id | |
| 294 | * @param int $folderId | |
| 295 | * | |
| 283 | * @param int $id | |
| 284 | * @param int $folderId | |
| 296 | 285 | * @return null |
| 297 | 286 | * |
| 298 | 287 | * @throws InvalidFormatException |
| @@ -309,9 +298,8 @@ class Folder | ||
| 309 | 298 | /** |
| 310 | 299 | * Associate tag to a folder. |
| 311 | 300 | * |
| 312 | * @param int $id | |
| 313 | * @param array $tag | |
| 314 | * | |
| 301 | * @param int $id | |
| 302 | * @param array $tag | |
| 315 | 303 | * @return array |
| 316 | 304 | */ |
| 317 | 305 | public function associateTag($id, $tag) |
| @@ -322,9 +310,8 @@ class Folder | ||
| 322 | 310 | /** |
| 323 | 311 | * Disassociate tag from a folder. |
| 324 | 312 | * |
| 325 | * @param int $id | |
| 326 | * @param array $tag | |
| 327 | * | |
| 313 | * @param int $id | |
| 314 | * @param array $tag | |
| 328 | 315 | * @return array |
| 329 | 316 | */ |
| 330 | 317 | public function disassociateTag($id, $tag) |
| @@ -335,8 +322,7 @@ class Folder | ||
| 335 | 322 | /** |
| 336 | 323 | * Initialize media model. |
| 337 | 324 | * |
| 338 | * @param Meema\MeemaClient\Models\Media $media | |
| 339 | * | |
| 325 | * @param Meema\MeemaClient\Models\Media $media | |
| 340 | 326 | * @return self |
| 341 | 327 | */ |
| 342 | 328 | public function setMedia($media): self |
| @@ -349,8 +335,7 @@ class Folder | ||
| 349 | 335 | /** |
| 350 | 336 | * Initialize media model. |
| 351 | 337 | * |
| 352 | * @param Meema\MeemaClient\Models\Tag $tag | |
| 353 | * | |
| 338 | * @param Meema\MeemaClient\Models\Tag $tag | |
| 354 | 339 | * @return self |
| 355 | 340 | */ |
| 356 | 341 | public function setTag($tag): self |
| @@ -373,8 +358,7 @@ class Folder | ||
| 373 | 358 | /** |
| 374 | 359 | * Initialize the media model. |
| 375 | 360 | * |
| 376 | * @param int $id | |
| 377 | * | |
| 361 | * @param int $id | |
| 378 | 362 | * @return Meema\MeemaClient\Models\Media |
| 379 | 363 | */ |
| 380 | 364 | public function media($id = null): Media |
| @@ -387,8 +371,7 @@ class Folder | ||
| 387 | 371 | /** |
| 388 | 372 | * Initialize the tags model. |
| 389 | 373 | * |
| 390 | * @param int $id | |
| 391 | * | |
| 374 | * @param int $id | |
| 392 | 375 | * @return Meema\MeemaClient\Models\Tag |
| 393 | 376 | */ |
| 394 | 377 | public function tags($id = null): Tag |