ReviewOS

also looking at this

meemalabs/meema-client-php

Bump guzzlehttp/guzzle from 7.3.0 to 7.4.0

#113
Closed dependabot[bot] wants to merge dependabot/composer/guzzlehttp/guzzle-7.4.0 into main
15 files +261 -289
composer.lockmodified+118-33
Changes to composer.lock
@@ -509,24 +509,25 @@
509509 },
510510 {
511511 "name": "guzzlehttp/guzzle",
512 "version": "7.3.0",
512 "version": "7.4.0",
513513 "source": {
514514 "type": "git",
515515 "url": "https://github.com/guzzle/guzzle.git",
516 "reference": "7008573787b430c1c1f650e3722d9bba59967628"
516 "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94"
517517 },
518518 "dist": {
519519 "type": "zip",
520 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628",
521 "reference": "7008573787b430c1c1f650e3722d9bba59967628",
520 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94",
521 "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94",
522522 "shasum": ""
523523 },
524524 "require": {
525525 "ext-json": "*",
526 "guzzlehttp/promises": "^1.4",
527 "guzzlehttp/psr7": "^1.7 || ^2.0",
526 "guzzlehttp/promises": "^1.5",
527 "guzzlehttp/psr7": "^1.8.3 || ^2.1",
528528 "php": "^7.2.5 || ^8.0",
529 "psr/http-client": "^1.0"
529 "psr/http-client": "^1.0",
530 "symfony/deprecation-contracts": "^2.2"
530531 },
531532 "provide": {
532533 "psr/http-client-implementation": "1.0"
@@ -536,7 +537,7 @@
536537 "ext-curl": "*",
537538 "php-http/client-integration-tests": "^3.0",
538539 "phpunit/phpunit": "^8.5.5 || ^9.3.5",
539 "psr/log": "^1.1"
540 "psr/log": "^1.1 || ^2.0 || ^3.0"
540541 },
541542 "suggest": {
542543 "ext-curl": "Required for CURL handler support",
@@ -546,7 +547,7 @@
546547 "type": "library",
547548 "extra": {
548549 "branch-alias": {
549 "dev-master": "7.3-dev"
550 "dev-master": "7.4-dev"
550551 }
551552 },
552553 "autoload": {
@@ -562,19 +563,43 @@
562563 "MIT"
563564 ],
564565 "authors": [
566 {
567 "name": "Graham Campbell",
568 "email": "hello@gjcampbell.co.uk",
569 "homepage": "https://github.com/GrahamCampbell"
570 },
565571 {
566572 "name": "Michael Dowling",
567573 "email": "mtdowling@gmail.com",
568574 "homepage": "https://github.com/mtdowling"
569575 },
576 {
577 "name": "Jeremy Lindblom",
578 "email": "jeremeamia@gmail.com",
579 "homepage": "https://github.com/jeremeamia"
580 },
581 {
582 "name": "George Mponos",
583 "email": "gmponos@gmail.com",
584 "homepage": "https://github.com/gmponos"
585 },
586 {
587 "name": "Tobias Nyholm",
588 "email": "tobias.nyholm@gmail.com",
589 "homepage": "https://github.com/Nyholm"
590 },
570591 {
571592 "name": "Márk Sági-Kazár",
572593 "email": "mark.sagikazar@gmail.com",
573 "homepage": "https://sagikazarmark.hu"
594 "homepage": "https://github.com/sagikazarmark"
595 },
596 {
597 "name": "Tobias Schultze",
598 "email": "webmaster@tubo-world.de",
599 "homepage": "https://github.com/Tobion"
574600 }
575601 ],
576602 "description": "Guzzle is a PHP HTTP client library",
577 "homepage": "http://guzzlephp.org/",
578603 "keywords": [
579604 "client",
580605 "curl",
@@ -588,7 +613,7 @@
588613 ],
589614 "support": {
590615 "issues": "https://github.com/guzzle/guzzle/issues",
591 "source": "https://github.com/guzzle/guzzle/tree/7.3.0"
616 "source": "https://github.com/guzzle/guzzle/tree/7.4.0"
592617 },
593618 "funding": [
594619 {
@@ -600,28 +625,24 @@
600625 "type": "github"
601626 },
602627 {
603 "url": "https://github.com/alexeyshockov",
604 "type": "github"
605 },
606 {
607 "url": "https://github.com/gmponos",
608 "type": "github"
628 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
629 "type": "tidelift"
609630 }
610631 ],
611 "time": "2021-03-23T11:33:13+00:00"
632 "time": "2021-10-18T09:52:00+00:00"
612633 },
613634 {
614635 "name": "guzzlehttp/promises",
615 "version": "1.4.1",
636 "version": "1.5.0",
616637 "source": {
617638 "type": "git",
618639 "url": "https://github.com/guzzle/promises.git",
619 "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d"
640 "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0"
620641 },
621642 "dist": {
622643 "type": "zip",
623 "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d",
624 "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d",
644 "url": "https://api.github.com/repos/guzzle/promises/zipball/136a635e2b4a49b9d79e9c8fee267ffb257fdba0",
645 "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0",
625646 "shasum": ""
626647 },
627648 "require": {
@@ -633,7 +654,7 @@
633654 "type": "library",
634655 "extra": {
635656 "branch-alias": {
636 "dev-master": "1.4-dev"
657 "dev-master": "1.5-dev"
637658 }
638659 },
639660 "autoload": {
@@ -649,10 +670,25 @@
649670 "MIT"
650671 ],
651672 "authors": [
673 {
674 "name": "Graham Campbell",
675 "email": "hello@gjcampbell.co.uk",
676 "homepage": "https://github.com/GrahamCampbell"
677 },
652678 {
653679 "name": "Michael Dowling",
654680 "email": "mtdowling@gmail.com",
655681 "homepage": "https://github.com/mtdowling"
682 },
683 {
684 "name": "Tobias Nyholm",
685 "email": "tobias.nyholm@gmail.com",
686 "homepage": "https://github.com/Nyholm"
687 },
688 {
689 "name": "Tobias Schultze",
690 "email": "webmaster@tubo-world.de",
691 "homepage": "https://github.com/Tobion"
656692 }
657693 ],
658694 "description": "Guzzle promises library",
@@ -661,22 +697,36 @@
661697 ],
662698 "support": {
663699 "issues": "https://github.com/guzzle/promises/issues",
664 "source": "https://github.com/guzzle/promises/tree/1.4.1"
700 "source": "https://github.com/guzzle/promises/tree/1.5.0"
665701 },
666 "time": "2021-03-07T09:25:29+00:00"
702 "funding": [
703 {
704 "url": "https://github.com/GrahamCampbell",
705 "type": "github"
706 },
707 {
708 "url": "https://github.com/Nyholm",
709 "type": "github"
710 },
711 {
712 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
713 "type": "tidelift"
714 }
715 ],
716 "time": "2021-10-07T13:05:22+00:00"
667717 },
668718 {
669719 "name": "guzzlehttp/psr7",
670 "version": "2.0.0",
720 "version": "2.1.0",
671721 "source": {
672722 "type": "git",
673723 "url": "https://github.com/guzzle/psr7.git",
674 "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7"
724 "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72"
675725 },
676726 "dist": {
677727 "type": "zip",
678 "url": "https://api.github.com/repos/guzzle/psr7/zipball/1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
679 "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
728 "url": "https://api.github.com/repos/guzzle/psr7/zipball/089edd38f5b8abba6cb01567c2a8aaa47cec4c72",
729 "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72",
680730 "shasum": ""
681731 },
682732 "require": {
@@ -700,7 +750,7 @@
700750 "type": "library",
701751 "extra": {
702752 "branch-alias": {
703 "dev-master": "2.0-dev"
753 "dev-master": "2.1-dev"
704754 }
705755 },
706756 "autoload": {
@@ -713,13 +763,34 @@
713763 "MIT"
714764 ],
715765 "authors": [
766 {
767 "name": "Graham Campbell",
768 "email": "hello@gjcampbell.co.uk",
769 "homepage": "https://github.com/GrahamCampbell"
770 },
716771 {
717772 "name": "Michael Dowling",
718773 "email": "mtdowling@gmail.com",
719774 "homepage": "https://github.com/mtdowling"
720775 },
776 {
777 "name": "George Mponos",
778 "email": "gmponos@gmail.com",
779 "homepage": "https://github.com/gmponos"
780 },
781 {
782 "name": "Tobias Nyholm",
783 "email": "tobias.nyholm@gmail.com",
784 "homepage": "https://github.com/Nyholm"
785 },
786 {
787 "name": "Márk Sági-Kazár",
788 "email": "mark.sagikazar@gmail.com",
789 "homepage": "https://github.com/sagikazarmark"
790 },
721791 {
722792 "name": "Tobias Schultze",
793 "email": "webmaster@tubo-world.de",
723794 "homepage": "https://github.com/Tobion"
724795 },
725796 {
@@ -741,9 +812,23 @@
741812 ],
742813 "support": {
743814 "issues": "https://github.com/guzzle/psr7/issues",
744 "source": "https://github.com/guzzle/psr7/tree/2.0.0"
815 "source": "https://github.com/guzzle/psr7/tree/2.1.0"
745816 },
746 "time": "2021-06-30T20:03:07+00:00"
817 "funding": [
818 {
819 "url": "https://github.com/GrahamCampbell",
820 "type": "github"
821 },
822 {
823 "url": "https://github.com/Nyholm",
824 "type": "github"
825 },
826 {
827 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
828 "type": "tidelift"
829 }
830 ],
831 "time": "2021-10-06T17:43:30+00:00"
747832 },
748833 {
749834 "name": "laravel/framework",
src/Client.phpmodifiedformatting only+3-3
Changes to src/Client.php
@@ -32,7 +32,7 @@ class Client
3232 /**
3333 * Construct Meema client.
3434 *
35 * @param string $accessKey
35 * @param string $accessKey
3636 */
3737 public function __construct($accessKey, $config = [])
3838 {
@@ -67,8 +67,8 @@ class Client
6767 /**
6868 * Handle the API request.
6969 *
70 * @param string $method
71 * @param string $path
70 * @param string $method
71 * @param string $path
7272 */
7373 public function request($method, $path, $data = null)
7474 {
src/Exceptions/FeatureNotImplementedException.phpmodifiedformatting only+1-1
Changes to src/Exceptions/FeatureNotImplementedException.php
@@ -9,7 +9,7 @@ class FeatureNotImplementedException extends Exception
99 /**
1010 * Construct exception.
1111 *
12 * @param string $message
12 * @param string $message
1313 */
1414 public function __construct(string $message = null)
1515 {
src/Exceptions/InvalidFormatException.phpmodifiedformatting only+1-1
Changes to src/Exceptions/InvalidFormatException.php
@@ -9,7 +9,7 @@ class InvalidFormatException extends Exception
99 /**
1010 * Construct exception.
1111 *
12 * @param string $message
12 * @param string $message
1313 */
1414 public function __construct(string $message = null)
1515 {
src/Functions/Image.phpmodified+29-57
formatting only · 8 hidden lines
Changes to src/Functions/Image.php
@@ -23,7 +23,7 @@ class Image formatting only
2323 /**
2424 * Construct media model.
2525 *
26 * @param Meema\MeemaClient\Client $client
26 * @param Meema\MeemaClient\Client $client
2727 */
2828 public function __construct(Client $client)
2929 {
Changes to src/Functions/Image.php
@@ -33,8 +33,7 @@ class Image
3333 /**
3434 * Set the image width.
3535 *
36 * @param int $value
37 *
36 * @param int $value
3837 * @return $this
3938 */
4039 public function w($value)
@@ -47,8 +46,7 @@ class Image
4746 /**
4847 * Set the image height value.
4948 *
50 * @param int $value
51 *
49 * @param int $value
5250 * @return $this
5351 */
5452 public function h($value)
@@ -61,8 +59,7 @@ class Image
6159 /**
6260 * Set the image quality value.
6361 *
64 * @param int $value
65 *
62 * @param int $value
6663 * @return $this
6764 */
6865 public function q($value)
@@ -75,8 +72,7 @@ class Image
7572 /**
7673 * Set the image blur value.
7774 *
78 * @param int $value
79 *
75 * @param int $value
8076 * @return $this
8177 */
8278 public function blur($value)
@@ -89,8 +85,7 @@ class Image
8985 /**
9086 * Determine if image is nsfw.
9187 *
92 * @param int|string $value
93 *
88 * @param int|string $value
9489 * @return $this
9590 */
9691 public function nsfw($value)
@@ -103,8 +98,7 @@ class Image
10398 /**
10499 * Set image background value.
105100 *
106 * @param string $value
107 *
101 * @param string $value
108102 * @return $this
109103 */
110104 public function bg($value)
@@ -117,8 +111,7 @@ class Image
117111 /**
118112 * Set the aspect ratio value.
119113 *
120 * @param int $value
121 *
114 * @param int $value
122115 * @return $this
123116 */
124117 public function ar($value)
@@ -131,8 +124,7 @@ class Image
131124 /**
132125 * Set the brightness value.
133126 *
134 * @param int $value
135 *
127 * @param int $value
136128 * @return $this
137129 */
138130 public function bri($value)
@@ -145,8 +137,7 @@ class Image
145137 /**
146138 * Set the hue shift value.
147139 *
148 * @param int $value
149 *
140 * @param int $value
150141 * @return $this
151142 */
152143 public function hue($value)
@@ -159,8 +150,7 @@ class Image
159150 /**
160151 * Set the saturation value.
161152 *
162 * @param int $value
163 *
153 * @param int $value
164154 * @return $this
165155 */
166156 public function sat($value)
@@ -173,8 +163,7 @@ class Image
173163 /**
174164 * Set the sharpen value.
175165 *
176 * @param int $value
177 *
166 * @param int $value
178167 * @return $this
179168 */
180169 public function sharp($value)
@@ -187,8 +176,7 @@ class Image
187176 /**
188177 * Set the border radius outer value.
189178 *
190 * @param string $value
191 *
179 * @param string $value
192180 * @return $this
193181 */
194182 public function pad($value)
@@ -201,8 +189,7 @@ class Image
201189 /**
202190 * Set the greyscale value.
203191 *
204 * @param bool $value
205 *
192 * @param bool $value
206193 * @return $this
207194 */
208195 public function greyscale($value)
@@ -215,8 +202,7 @@ class Image
215202 /**
216203 * Set the trim value.
217204 *
218 * @param string $value
219 *
205 * @param string $value
220206 * @return $this
221207 */
222208 public function trim($value)
@@ -229,8 +215,7 @@ class Image
229215 /**
230216 * Set the face index value.
231217 *
232 * @param int $value
233 *
218 * @param int $value
234219 * @return $this
235220 */
236221 public function faceindex($value)
@@ -243,8 +228,7 @@ class Image
243228 /**
244229 * Set the fill color value.
245230 *
246 * @param string $value
247 *
231 * @param string $value
248232 * @return $this
249233 */
250234 public function fillColor($value)
@@ -257,8 +241,7 @@ class Image
257241 /**
258242 * Set the fill value.
259243 *
260 * @param string $value
261 *
244 * @param string $value
262245 * @return $this
263246 */
264247 public function fill($value)
@@ -271,8 +254,7 @@ class Image
271254 /**
272255 * Set the color space value.
273256 *
274 * @param string $value
275 *
257 * @param string $value
276258 * @return $this
277259 */
278260 public function cs($value)
@@ -285,8 +267,7 @@ class Image
285267 /**
286268 * Set the device pixel ration value.
287269 *
288 * @param string $value
289 *
270 * @param string $value
290271 * @return $this
291272 */
292273 public function dpr($value)
@@ -299,8 +280,7 @@ class Image
299280 /**
300281 * Set the extend value.
301282 *
302 * @param int $value
303 *
283 * @param int $value
304284 * @return $this
305285 */
306286 public function extend($value)
@@ -313,8 +293,7 @@ class Image
313293 /**
314294 * Set the extract value.
315295 *
316 * @param string $value
317 *
296 * @param string $value
318297 * @return $this
319298 */
320299 public function extract($value)
@@ -327,8 +306,7 @@ class Image
327306 /**
328307 * Set the crop value.
329308 *
330 * @param string $value
331 *
309 * @param string $value
332310 * @return $this
333311 */
334312 public function crop($value)
@@ -341,8 +319,7 @@ class Image
341319 /**
342320 * Set the max height value.
343321 *
344 * @param int $value
345 *
322 * @param int $value
346323 * @return $this
347324 */
348325 public function maxH($value)
@@ -355,8 +332,7 @@ class Image
355332 /**
356333 * Set the min height value.
357334 *
358 * @param int $value
359 *
335 * @param int $value
360336 * @return $this
361337 */
362338 public function minH($value)
@@ -369,8 +345,7 @@ class Image
369345 /**
370346 * Set the max width value.
371347 *
372 * @param int $value
373 *
348 * @param int $value
374349 * @return $this
375350 */
376351 public function maxW($value)
@@ -383,8 +358,7 @@ class Image
383358 /**
384359 * Set the min width value.
385360 *
386 * @param int $value
387 *
361 * @param int $value
388362 * @return $this
389363 */
390364 public function minW($value)
@@ -397,8 +371,7 @@ class Image
397371 /**
398372 * Set the resize fit mode value.
399373 *
400 * @param string $value
401 *
374 * @param string $value
402375 * @return $this
403376 */
404377 public function fit($value)
@@ -411,8 +384,7 @@ class Image
411384 /**
412385 * Set the pixellate value.
413386 *
414 * @param int $value
415 *
387 * @param int $value
416388 * @return $this
417389 */
418390 public function px($value)
src/Functions/Video.phpmodified+8-15
formatting only · 8 hidden lines
Changes to src/Functions/Video.php
@@ -23,7 +23,7 @@ class Video formatting only
2323 /**
2424 * Construct media model.
2525 *
26 * @param Meema\MeemaClient\Client $client
26 * @param Meema\MeemaClient\Client $client
2727 */
2828 public function __construct(Client $client)
2929 {
Changes to src/Functions/Video.php
@@ -33,8 +33,7 @@ class Video
3333 /**
3434 * Set the video thumbnail value.
3535 *
36 * @param string|bool $value
37 *
36 * @param string|bool $value
3837 * @return $this
3938 */
4039 public function thumbnails($value)
@@ -47,8 +46,7 @@ class Video
4746 /**
4847 * Set the video hls value.
4948 *
50 * @param bool $value
51 *
49 * @param bool $value
5250 * @return $this
5351 */
5452 public function hls($value)
@@ -61,8 +59,7 @@ class Video
6159 /**
6260 * Set the video dash value.
6361 *
64 * @param bool $value
65 *
62 * @param bool $value
6663 * @return $this
6764 */
6865 public function dash($value)
@@ -75,8 +72,7 @@ class Video
7572 /**
7673 * Set the video poster value.
7774 *
78 * @param int $value
79 *
75 * @param int $value
8076 * @return $this
8177 */
8278 public function poster($value)
@@ -89,8 +85,7 @@ class Video
8985 /**
9086 * Set the video webvtt value.
9187 *
92 * @param bool $value
93 *
88 * @param bool $value
9489 * @return $this
9590 */
9691 public function webvtt($value)
@@ -103,8 +98,7 @@ class Video
10398 /**
10499 * Set the video format value.
105100 *
106 * @param string $value
107 *
101 * @param string $value
108102 * @return $this
109103 */
110104 public function format($value)
@@ -117,8 +111,7 @@ class Video
117111 /**
118112 * Set the video web optimized value.
119113 *
120 * @param bool $value
121 *
114 * @param bool $value
122115 * @return $this
123116 */
124117 public function webOptimized($value)
src/Models/Favorite.phpmodified+7-12
formatting only · 8 hidden lines
Changes to src/Models/Favorite.php
@@ -24,7 +24,7 @@ class Favorite formatting only
2424 /**
2525 * Construct Favorite model.
2626 *
27 * @param Meema\MeemaClient\Client $client
27 * @param Meema\MeemaClient\Client $client
2828 */
2929 public function __construct(Client $client)
3030 {
Changes to src/Models/Favorite.php
@@ -44,8 +44,7 @@ class Favorite
4444 /**
4545 * Get specific favorites.
4646 *
47 * @param array $ids
48 *
47 * @param array $ids
4948 * @return \Illuminate\Support\Collection|array
5049 */
5150 public function get($ids = null)
@@ -70,8 +69,7 @@ class Favorite
7069 /**
7170 * Get specific favorites.
7271 *
73 * @param int $id
74 *
72 * @param int $id
7573 * @return array
7674 */
7775 public function find($id)
@@ -88,8 +86,7 @@ class Favorite
8886 /**
8987 * Create favorite.
9088 *
91 * @param array $data
92 *
89 * @param array $data
9390 * @return array
9491 */
9592 public function create($data)
@@ -100,9 +97,8 @@ class Favorite
10097 /**
10198 * Update favorite.
10299 *
103 * @param int $id
104 * @param string $data
105 *
100 * @param int $id
101 * @param string $data
106102 * @return array
107103 */
108104 public function update($id, $data)
@@ -117,8 +113,7 @@ class Favorite
117113 /**
118114 * Delete a favorite.
119115 *
120 * @param array $ids
121 *
116 * @param array $ids
122117 * @return null
123118 */
124119 public function delete($ids)
src/Models/Folder.phpmodified+23-40
formatting only · 8 hidden lines
Changes to src/Models/Folder.php
@@ -30,7 +30,7 @@ class Folder formatting only
3030 /**
3131 * Construct Folder model.
3232 *
33 * @param Meema\MeemaClient\Client $client
33 * @param Meema\MeemaClient\Client $client
3434 */
3535 public function __construct(Client $client)
3636 {
Changes to src/Models/Folder.php
@@ -50,8 +50,7 @@ class Folder
5050 /**
5151 * Get specific folders.
5252 *
53 * @param int $id
54 *
53 * @param int $id
5554 * @return \Illuminate\Support\Collection|array
5655 *
5756 * @throws InvalidFormatException
@@ -78,8 +77,7 @@ class Folder
7877 /**
7978 * Search for specific folders.
8079 *
81 * @param string $query
82 *
80 * @param string $query
8381 * @return array
8482 */
8583 public function search($query)
@@ -92,8 +90,7 @@ class Folder
9290 /**
9391 * Get specific folders.
9492 *
95 * @param int $id
96 *
93 * @param int $id
9794 * @return Response
9895 *
9996 * @throws InvalidFormatException
@@ -112,8 +109,7 @@ class Folder
112109 /**
113110 * Create folder.
114111 *
115 * @param string $name
116 *
112 * @param string $name
117113 * @return array
118114 */
119115 public function create($name)
@@ -132,9 +128,8 @@ class Folder
132128 /**
133129 * Update folder.
134130 *
135 * @param int $id
136 * @param string $name
137 *
131 * @param int $id
132 * @param string $name
138133 * @return array
139134 */
140135 public function update($id, $name)
@@ -151,8 +146,7 @@ class Folder
151146 /**
152147 * Delete a folder.
153148 *
154 * @param array $ids
155 *
149 * @param array $ids
156150 * @return null
157151 *
158152 * @throws InvalidFormatException
@@ -184,8 +178,7 @@ class Folder
184178 /**
185179 * Archive a folder.
186180 *
187 * @param array $ids
188 *
181 * @param array $ids
189182 * @return array
190183 *
191184 * @throws InvalidFormatException
@@ -213,8 +206,7 @@ class Folder
213206 /**
214207 * Unarchive a folder.
215208 *
216 * @param array $ids
217 *
209 * @param array $ids
218210 * @return array
219211 *
220212 * @throws InvalidFormatException
@@ -242,8 +234,7 @@ class Folder
242234 /**
243235 * Duplicate a folder.
244236 *
245 * @param array $ids
246 *
237 * @param array $ids
247238 * @return array
248239 *
249240 * @throws InvalidFormatException
@@ -271,9 +262,8 @@ class Folder
271262 /**
272263 * Add folder to media.
273264 *
274 * @param int $id
275 * @param string $name
276 *
265 * @param int $id
266 * @param string $name
277267 * @return array
278268 *
279269 * @throws InvalidFormatException
@@ -290,9 +280,8 @@ class Folder
290280 /**
291281 * Delete folder from media.
292282 *
293 * @param int $id
294 * @param int $folderId
295 *
283 * @param int $id
284 * @param int $folderId
296285 * @return null
297286 *
298287 * @throws InvalidFormatException
@@ -309,9 +298,8 @@ class Folder
309298 /**
310299 * Associate tag to a folder.
311300 *
312 * @param int $id
313 * @param array $tag
314 *
301 * @param int $id
302 * @param array $tag
315303 * @return array
316304 */
317305 public function associateTag($id, $tag)
@@ -322,9 +310,8 @@ class Folder
322310 /**
323311 * Disassociate tag from a folder.
324312 *
325 * @param int $id
326 * @param array $tag
327 *
313 * @param int $id
314 * @param array $tag
328315 * @return array
329316 */
330317 public function disassociateTag($id, $tag)
@@ -335,8 +322,7 @@ class Folder
335322 /**
336323 * Initialize media model.
337324 *
338 * @param Meema\MeemaClient\Models\Media $media
339 *
325 * @param Meema\MeemaClient\Models\Media $media
340326 * @return self
341327 */
342328 public function setMedia($media): self
@@ -349,8 +335,7 @@ class Folder
349335 /**
350336 * Initialize media model.
351337 *
352 * @param Meema\MeemaClient\Models\Tag $tag
353 *
338 * @param Meema\MeemaClient\Models\Tag $tag
354339 * @return self
355340 */
356341 public function setTag($tag): self
@@ -373,8 +358,7 @@ class Folder
373358 /**
374359 * Initialize the media model.
375360 *
376 * @param int $id
377 *
361 * @param int $id
378362 * @return Meema\MeemaClient\Models\Media
379363 */
380364 public function media($id = null): Media
@@ -387,8 +371,7 @@ class Folder
387371 /**
388372 * Initialize the tags model.
389373 *
390 * @param int $id
391 *
374 * @param int $id
392375 * @return Meema\MeemaClient\Models\Tag
393376 */
394377 public function tags($id = null): Tag
src/Models/Media.phpmodified+21-38
formatting only · 8 hidden lines
Changes to src/Models/Media.php
@@ -30,7 +30,7 @@ class Media formatting only
3030 /**
3131 * Construct media model.
3232 *
33 * @param Meema\MeemaClient\Client $client
33 * @param Meema\MeemaClient\Client $client
3434 */
3535 public function __construct(Client $client)
3636 {
Changes to src/Models/Media.php
@@ -50,8 +50,7 @@ class Media
5050 /**
5151 * Get specific media.
5252 *
53 * @param array $ids
54 *
53 * @param array $ids
5554 * @return \Illuminate\Support\Collection|array
5655 *
5756 * @throws InvalidFormatException
@@ -82,8 +81,7 @@ class Media
8281 /**
8382 * Search for specific media.
8483 *
85 * @param string $query
86 *
84 * @param string $query
8785 * @return \Illuminate\Support\Collection|array
8886 */
8987 public function search($query)
@@ -96,8 +94,7 @@ class Media
9694 /**
9795 * Get specific media.
9896 *
99 * @param int $id
100 *
97 * @param int $id
10198 * @return array
10299 *
103100 * @throws InvalidFormatException
@@ -116,8 +113,7 @@ class Media
116113 /**
117114 * Create media.
118115 *
119 * @param string $name
120 *
116 * @param string $name
121117 * @return array
122118 */
123119 public function create($name)
@@ -130,9 +126,8 @@ class Media
130126 /**
131127 * Update media.
132128 *
133 * @param int $id
134 * @param string $name
135 *
129 * @param int $id
130 * @param string $name
136131 * @return array
137132 *
138133 * @throws InvalidFormatException
@@ -151,8 +146,7 @@ class Media
151146 /**
152147 * Delete a media.
153148 *
154 * @param array $ids
155 *
149 * @param array $ids
156150 * @return null
157151 *
158152 * @throws InvalidFormatException
@@ -180,8 +174,7 @@ class Media
180174 /**
181175 * Archive a media.
182176 *
183 * @param array $ids
184 *
177 * @param array $ids
185178 * @return array
186179 *
187180 * @throws InvalidFormatException
@@ -209,8 +202,7 @@ class Media
209202 /**
210203 * Unarchive a media.
211204 *
212 * @param array $ids
213 *
205 * @param array $ids
214206 * @return array
215207 *
216208 * @throws InvalidFormatException
@@ -238,8 +230,7 @@ class Media
238230 /**
239231 * Make a media private.
240232 *
241 * @param array $ids
242 *
233 * @param array $ids
243234 * @return array
244235 *
245236 * @throws InvalidFormatException
@@ -267,8 +258,7 @@ class Media
267258 /**
268259 * Make a media public.
269260 *
270 * @param array $ids
271 *
261 * @param array $ids
272262 * @return array
273263 *
274264 * @throws InvalidFormatException
@@ -296,8 +286,7 @@ class Media
296286 /**
297287 * Duplicate a media.
298288 *
299 * @param array $ids
300 *
289 * @param array $ids
301290 * @return array
302291 *
303292 * @throws InvalidFormatException
@@ -349,8 +338,7 @@ class Media
349338 /**
350339 * Fetch the media for the folder.
351340 *
352 * @param Meema\MeemaClient\Models\Folder $folder
353 *
341 * @param Meema\MeemaClient\Models\Folder $folder
354342 * @return self
355343 */
356344 public function setFolder($folder): self
@@ -363,8 +351,7 @@ class Media
363351 /**
364352 * Initialize media model.
365353 *
366 * @param Meema\MeemaClient\Models\Tag $tag
367 *
354 * @param Meema\MeemaClient\Models\Tag $tag
368355 * @return self
369356 */
370357 public function setTag($tag): self
@@ -387,8 +374,7 @@ class Media
387374 /**
388375 * Fetch the media for the folder.
389376 *
390 * @param int $id
391 *
377 * @param int $id
392378 * @return array
393379 */
394380 protected function fetchMediaForFolder($id)
@@ -399,8 +385,7 @@ class Media
399385 /**
400386 * Fetch the media for tags.
401387 *
402 * @param int $id
403 *
388 * @param int $id
404389 * @return array
405390 */
406391 protected function fetchMediaForTag($id)
@@ -435,9 +420,8 @@ class Media
435420 /**
436421 * Associate tag to a media.
437422 *
438 * @param int $id
439 * @param array $tag
440 *
423 * @param int $id
424 * @param array $tag
441425 * @return array
442426 */
443427 public function associateTag($id, $tag)
@@ -448,9 +432,8 @@ class Media
448432 /**
449433 * Disassociate tag from a media.
450434 *
451 * @param int $id
452 * @param array $tag
453 *
435 * @param int $id
436 * @param array $tag
454437 * @return array
455438 */
456439 public function disassociateTag($id, $tag)
src/Models/Storage.phpmodified+14-26
formatting only · 8 hidden lines
Changes to src/Models/Storage.php
@@ -14,7 +14,7 @@ class Storage formatting only
1414 /**
1515 * Construct storage model.
1616 *
17 * @param Meema\MeemaClient\Client $client
17 * @param Meema\MeemaClient\Client $client
1818 */
1919 public function __construct(Client $client)
2020 {
Changes to src/Models/Storage.php
@@ -24,8 +24,7 @@ class Storage
2424 /**
2525 * Upload a media file.
2626 *
27 * @param string $path
28 *
27 * @param string $path
2928 * @return array
3029 */
3130 public function upload($path, $contents = null, $config = [])
@@ -36,9 +35,8 @@ class Storage
3635 /**
3736 * Set the visibility for a file.
3837 *
39 * @param string $path
40 * @param string $visibility
41 *
38 * @param string $path
39 * @param string $visibility
4240 * @return array|false file meta data
4341 */
4442 public function setVisibility($path, $visibility)
@@ -49,8 +47,7 @@ class Storage
4947 /**
5048 * Check whether a file exists.
5149 *
52 * @param string $path
53 *
50 * @param string $path
5451 * @return bool
5552 */
5653 public function has($path)
@@ -63,8 +60,7 @@ class Storage
6360 /**
6461 * Get all the meta data of a file or directory.
6562 *
66 * @param string $path
67 *
63 * @param string $path
6864 * @return false|array
6965 */
7066 public function getMetadata($path)
@@ -75,8 +71,7 @@ class Storage
7571 /**
7672 * Destroy the file in storage.
7773 *
78 * @param string $path
79 *
74 * @param string $path
8075 * @return array
8176 */
8277 public function delete($path)
@@ -87,8 +82,7 @@ class Storage
8782 /**
8883 * Copy the file in storage.
8984 *
90 * @param string $path
91 *
85 * @param string $path
9286 * @return array
9387 */
9488 public function copy($path, $newpath)
@@ -99,8 +93,7 @@ class Storage
9993 /**
10094 * Read a file in storage.
10195 *
102 * @param string $path
103 *
96 * @param string $path
10497 * @return array
10598 */
10699 public function read($path)
@@ -111,8 +104,7 @@ class Storage
111104 /**
112105 * Read the stream of a file in storage.
113106 *
114 * @param string $path
115 *
107 * @param string $path
116108 * @return array
117109 */
118110 public function readStream($path)
@@ -123,8 +115,7 @@ class Storage
123115 /**
124116 * List contents of directory.
125117 *
126 * @param string $path
127 *
118 * @param string $path
128119 * @return array
129120 */
130121 public function listContents($directory, $recursive = false)
@@ -135,8 +126,7 @@ class Storage
135126 /**
136127 * Rename the file in storage.
137128 *
138 * @param string $path
139 *
129 * @param string $path
140130 * @return array
141131 */
142132 public function rename($path, $newpath)
@@ -147,8 +137,7 @@ class Storage
147137 /**
148138 * Destroy the directory in storage.
149139 *
150 * @param string $directory
151 *
140 * @param string $directory
152141 * @return array
153142 */
154143 public function deleteDirectory($directory)
@@ -159,8 +148,7 @@ class Storage
159148 /**
160149 * Create a directory in storage.
161150 *
162 * @param string $directory
163 *
151 * @param string $directory
164152 * @return array
165153 */
166154 public function makeDirectory($directory)
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)
src/Models/Team.phpmodified+9-15
formatting only · 10 hidden lines
Changes to src/Models/Team.php
@@ -15,8 +15,8 @@ class Team formatting only
1515 /**
1616 * Construct Folder model.
1717 *
18 * @param Meema\MeemaClient\Client $client
19 * @param int $teamId
18 * @param Meema\MeemaClient\Client $client
19 * @param int $teamId
2020 */
2121 public function __construct(Client $client)
2222 {
Changes to src/Models/Team.php
@@ -36,8 +36,7 @@ class Team
3636 /**
3737 * Get specific teams.
3838 *
39 * @param int $id
40 *
39 * @param int $id
4140 * @return array
4241 */
4342 public function get($id = null)
@@ -54,8 +53,7 @@ class Team
5453 /**
5554 * Get specific teams.
5655 *
57 * @param int $id
58 *
56 * @param int $id
5957 * @return array
6058 */
6159 public function find($id)
@@ -68,8 +66,7 @@ class Team
6866 /**
6967 * Create folder.
7068 *
71 * @param string $name
72 *
69 * @param string $name
7370 * @return array
7471 */
7572 public function create($data)
@@ -80,9 +77,8 @@ class Team
8077 /**
8178 * Update folder.
8279 *
83 * @param string $name
84 * @param int $id
85 *
80 * @param string $name
81 * @param int $id
8682 * @return array
8783 */
8884 public function update($id, $name)
@@ -95,8 +91,7 @@ class Team
9591 /**
9692 * Delete a folder.
9793 *
98 * @param int $id
99 *
94 * @param int $id
10095 * @return null
10196 */
10297 public function delete($id)
@@ -107,8 +102,7 @@ class Team
107102 /**
108103 * Delete a folder.
109104 *
110 * @param int $id
111 *
105 * @param int $id
112106 * @return null
113107 */
114108 public function toggleMediaRecognition($id, $status)
src/Response/Response.phpmodified+1-3
Changes to src/Response/Response.php
@@ -30,7 +30,6 @@ class Response
3030 *
3131 * @param string $method
3232 * @param array $parameters
33 *
3433 * @return mixed
3534 */
3635 public function __call($method, $parameters)
@@ -73,8 +72,7 @@ class Response
7372 /**
7473 * Get response content.
7574 *
76 * @param mixed $key
77 *
75 * @param mixed $key
7876 * @return array
7977 */
8078 public function getContent($key = null)
src/Traits/ForwardsCalls.phpmodifiedformatting only+1-1
Changes to src/Traits/ForwardsCalls.php
@@ -21,7 +21,7 @@ trait ForwardsCalls
2121 {
2222 try {
2323 return $object->{$method}(...$parameters);
24 } catch (Error | BadMethodCallException $e) {
24 } catch (Error|BadMethodCallException $e) {
2525 $pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~';
2626
2727 if (! preg_match($pattern, $e->getMessage(), $matches)) {
src/Traits/ValidsUuid.phpmodified+1-2
Changes to src/Traits/ValidsUuid.php
@@ -7,8 +7,7 @@ trait ValidsUuid
77 /**
88 * Check if a given string is a valid UUID.
99 *
10 * @param string $uuid
11 *
10 * @param string $uuid
1211 * @return bool
1312 */
1413 public function isValidUuid($uuid)