ReviewOS

also looking at this

meemalabs/meema-client-php

Apply fixes from StyleCI

#116
Merged chris wants to merge analysis-kaxl9P into dependabot/composer/pestphp/pest-1.21.1
14 files +143 -256
src/Models/Tag.phpmodified+24-42
formatting only · 8 hidden lines
Changes to src/Models/Tag.php
@@ -29,7 +29,7 @@ class Tag formatting only
2929 /**
3030 * Construct Folder model.
3131 *
32 * @param Meema\MeemaClient\Client $client
32 * @param Meema\MeemaClient\Client $client
3333 */
3434 public function __construct(Client $client)
3535 {
Changes to src/Models/Tag.php
@@ -49,8 +49,7 @@ class Tag
4949 /**
5050 * Get specific tags.
5151 *
52 * @param array $ids
53 *
52 * @param array $ids
5453 * @return \Illuminate\Support\Collection|array
5554 */
5655 public function get($ids = null)
@@ -79,8 +78,7 @@ class Tag
7978 /**
8079 * Get specific tags.
8180 *
82 * @param int $id
83 *
81 * @param int $id
8482 * @return Response
8583 */
8684 public function find($id): Response
@@ -97,9 +95,8 @@ class Tag
9795 /**
9896 * Update a tag color.
9997 *
100 * @param int $id
101 * @param string $color
102 *
98 * @param int $id
99 * @param string $color
103100 * @return array
104101 */
105102 public function update($id, $color)
@@ -119,8 +116,7 @@ class Tag
119116 /**
120117 * Delete tags.
121118 *
122 * @param array $ids
123 *
119 * @param array $ids
124120 * @return Response
125121 */
126122 public function delete($ids)
@@ -146,8 +142,7 @@ class Tag
146142 /**
147143 * Associate tags to a model.
148144 *
149 * @param array $tag
150 *
145 * @param array $tag
151146 * @return array
152147 */
153148 public function associate($tag)
@@ -158,8 +153,7 @@ class Tag
158153 /**
159154 * Associate tags to media.
160155 *
161 * @param array $tag
162 *
156 * @param array $tag
163157 * @return array
164158 */
165159 public function disassociate($tag)
@@ -170,8 +164,7 @@ class Tag
170164 /**
171165 * Initialize the media model.
172166 *
173 * @param int $id
174 *
167 * @param int $id
175168 * @return Meema\MeemaClient\Models\Media
176169 */
177170 public function media($id = null): Media
@@ -184,8 +177,7 @@ class Tag
184177 /**
185178 * Initialize the folder model.
186179 *
187 * @param int $id
188 *
180 * @param int $id
189181 * @return Meema\MeemaClient\Models\Folder
190182 */
191183 public function folders($id = null): Folder
@@ -198,8 +190,7 @@ class Tag
198190 /**
199191 * Fetch the tags for media.
200192 *
201 * @param int $id
202 *
193 * @param int $id
203194 * @return array
204195 */
205196 protected function fetchTagsForMedia($id)
@@ -210,8 +201,7 @@ class Tag
210201 /**
211202 * Fetch the tags for folders.
212203 *
213 * @param int $id
214 *
204 * @param int $id
215205 * @return array
216206 */
217207 protected function fetchTagsForFolder($id)
@@ -222,8 +212,7 @@ class Tag
222212 /**
223213 * Initialize media model.
224214 *
225 * @param Meema\MeemaClient\Models\Folder $folder
226 *
215 * @param Meema\MeemaClient\Models\Folder $folder
227216 * @return self
228217 */
229218 public function setFolder($folder): self
@@ -236,8 +225,7 @@ class Tag
236225 /**
237226 * Initialize media model.
238227 *
239 * @param Meema\MeemaClient\Models\Media $media
240 *
228 * @param Meema\MeemaClient\Models\Media $media
241229 * @return self
242230 */
243231 public function setMedia($media): self
@@ -283,8 +271,7 @@ class Tag
283271 /**
284272 * Associate tags to a folder or media.
285273 *
286 * @param array $tag
287 *
274 * @param array $tag
288275 * @return array
289276 */
290277 protected function associateToModel($tag)
@@ -308,8 +295,7 @@ class Tag
308295 /**
309296 * Associate tags to a folder or media.
310297 *
311 * @param array $tag
312 *
298 * @param array $tag
313299 * @return array
314300 */
315301 protected function disassociateToModel($tag)
@@ -333,9 +319,8 @@ class Tag
333319 /**
334320 * Associate tag to a folder.
335321 *
336 * @param int $id
337 * @param array $tag
338 *
322 * @param int $id
323 * @param array $tag
339324 * @return array
340325 */
341326 protected function associateTagToFolder($id, $tag)
@@ -346,9 +331,8 @@ class Tag
346331 /**
347332 * Disassociate tag from a folder.
348333 *
349 * @param int $id
350 * @param array $tag
351 *
334 * @param int $id
335 * @param array $tag
352336 * @return array
353337 */
354338 protected function disassociateTagFromFolder($id, $tag)
@@ -359,9 +343,8 @@ class Tag
359343 /**
360344 * Associate tag to a media.
361345 *
362 * @param int $id
363 * @param array $tag
364 *
346 * @param int $id
347 * @param array $tag
365348 * @return array
366349 */
367350 protected function associateTagToMedia($id, $tag)
@@ -372,9 +355,8 @@ class Tag
372355 /**
373356 * Disassociate tag from a media.
374357 *
375 * @param int $id
376 * @param array $tag
377 *
358 * @param int $id
359 * @param array $tag
378360 * @return array
379361 */
380362 protected function disassociateTagFromMedia($id, $tag)