also looking at this
Bump guzzlehttp/guzzle from 7.3.0 to 7.4.0
#113
15 files
+261
-289
composer.lockmodified+118-33
| @@ -509,24 +509,25 @@ | ||
| 509 | 509 | }, |
| 510 | 510 | { |
| 511 | 511 | "name": "guzzlehttp/guzzle", |
| 512 | "version": "7.3.0", | |
| 512 | "version": "7.4.0", | |
| 513 | 513 | "source": { |
| 514 | 514 | "type": "git", |
| 515 | 515 | "url": "https://github.com/guzzle/guzzle.git", |
| 516 | "reference": "7008573787b430c1c1f650e3722d9bba59967628" | |
| 516 | "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94" | |
| 517 | 517 | }, |
| 518 | 518 | "dist": { |
| 519 | 519 | "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", | |
| 522 | 522 | "shasum": "" |
| 523 | 523 | }, |
| 524 | 524 | "require": { |
| 525 | 525 | "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", | |
| 528 | 528 | "php": "^7.2.5 || ^8.0", |
| 529 | "psr/http-client": "^1.0" | |
| 529 | "psr/http-client": "^1.0", | |
| 530 | "symfony/deprecation-contracts": "^2.2" | |
| 530 | 531 | }, |
| 531 | 532 | "provide": { |
| 532 | 533 | "psr/http-client-implementation": "1.0" |
| @@ -536,7 +537,7 @@ | ||
| 536 | 537 | "ext-curl": "*", |
| 537 | 538 | "php-http/client-integration-tests": "^3.0", |
| 538 | 539 | "phpunit/phpunit": "^8.5.5 || ^9.3.5", |
| 539 | "psr/log": "^1.1" | |
| 540 | "psr/log": "^1.1 || ^2.0 || ^3.0" | |
| 540 | 541 | }, |
| 541 | 542 | "suggest": { |
| 542 | 543 | "ext-curl": "Required for CURL handler support", |
| @@ -546,7 +547,7 @@ | ||
| 546 | 547 | "type": "library", |
| 547 | 548 | "extra": { |
| 548 | 549 | "branch-alias": { |
| 549 | "dev-master": "7.3-dev" | |
| 550 | "dev-master": "7.4-dev" | |
| 550 | 551 | } |
| 551 | 552 | }, |
| 552 | 553 | "autoload": { |
| @@ -562,19 +563,43 @@ | ||
| 562 | 563 | "MIT" |
| 563 | 564 | ], |
| 564 | 565 | "authors": [ |
| 566 | { | |
| 567 | "name": "Graham Campbell", | |
| 568 | "email": "hello@gjcampbell.co.uk", | |
| 569 | "homepage": "https://github.com/GrahamCampbell" | |
| 570 | }, | |
| 565 | 571 | { |
| 566 | 572 | "name": "Michael Dowling", |
| 567 | 573 | "email": "mtdowling@gmail.com", |
| 568 | 574 | "homepage": "https://github.com/mtdowling" |
| 569 | 575 | }, |
| 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 | }, | |
| 570 | 591 | { |
| 571 | 592 | "name": "Márk Sági-Kazár", |
| 572 | 593 | "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" | |
| 574 | 600 | } |
| 575 | 601 | ], |
| 576 | 602 | "description": "Guzzle is a PHP HTTP client library", |
| 577 | "homepage": "http://guzzlephp.org/", | |
| 578 | 603 | "keywords": [ |
| 579 | 604 | "client", |
| 580 | 605 | "curl", |
| @@ -588,7 +613,7 @@ | ||
| 588 | 613 | ], |
| 589 | 614 | "support": { |
| 590 | 615 | "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" | |
| 592 | 617 | }, |
| 593 | 618 | "funding": [ |
| 594 | 619 | { |
| @@ -600,28 +625,24 @@ | ||
| 600 | 625 | "type": "github" |
| 601 | 626 | }, |
| 602 | 627 | { |
| 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" | |
| 609 | 630 | } |
| 610 | 631 | ], |
| 611 | "time": "2021-03-23T11:33:13+00:00" | |
| 632 | "time": "2021-10-18T09:52:00+00:00" | |
| 612 | 633 | }, |
| 613 | 634 | { |
| 614 | 635 | "name": "guzzlehttp/promises", |
| 615 | "version": "1.4.1", | |
| 636 | "version": "1.5.0", | |
| 616 | 637 | "source": { |
| 617 | 638 | "type": "git", |
| 618 | 639 | "url": "https://github.com/guzzle/promises.git", |
| 619 | "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d" | |
| 640 | "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0" | |
| 620 | 641 | }, |
| 621 | 642 | "dist": { |
| 622 | 643 | "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", | |
| 625 | 646 | "shasum": "" |
| 626 | 647 | }, |
| 627 | 648 | "require": { |
| @@ -633,7 +654,7 @@ | ||
| 633 | 654 | "type": "library", |
| 634 | 655 | "extra": { |
| 635 | 656 | "branch-alias": { |
| 636 | "dev-master": "1.4-dev" | |
| 657 | "dev-master": "1.5-dev" | |
| 637 | 658 | } |
| 638 | 659 | }, |
| 639 | 660 | "autoload": { |
| @@ -649,10 +670,25 @@ | ||
| 649 | 670 | "MIT" |
| 650 | 671 | ], |
| 651 | 672 | "authors": [ |
| 673 | { | |
| 674 | "name": "Graham Campbell", | |
| 675 | "email": "hello@gjcampbell.co.uk", | |
| 676 | "homepage": "https://github.com/GrahamCampbell" | |
| 677 | }, | |
| 652 | 678 | { |
| 653 | 679 | "name": "Michael Dowling", |
| 654 | 680 | "email": "mtdowling@gmail.com", |
| 655 | 681 | "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" | |
| 656 | 692 | } |
| 657 | 693 | ], |
| 658 | 694 | "description": "Guzzle promises library", |
| @@ -661,22 +697,36 @@ | ||
| 661 | 697 | ], |
| 662 | 698 | "support": { |
| 663 | 699 | "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" | |
| 665 | 701 | }, |
| 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" | |
| 667 | 717 | }, |
| 668 | 718 | { |
| 669 | 719 | "name": "guzzlehttp/psr7", |
| 670 | "version": "2.0.0", | |
| 720 | "version": "2.1.0", | |
| 671 | 721 | "source": { |
| 672 | 722 | "type": "git", |
| 673 | 723 | "url": "https://github.com/guzzle/psr7.git", |
| 674 | "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7" | |
| 724 | "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72" | |
| 675 | 725 | }, |
| 676 | 726 | "dist": { |
| 677 | 727 | "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", | |
| 680 | 730 | "shasum": "" |
| 681 | 731 | }, |
| 682 | 732 | "require": { |
| @@ -700,7 +750,7 @@ | ||
| 700 | 750 | "type": "library", |
| 701 | 751 | "extra": { |
| 702 | 752 | "branch-alias": { |
| 703 | "dev-master": "2.0-dev" | |
| 753 | "dev-master": "2.1-dev" | |
| 704 | 754 | } |
| 705 | 755 | }, |
| 706 | 756 | "autoload": { |
| @@ -713,13 +763,34 @@ | ||
| 713 | 763 | "MIT" |
| 714 | 764 | ], |
| 715 | 765 | "authors": [ |
| 766 | { | |
| 767 | "name": "Graham Campbell", | |
| 768 | "email": "hello@gjcampbell.co.uk", | |
| 769 | "homepage": "https://github.com/GrahamCampbell" | |
| 770 | }, | |
| 716 | 771 | { |
| 717 | 772 | "name": "Michael Dowling", |
| 718 | 773 | "email": "mtdowling@gmail.com", |
| 719 | 774 | "homepage": "https://github.com/mtdowling" |
| 720 | 775 | }, |
| 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 | }, | |
| 721 | 791 | { |
| 722 | 792 | "name": "Tobias Schultze", |
| 793 | "email": "webmaster@tubo-world.de", | |
| 723 | 794 | "homepage": "https://github.com/Tobion" |
| 724 | 795 | }, |
| 725 | 796 | { |
| @@ -741,9 +812,23 @@ | ||
| 741 | 812 | ], |
| 742 | 813 | "support": { |
| 743 | 814 | "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" | |
| 745 | 816 | }, |
| 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" | |
| 747 | 832 | }, |
| 748 | 833 | { |
| 749 | 834 | "name": "laravel/framework", |
| @@ -32,7 +32,7 @@ class Client | ||
| 32 | 32 | /** |
| 33 | 33 | * Construct Meema client. |
| 34 | 34 | * |
| 35 | * @param string $accessKey | |
| 35 | * @param string $accessKey | |
| 36 | 36 | */ |
| 37 | 37 | public function __construct($accessKey, $config = []) |
| 38 | 38 | { |
| @@ -67,8 +67,8 @@ class Client | ||
| 67 | 67 | /** |
| 68 | 68 | * Handle the API request. |
| 69 | 69 | * |
| 70 | * @param string $method | |
| 71 | * @param string $path | |
| 70 | * @param string $method | |
| 71 | * @param string $path | |
| 72 | 72 | */ |
| 73 | 73 | public function request($method, $path, $data = null) |
| 74 | 74 | { |
formatting only · 8 hidden lines
| @@ -23,7 +23,7 @@ class Image formatting only | ||
| 23 | 23 | /** |
| 24 | 24 | * Construct media model. |
| 25 | 25 | * |
| 26 | * @param Meema\MeemaClient\Client $client | |
| 26 | * @param Meema\MeemaClient\Client $client | |
| 27 | 27 | */ |
| 28 | 28 | public function __construct(Client $client) |
| 29 | 29 | { |
| @@ -33,8 +33,7 @@ class Image | ||
| 33 | 33 | /** |
| 34 | 34 | * Set the image width. |
| 35 | 35 | * |
| 36 | * @param int $value | |
| 37 | * | |
| 36 | * @param int $value | |
| 38 | 37 | * @return $this |
| 39 | 38 | */ |
| 40 | 39 | public function w($value) |
| @@ -47,8 +46,7 @@ class Image | ||
| 47 | 46 | /** |
| 48 | 47 | * Set the image height value. |
| 49 | 48 | * |
| 50 | * @param int $value | |
| 51 | * | |
| 49 | * @param int $value | |
| 52 | 50 | * @return $this |
| 53 | 51 | */ |
| 54 | 52 | public function h($value) |
| @@ -61,8 +59,7 @@ class Image | ||
| 61 | 59 | /** |
| 62 | 60 | * Set the image quality value. |
| 63 | 61 | * |
| 64 | * @param int $value | |
| 65 | * | |
| 62 | * @param int $value | |
| 66 | 63 | * @return $this |
| 67 | 64 | */ |
| 68 | 65 | public function q($value) |
| @@ -75,8 +72,7 @@ class Image | ||
| 75 | 72 | /** |
| 76 | 73 | * Set the image blur value. |
| 77 | 74 | * |
| 78 | * @param int $value | |
| 79 | * | |
| 75 | * @param int $value | |
| 80 | 76 | * @return $this |
| 81 | 77 | */ |
| 82 | 78 | public function blur($value) |
| @@ -89,8 +85,7 @@ class Image | ||
| 89 | 85 | /** |
| 90 | 86 | * Determine if image is nsfw. |
| 91 | 87 | * |
| 92 | * @param int|string $value | |
| 93 | * | |
| 88 | * @param int|string $value | |
| 94 | 89 | * @return $this |
| 95 | 90 | */ |
| 96 | 91 | public function nsfw($value) |
| @@ -103,8 +98,7 @@ class Image | ||
| 103 | 98 | /** |
| 104 | 99 | * Set image background value. |
| 105 | 100 | * |
| 106 | * @param string $value | |
| 107 | * | |
| 101 | * @param string $value | |
| 108 | 102 | * @return $this |
| 109 | 103 | */ |
| 110 | 104 | public function bg($value) |
| @@ -117,8 +111,7 @@ class Image | ||
| 117 | 111 | /** |
| 118 | 112 | * Set the aspect ratio value. |
| 119 | 113 | * |
| 120 | * @param int $value | |
| 121 | * | |
| 114 | * @param int $value | |
| 122 | 115 | * @return $this |
| 123 | 116 | */ |
| 124 | 117 | public function ar($value) |
| @@ -131,8 +124,7 @@ class Image | ||
| 131 | 124 | /** |
| 132 | 125 | * Set the brightness value. |
| 133 | 126 | * |
| 134 | * @param int $value | |
| 135 | * | |
| 127 | * @param int $value | |
| 136 | 128 | * @return $this |
| 137 | 129 | */ |
| 138 | 130 | public function bri($value) |
| @@ -145,8 +137,7 @@ class Image | ||
| 145 | 137 | /** |
| 146 | 138 | * Set the hue shift value. |
| 147 | 139 | * |
| 148 | * @param int $value | |
| 149 | * | |
| 140 | * @param int $value | |
| 150 | 141 | * @return $this |
| 151 | 142 | */ |
| 152 | 143 | public function hue($value) |
| @@ -159,8 +150,7 @@ class Image | ||
| 159 | 150 | /** |
| 160 | 151 | * Set the saturation value. |
| 161 | 152 | * |
| 162 | * @param int $value | |
| 163 | * | |
| 153 | * @param int $value | |
| 164 | 154 | * @return $this |
| 165 | 155 | */ |
| 166 | 156 | public function sat($value) |
| @@ -173,8 +163,7 @@ class Image | ||
| 173 | 163 | /** |
| 174 | 164 | * Set the sharpen value. |
| 175 | 165 | * |
| 176 | * @param int $value | |
| 177 | * | |
| 166 | * @param int $value | |
| 178 | 167 | * @return $this |
| 179 | 168 | */ |
| 180 | 169 | public function sharp($value) |
| @@ -187,8 +176,7 @@ class Image | ||
| 187 | 176 | /** |
| 188 | 177 | * Set the border radius outer value. |
| 189 | 178 | * |
| 190 | * @param string $value | |
| 191 | * | |
| 179 | * @param string $value | |
| 192 | 180 | * @return $this |
| 193 | 181 | */ |
| 194 | 182 | public function pad($value) |
| @@ -201,8 +189,7 @@ class Image | ||
| 201 | 189 | /** |
| 202 | 190 | * Set the greyscale value. |
| 203 | 191 | * |
| 204 | * @param bool $value | |
| 205 | * | |
| 192 | * @param bool $value | |
| 206 | 193 | * @return $this |
| 207 | 194 | */ |
| 208 | 195 | public function greyscale($value) |
| @@ -215,8 +202,7 @@ class Image | ||
| 215 | 202 | /** |
| 216 | 203 | * Set the trim value. |
| 217 | 204 | * |
| 218 | * @param string $value | |
| 219 | * | |
| 205 | * @param string $value | |
| 220 | 206 | * @return $this |
| 221 | 207 | */ |
| 222 | 208 | public function trim($value) |
| @@ -229,8 +215,7 @@ class Image | ||
| 229 | 215 | /** |
| 230 | 216 | * Set the face index value. |
| 231 | 217 | * |
| 232 | * @param int $value | |
| 233 | * | |
| 218 | * @param int $value | |
| 234 | 219 | * @return $this |
| 235 | 220 | */ |
| 236 | 221 | public function faceindex($value) |
| @@ -243,8 +228,7 @@ class Image | ||
| 243 | 228 | /** |
| 244 | 229 | * Set the fill color value. |
| 245 | 230 | * |
| 246 | * @param string $value | |
| 247 | * | |
| 231 | * @param string $value | |
| 248 | 232 | * @return $this |
| 249 | 233 | */ |
| 250 | 234 | public function fillColor($value) |
| @@ -257,8 +241,7 @@ class Image | ||
| 257 | 241 | /** |
| 258 | 242 | * Set the fill value. |
| 259 | 243 | * |
| 260 | * @param string $value | |
| 261 | * | |
| 244 | * @param string $value | |
| 262 | 245 | * @return $this |
| 263 | 246 | */ |
| 264 | 247 | public function fill($value) |
| @@ -271,8 +254,7 @@ class Image | ||
| 271 | 254 | /** |
| 272 | 255 | * Set the color space value. |
| 273 | 256 | * |
| 274 | * @param string $value | |
| 275 | * | |
| 257 | * @param string $value | |
| 276 | 258 | * @return $this |
| 277 | 259 | */ |
| 278 | 260 | public function cs($value) |
| @@ -285,8 +267,7 @@ class Image | ||
| 285 | 267 | /** |
| 286 | 268 | * Set the device pixel ration value. |
| 287 | 269 | * |
| 288 | * @param string $value | |
| 289 | * | |
| 270 | * @param string $value | |
| 290 | 271 | * @return $this |
| 291 | 272 | */ |
| 292 | 273 | public function dpr($value) |
| @@ -299,8 +280,7 @@ class Image | ||
| 299 | 280 | /** |
| 300 | 281 | * Set the extend value. |
| 301 | 282 | * |
| 302 | * @param int $value | |
| 303 | * | |
| 283 | * @param int $value | |
| 304 | 284 | * @return $this |
| 305 | 285 | */ |
| 306 | 286 | public function extend($value) |
| @@ -313,8 +293,7 @@ class Image | ||
| 313 | 293 | /** |
| 314 | 294 | * Set the extract value. |
| 315 | 295 | * |
| 316 | * @param string $value | |
| 317 | * | |
| 296 | * @param string $value | |
| 318 | 297 | * @return $this |
| 319 | 298 | */ |
| 320 | 299 | public function extract($value) |
| @@ -327,8 +306,7 @@ class Image | ||
| 327 | 306 | /** |
| 328 | 307 | * Set the crop value. |
| 329 | 308 | * |
| 330 | * @param string $value | |
| 331 | * | |
| 309 | * @param string $value | |
| 332 | 310 | * @return $this |
| 333 | 311 | */ |
| 334 | 312 | public function crop($value) |
| @@ -341,8 +319,7 @@ class Image | ||
| 341 | 319 | /** |
| 342 | 320 | * Set the max height value. |
| 343 | 321 | * |
| 344 | * @param int $value | |
| 345 | * | |
| 322 | * @param int $value | |
| 346 | 323 | * @return $this |
| 347 | 324 | */ |
| 348 | 325 | public function maxH($value) |
| @@ -355,8 +332,7 @@ class Image | ||
| 355 | 332 | /** |
| 356 | 333 | * Set the min height value. |
| 357 | 334 | * |
| 358 | * @param int $value | |
| 359 | * | |
| 335 | * @param int $value | |
| 360 | 336 | * @return $this |
| 361 | 337 | */ |
| 362 | 338 | public function minH($value) |
| @@ -369,8 +345,7 @@ class Image | ||
| 369 | 345 | /** |
| 370 | 346 | * Set the max width value. |
| 371 | 347 | * |
| 372 | * @param int $value | |
| 373 | * | |
| 348 | * @param int $value | |
| 374 | 349 | * @return $this |
| 375 | 350 | */ |
| 376 | 351 | public function maxW($value) |
| @@ -383,8 +358,7 @@ class Image | ||
| 383 | 358 | /** |
| 384 | 359 | * Set the min width value. |
| 385 | 360 | * |
| 386 | * @param int $value | |
| 387 | * | |
| 361 | * @param int $value | |
| 388 | 362 | * @return $this |
| 389 | 363 | */ |
| 390 | 364 | public function minW($value) |
| @@ -397,8 +371,7 @@ class Image | ||
| 397 | 371 | /** |
| 398 | 372 | * Set the resize fit mode value. |
| 399 | 373 | * |
| 400 | * @param string $value | |
| 401 | * | |
| 374 | * @param string $value | |
| 402 | 375 | * @return $this |
| 403 | 376 | */ |
| 404 | 377 | public function fit($value) |
| @@ -411,8 +384,7 @@ class Image | ||
| 411 | 384 | /** |
| 412 | 385 | * Set the pixellate value. |
| 413 | 386 | * |
| 414 | * @param int $value | |
| 415 | * | |
| 387 | * @param int $value | |
| 416 | 388 | * @return $this |
| 417 | 389 | */ |
| 418 | 390 | public function px($value) |
formatting only · 8 hidden lines
| @@ -23,7 +23,7 @@ class Video formatting only | ||
| 23 | 23 | /** |
| 24 | 24 | * Construct media model. |
| 25 | 25 | * |
| 26 | * @param Meema\MeemaClient\Client $client | |
| 26 | * @param Meema\MeemaClient\Client $client | |
| 27 | 27 | */ |
| 28 | 28 | public function __construct(Client $client) |
| 29 | 29 | { |
| @@ -33,8 +33,7 @@ class Video | ||
| 33 | 33 | /** |
| 34 | 34 | * Set the video thumbnail value. |
| 35 | 35 | * |
| 36 | * @param string|bool $value | |
| 37 | * | |
| 36 | * @param string|bool $value | |
| 38 | 37 | * @return $this |
| 39 | 38 | */ |
| 40 | 39 | public function thumbnails($value) |
| @@ -47,8 +46,7 @@ class Video | ||
| 47 | 46 | /** |
| 48 | 47 | * Set the video hls value. |
| 49 | 48 | * |
| 50 | * @param bool $value | |
| 51 | * | |
| 49 | * @param bool $value | |
| 52 | 50 | * @return $this |
| 53 | 51 | */ |
| 54 | 52 | public function hls($value) |
| @@ -61,8 +59,7 @@ class Video | ||
| 61 | 59 | /** |
| 62 | 60 | * Set the video dash value. |
| 63 | 61 | * |
| 64 | * @param bool $value | |
| 65 | * | |
| 62 | * @param bool $value | |
| 66 | 63 | * @return $this |
| 67 | 64 | */ |
| 68 | 65 | public function dash($value) |
| @@ -75,8 +72,7 @@ class Video | ||
| 75 | 72 | /** |
| 76 | 73 | * Set the video poster value. |
| 77 | 74 | * |
| 78 | * @param int $value | |
| 79 | * | |
| 75 | * @param int $value | |
| 80 | 76 | * @return $this |
| 81 | 77 | */ |
| 82 | 78 | public function poster($value) |
| @@ -89,8 +85,7 @@ class Video | ||
| 89 | 85 | /** |
| 90 | 86 | * Set the video webvtt value. |
| 91 | 87 | * |
| 92 | * @param bool $value | |
| 93 | * | |
| 88 | * @param bool $value | |
| 94 | 89 | * @return $this |
| 95 | 90 | */ |
| 96 | 91 | public function webvtt($value) |
| @@ -103,8 +98,7 @@ class Video | ||
| 103 | 98 | /** |
| 104 | 99 | * Set the video format value. |
| 105 | 100 | * |
| 106 | * @param string $value | |
| 107 | * | |
| 101 | * @param string $value | |
| 108 | 102 | * @return $this |
| 109 | 103 | */ |
| 110 | 104 | public function format($value) |
| @@ -117,8 +111,7 @@ class Video | ||
| 117 | 111 | /** |
| 118 | 112 | * Set the video web optimized value. |
| 119 | 113 | * |
| 120 | * @param bool $value | |
| 121 | * | |
| 114 | * @param bool $value | |
| 122 | 115 | * @return $this |
| 123 | 116 | */ |
| 124 | 117 | public function webOptimized($value) |
formatting only · 8 hidden lines
| @@ -24,7 +24,7 @@ class Favorite formatting only | ||
| 24 | 24 | /** |
| 25 | 25 | * Construct Favorite model. |
| 26 | 26 | * |
| 27 | * @param Meema\MeemaClient\Client $client | |
| 27 | * @param Meema\MeemaClient\Client $client | |
| 28 | 28 | */ |
| 29 | 29 | public function __construct(Client $client) |
| 30 | 30 | { |
| @@ -44,8 +44,7 @@ class Favorite | ||
| 44 | 44 | /** |
| 45 | 45 | * Get specific favorites. |
| 46 | 46 | * |
| 47 | * @param array $ids | |
| 48 | * | |
| 47 | * @param array $ids | |
| 49 | 48 | * @return \Illuminate\Support\Collection|array |
| 50 | 49 | */ |
| 51 | 50 | public function get($ids = null) |
| @@ -70,8 +69,7 @@ class Favorite | ||
| 70 | 69 | /** |
| 71 | 70 | * Get specific favorites. |
| 72 | 71 | * |
| 73 | * @param int $id | |
| 74 | * | |
| 72 | * @param int $id | |
| 75 | 73 | * @return array |
| 76 | 74 | */ |
| 77 | 75 | public function find($id) |
| @@ -88,8 +86,7 @@ class Favorite | ||
| 88 | 86 | /** |
| 89 | 87 | * Create favorite. |
| 90 | 88 | * |
| 91 | * @param array $data | |
| 92 | * | |
| 89 | * @param array $data | |
| 93 | 90 | * @return array |
| 94 | 91 | */ |
| 95 | 92 | public function create($data) |
| @@ -100,9 +97,8 @@ class Favorite | ||
| 100 | 97 | /** |
| 101 | 98 | * Update favorite. |
| 102 | 99 | * |
| 103 | * @param int $id | |
| 104 | * @param string $data | |
| 105 | * | |
| 100 | * @param int $id | |
| 101 | * @param string $data | |
| 106 | 102 | * @return array |
| 107 | 103 | */ |
| 108 | 104 | public function update($id, $data) |
| @@ -117,8 +113,7 @@ class Favorite | ||
| 117 | 113 | /** |
| 118 | 114 | * Delete a favorite. |
| 119 | 115 | * |
| 120 | * @param array $ids | |
| 121 | * | |
| 116 | * @param array $ids | |
| 122 | 117 | * @return null |
| 123 | 118 | */ |
| 124 | 119 | public function delete($ids) |
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 |
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) |
formatting only · 8 hidden lines
| @@ -14,7 +14,7 @@ class Storage formatting only | ||
| 14 | 14 | /** |
| 15 | 15 | * Construct storage model. |
| 16 | 16 | * |
| 17 | * @param Meema\MeemaClient\Client $client | |
| 17 | * @param Meema\MeemaClient\Client $client | |
| 18 | 18 | */ |
| 19 | 19 | public function __construct(Client $client) |
| 20 | 20 | { |
| @@ -24,8 +24,7 @@ class Storage | ||
| 24 | 24 | /** |
| 25 | 25 | * Upload a media file. |
| 26 | 26 | * |
| 27 | * @param string $path | |
| 28 | * | |
| 27 | * @param string $path | |
| 29 | 28 | * @return array |
| 30 | 29 | */ |
| 31 | 30 | public function upload($path, $contents = null, $config = []) |
| @@ -36,9 +35,8 @@ class Storage | ||
| 36 | 35 | /** |
| 37 | 36 | * Set the visibility for a file. |
| 38 | 37 | * |
| 39 | * @param string $path | |
| 40 | * @param string $visibility | |
| 41 | * | |
| 38 | * @param string $path | |
| 39 | * @param string $visibility | |
| 42 | 40 | * @return array|false file meta data |
| 43 | 41 | */ |
| 44 | 42 | public function setVisibility($path, $visibility) |
| @@ -49,8 +47,7 @@ class Storage | ||
| 49 | 47 | /** |
| 50 | 48 | * Check whether a file exists. |
| 51 | 49 | * |
| 52 | * @param string $path | |
| 53 | * | |
| 50 | * @param string $path | |
| 54 | 51 | * @return bool |
| 55 | 52 | */ |
| 56 | 53 | public function has($path) |
| @@ -63,8 +60,7 @@ class Storage | ||
| 63 | 60 | /** |
| 64 | 61 | * Get all the meta data of a file or directory. |
| 65 | 62 | * |
| 66 | * @param string $path | |
| 67 | * | |
| 63 | * @param string $path | |
| 68 | 64 | * @return false|array |
| 69 | 65 | */ |
| 70 | 66 | public function getMetadata($path) |
| @@ -75,8 +71,7 @@ class Storage | ||
| 75 | 71 | /** |
| 76 | 72 | * Destroy the file in storage. |
| 77 | 73 | * |
| 78 | * @param string $path | |
| 79 | * | |
| 74 | * @param string $path | |
| 80 | 75 | * @return array |
| 81 | 76 | */ |
| 82 | 77 | public function delete($path) |
| @@ -87,8 +82,7 @@ class Storage | ||
| 87 | 82 | /** |
| 88 | 83 | * Copy the file in storage. |
| 89 | 84 | * |
| 90 | * @param string $path | |
| 91 | * | |
| 85 | * @param string $path | |
| 92 | 86 | * @return array |
| 93 | 87 | */ |
| 94 | 88 | public function copy($path, $newpath) |
| @@ -99,8 +93,7 @@ class Storage | ||
| 99 | 93 | /** |
| 100 | 94 | * Read a file in storage. |
| 101 | 95 | * |
| 102 | * @param string $path | |
| 103 | * | |
| 96 | * @param string $path | |
| 104 | 97 | * @return array |
| 105 | 98 | */ |
| 106 | 99 | public function read($path) |
| @@ -111,8 +104,7 @@ class Storage | ||
| 111 | 104 | /** |
| 112 | 105 | * Read the stream of a file in storage. |
| 113 | 106 | * |
| 114 | * @param string $path | |
| 115 | * | |
| 107 | * @param string $path | |
| 116 | 108 | * @return array |
| 117 | 109 | */ |
| 118 | 110 | public function readStream($path) |
| @@ -123,8 +115,7 @@ class Storage | ||
| 123 | 115 | /** |
| 124 | 116 | * List contents of directory. |
| 125 | 117 | * |
| 126 | * @param string $path | |
| 127 | * | |
| 118 | * @param string $path | |
| 128 | 119 | * @return array |
| 129 | 120 | */ |
| 130 | 121 | public function listContents($directory, $recursive = false) |
| @@ -135,8 +126,7 @@ class Storage | ||
| 135 | 126 | /** |
| 136 | 127 | * Rename the file in storage. |
| 137 | 128 | * |
| 138 | * @param string $path | |
| 139 | * | |
| 129 | * @param string $path | |
| 140 | 130 | * @return array |
| 141 | 131 | */ |
| 142 | 132 | public function rename($path, $newpath) |
| @@ -147,8 +137,7 @@ class Storage | ||
| 147 | 137 | /** |
| 148 | 138 | * Destroy the directory in storage. |
| 149 | 139 | * |
| 150 | * @param string $directory | |
| 151 | * | |
| 140 | * @param string $directory | |
| 152 | 141 | * @return array |
| 153 | 142 | */ |
| 154 | 143 | public function deleteDirectory($directory) |
| @@ -159,8 +148,7 @@ class Storage | ||
| 159 | 148 | /** |
| 160 | 149 | * Create a directory in storage. |
| 161 | 150 | * |
| 162 | * @param string $directory | |
| 163 | * | |
| 151 | * @param string $directory | |
| 164 | 152 | * @return array |
| 165 | 153 | */ |
| 166 | 154 | public function makeDirectory($directory) |
formatting only · 8 hidden lines
| @@ -29,7 +29,7 @@ class Tag formatting only | ||
| 29 | 29 | /** |
| 30 | 30 | * Construct Folder model. |
| 31 | 31 | * |
| 32 | * @param Meema\MeemaClient\Client $client | |
| 32 | * @param Meema\MeemaClient\Client $client | |
| 33 | 33 | */ |
| 34 | 34 | public function __construct(Client $client) |
| 35 | 35 | { |
| @@ -49,8 +49,7 @@ class Tag | ||
| 49 | 49 | /** |
| 50 | 50 | * Get specific tags. |
| 51 | 51 | * |
| 52 | * @param array $ids | |
| 53 | * | |
| 52 | * @param array $ids | |
| 54 | 53 | * @return \Illuminate\Support\Collection|array |
| 55 | 54 | */ |
| 56 | 55 | public function get($ids = null) |
| @@ -79,8 +78,7 @@ class Tag | ||
| 79 | 78 | /** |
| 80 | 79 | * Get specific tags. |
| 81 | 80 | * |
| 82 | * @param int $id | |
| 83 | * | |
| 81 | * @param int $id | |
| 84 | 82 | * @return Response |
| 85 | 83 | */ |
| 86 | 84 | public function find($id): Response |
| @@ -97,9 +95,8 @@ class Tag | ||
| 97 | 95 | /** |
| 98 | 96 | * Update a tag color. |
| 99 | 97 | * |
| 100 | * @param int $id | |
| 101 | * @param string $color | |
| 102 | * | |
| 98 | * @param int $id | |
| 99 | * @param string $color | |
| 103 | 100 | * @return array |
| 104 | 101 | */ |
| 105 | 102 | public function update($id, $color) |
| @@ -119,8 +116,7 @@ class Tag | ||
| 119 | 116 | /** |
| 120 | 117 | * Delete tags. |
| 121 | 118 | * |
| 122 | * @param array $ids | |
| 123 | * | |
| 119 | * @param array $ids | |
| 124 | 120 | * @return Response |
| 125 | 121 | */ |
| 126 | 122 | public function delete($ids) |
| @@ -146,8 +142,7 @@ class Tag | ||
| 146 | 142 | /** |
| 147 | 143 | * Associate tags to a model. |
| 148 | 144 | * |
| 149 | * @param array $tag | |
| 150 | * | |
| 145 | * @param array $tag | |
| 151 | 146 | * @return array |
| 152 | 147 | */ |
| 153 | 148 | public function associate($tag) |
| @@ -158,8 +153,7 @@ class Tag | ||
| 158 | 153 | /** |
| 159 | 154 | * Associate tags to media. |
| 160 | 155 | * |
| 161 | * @param array $tag | |
| 162 | * | |
| 156 | * @param array $tag | |
| 163 | 157 | * @return array |
| 164 | 158 | */ |
| 165 | 159 | public function disassociate($tag) |
| @@ -170,8 +164,7 @@ class Tag | ||
| 170 | 164 | /** |
| 171 | 165 | * Initialize the media model. |
| 172 | 166 | * |
| 173 | * @param int $id | |
| 174 | * | |
| 167 | * @param int $id | |
| 175 | 168 | * @return Meema\MeemaClient\Models\Media |
| 176 | 169 | */ |
| 177 | 170 | public function media($id = null): Media |
| @@ -184,8 +177,7 @@ class Tag | ||
| 184 | 177 | /** |
| 185 | 178 | * Initialize the folder model. |
| 186 | 179 | * |
| 187 | * @param int $id | |
| 188 | * | |
| 180 | * @param int $id | |
| 189 | 181 | * @return Meema\MeemaClient\Models\Folder |
| 190 | 182 | */ |
| 191 | 183 | public function folders($id = null): Folder |
| @@ -198,8 +190,7 @@ class Tag | ||
| 198 | 190 | /** |
| 199 | 191 | * Fetch the tags for media. |
| 200 | 192 | * |
| 201 | * @param int $id | |
| 202 | * | |
| 193 | * @param int $id | |
| 203 | 194 | * @return array |
| 204 | 195 | */ |
| 205 | 196 | protected function fetchTagsForMedia($id) |
| @@ -210,8 +201,7 @@ class Tag | ||
| 210 | 201 | /** |
| 211 | 202 | * Fetch the tags for folders. |
| 212 | 203 | * |
| 213 | * @param int $id | |
| 214 | * | |
| 204 | * @param int $id | |
| 215 | 205 | * @return array |
| 216 | 206 | */ |
| 217 | 207 | protected function fetchTagsForFolder($id) |
| @@ -222,8 +212,7 @@ class Tag | ||
| 222 | 212 | /** |
| 223 | 213 | * Initialize media model. |
| 224 | 214 | * |
| 225 | * @param Meema\MeemaClient\Models\Folder $folder | |
| 226 | * | |
| 215 | * @param Meema\MeemaClient\Models\Folder $folder | |
| 227 | 216 | * @return self |
| 228 | 217 | */ |
| 229 | 218 | public function setFolder($folder): self |
| @@ -236,8 +225,7 @@ class Tag | ||
| 236 | 225 | /** |
| 237 | 226 | * Initialize media model. |
| 238 | 227 | * |
| 239 | * @param Meema\MeemaClient\Models\Media $media | |
| 240 | * | |
| 228 | * @param Meema\MeemaClient\Models\Media $media | |
| 241 | 229 | * @return self |
| 242 | 230 | */ |
| 243 | 231 | public function setMedia($media): self |
| @@ -283,8 +271,7 @@ class Tag | ||
| 283 | 271 | /** |
| 284 | 272 | * Associate tags to a folder or media. |
| 285 | 273 | * |
| 286 | * @param array $tag | |
| 287 | * | |
| 274 | * @param array $tag | |
| 288 | 275 | * @return array |
| 289 | 276 | */ |
| 290 | 277 | protected function associateToModel($tag) |
| @@ -308,8 +295,7 @@ class Tag | ||
| 308 | 295 | /** |
| 309 | 296 | * Associate tags to a folder or media. |
| 310 | 297 | * |
| 311 | * @param array $tag | |
| 312 | * | |
| 298 | * @param array $tag | |
| 313 | 299 | * @return array |
| 314 | 300 | */ |
| 315 | 301 | protected function disassociateToModel($tag) |
| @@ -333,9 +319,8 @@ class Tag | ||
| 333 | 319 | /** |
| 334 | 320 | * Associate tag to a folder. |
| 335 | 321 | * |
| 336 | * @param int $id | |
| 337 | * @param array $tag | |
| 338 | * | |
| 322 | * @param int $id | |
| 323 | * @param array $tag | |
| 339 | 324 | * @return array |
| 340 | 325 | */ |
| 341 | 326 | protected function associateTagToFolder($id, $tag) |
| @@ -346,9 +331,8 @@ class Tag | ||
| 346 | 331 | /** |
| 347 | 332 | * Disassociate tag from a folder. |
| 348 | 333 | * |
| 349 | * @param int $id | |
| 350 | * @param array $tag | |
| 351 | * | |
| 334 | * @param int $id | |
| 335 | * @param array $tag | |
| 352 | 336 | * @return array |
| 353 | 337 | */ |
| 354 | 338 | protected function disassociateTagFromFolder($id, $tag) |
| @@ -359,9 +343,8 @@ class Tag | ||
| 359 | 343 | /** |
| 360 | 344 | * Associate tag to a media. |
| 361 | 345 | * |
| 362 | * @param int $id | |
| 363 | * @param array $tag | |
| 364 | * | |
| 346 | * @param int $id | |
| 347 | * @param array $tag | |
| 365 | 348 | * @return array |
| 366 | 349 | */ |
| 367 | 350 | protected function associateTagToMedia($id, $tag) |
| @@ -372,9 +355,8 @@ class Tag | ||
| 372 | 355 | /** |
| 373 | 356 | * Disassociate tag from a media. |
| 374 | 357 | * |
| 375 | * @param int $id | |
| 376 | * @param array $tag | |
| 377 | * | |
| 358 | * @param int $id | |
| 359 | * @param array $tag | |
| 378 | 360 | * @return array |
| 379 | 361 | */ |
| 380 | 362 | protected function disassociateTagFromMedia($id, $tag) |
formatting only · 10 hidden lines
| @@ -15,8 +15,8 @@ class Team formatting only | ||
| 15 | 15 | /** |
| 16 | 16 | * Construct Folder model. |
| 17 | 17 | * |
| 18 | * @param Meema\MeemaClient\Client $client | |
| 19 | * @param int $teamId | |
| 18 | * @param Meema\MeemaClient\Client $client | |
| 19 | * @param int $teamId | |
| 20 | 20 | */ |
| 21 | 21 | public function __construct(Client $client) |
| 22 | 22 | { |
| @@ -36,8 +36,7 @@ class Team | ||
| 36 | 36 | /** |
| 37 | 37 | * Get specific teams. |
| 38 | 38 | * |
| 39 | * @param int $id | |
| 40 | * | |
| 39 | * @param int $id | |
| 41 | 40 | * @return array |
| 42 | 41 | */ |
| 43 | 42 | public function get($id = null) |
| @@ -54,8 +53,7 @@ class Team | ||
| 54 | 53 | /** |
| 55 | 54 | * Get specific teams. |
| 56 | 55 | * |
| 57 | * @param int $id | |
| 58 | * | |
| 56 | * @param int $id | |
| 59 | 57 | * @return array |
| 60 | 58 | */ |
| 61 | 59 | public function find($id) |
| @@ -68,8 +66,7 @@ class Team | ||
| 68 | 66 | /** |
| 69 | 67 | * Create folder. |
| 70 | 68 | * |
| 71 | * @param string $name | |
| 72 | * | |
| 69 | * @param string $name | |
| 73 | 70 | * @return array |
| 74 | 71 | */ |
| 75 | 72 | public function create($data) |
| @@ -80,9 +77,8 @@ class Team | ||
| 80 | 77 | /** |
| 81 | 78 | * Update folder. |
| 82 | 79 | * |
| 83 | * @param string $name | |
| 84 | * @param int $id | |
| 85 | * | |
| 80 | * @param string $name | |
| 81 | * @param int $id | |
| 86 | 82 | * @return array |
| 87 | 83 | */ |
| 88 | 84 | public function update($id, $name) |
| @@ -95,8 +91,7 @@ class Team | ||
| 95 | 91 | /** |
| 96 | 92 | * Delete a folder. |
| 97 | 93 | * |
| 98 | * @param int $id | |
| 99 | * | |
| 94 | * @param int $id | |
| 100 | 95 | * @return null |
| 101 | 96 | */ |
| 102 | 97 | public function delete($id) |
| @@ -107,8 +102,7 @@ class Team | ||
| 107 | 102 | /** |
| 108 | 103 | * Delete a folder. |
| 109 | 104 | * |
| 110 | * @param int $id | |
| 111 | * | |
| 105 | * @param int $id | |
| 112 | 106 | * @return null |
| 113 | 107 | */ |
| 114 | 108 | public function toggleMediaRecognition($id, $status) |
| @@ -30,7 +30,6 @@ class Response | ||
| 30 | 30 | * |
| 31 | 31 | * @param string $method |
| 32 | 32 | * @param array $parameters |
| 33 | * | |
| 34 | 33 | * @return mixed |
| 35 | 34 | */ |
| 36 | 35 | public function __call($method, $parameters) |
| @@ -73,8 +72,7 @@ class Response | ||
| 73 | 72 | /** |
| 74 | 73 | * Get response content. |
| 75 | 74 | * |
| 76 | * @param mixed $key | |
| 77 | * | |
| 75 | * @param mixed $key | |
| 78 | 76 | * @return array |
| 79 | 77 | */ |
| 80 | 78 | public function getContent($key = null) |
| @@ -21,7 +21,7 @@ trait ForwardsCalls | ||
| 21 | 21 | { |
| 22 | 22 | try { |
| 23 | 23 | return $object->{$method}(...$parameters); |
| 24 | } catch (Error | BadMethodCallException $e) { | |
| 24 | } catch (Error|BadMethodCallException $e) { | |
| 25 | 25 | $pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~'; |
| 26 | 26 | |
| 27 | 27 | if (! preg_match($pattern, $e->getMessage(), $matches)) { |