diff --git a/composer.lock b/composer.lock index 9b5523d..723ff44 100644 --- a/composer.lock +++ b/composer.lock @@ -443,31 +443,26 @@ }, { "name": "graham-campbell/result-type", - "version": "v1.0.1", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb" + "reference": "84afea85c6841deeea872f36249a206e878a5de0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/7e279d2cd5d7fbb156ce46daada972355cea27bb", - "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/84afea85c6841deeea872f36249a206e878a5de0", + "reference": "84afea85c6841deeea872f36249a206e878a5de0", "shasum": "" }, "require": { - "php": "^7.0|^8.0", - "phpoption/phpoption": "^1.7.3" + "php": "^7.0 || ^8.0", + "phpoption/phpoption": "^1.8" }, "require-dev": { - "phpunit/phpunit": "^6.5|^7.5|^8.5|^9.0" + "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, "autoload": { "psr-4": { "GrahamCampbell\\ResultType\\": "src/" @@ -480,7 +475,7 @@ "authors": [ { "name": "Graham Campbell", - "email": "graham@alt-three.com" + "email": "hello@gjcampbell.co.uk" } ], "description": "An Implementation Of The Result Type", @@ -493,7 +488,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.1" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.2" }, "funding": [ { @@ -505,7 +500,7 @@ "type": "tidelift" } ], - "time": "2020-04-13T13:17:36+00:00" + "time": "2021-08-28T21:34:50+00:00" }, { "name": "guzzlehttp/guzzle", @@ -1660,29 +1655,29 @@ }, { "name": "phpoption/phpoption", - "version": "1.7.5", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525" + "reference": "5455cb38aed4523f99977c4a12ef19da4bfe2a28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525", - "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/5455cb38aed4523f99977c4a12ef19da4bfe2a28", + "reference": "5455cb38aed4523f99977c4a12ef19da4bfe2a28", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0 || ^8.0" + "php": "^7.0 || ^8.0" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.4.1", - "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^6.5.14 || ^7.0.20 || ^8.5.19 || ^9.5.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.7-dev" + "dev-master": "1.8-dev" } }, "autoload": { @@ -1701,7 +1696,7 @@ }, { "name": "Graham Campbell", - "email": "graham@alt-three.com" + "email": "hello@gjcampbell.co.uk" } ], "description": "Option Type for PHP", @@ -1713,7 +1708,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.7.5" + "source": "https://github.com/schmittjoh/php-option/tree/1.8.0" }, "funding": [ { @@ -1725,24 +1720,24 @@ "type": "tidelift" } ], - "time": "2020-07-20T17:29:33+00:00" + "time": "2021-08-28T21:27:29+00:00" }, { "name": "psr/container", - "version": "1.1.1", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", "autoload": { @@ -1771,9 +1766,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/1.1.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:50:12+00:00" }, { "name": "psr/event-dispatcher", @@ -2383,16 +2378,16 @@ }, { "name": "symfony/console", - "version": "v5.3.6", + "version": "v5.3.11", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2" + "reference": "3e7ab8f5905058984899b05a4648096f558bfeba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/51b71afd6d2dc8f5063199357b9880cea8d8bfe2", - "reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2", + "url": "https://api.github.com/repos/symfony/console/zipball/3e7ab8f5905058984899b05a4648096f558bfeba", + "reference": "3e7ab8f5905058984899b05a4648096f558bfeba", "shasum": "" }, "require": { @@ -2405,7 +2400,6 @@ "symfony/string": "^5.1" }, "conflict": { - "psr/log": ">=3", "symfony/dependency-injection": "<4.4", "symfony/dotenv": "<5.1", "symfony/event-dispatcher": "<4.4", @@ -2462,7 +2456,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.3.6" + "source": "https://github.com/symfony/console/tree/v5.3.11" }, "funding": [ { @@ -2478,7 +2472,7 @@ "type": "tidelift" } ], - "time": "2021-07-27T19:10:22+00:00" + "time": "2021-11-21T19:41:05+00:00" }, { "name": "symfony/css-selector", @@ -2548,16 +2542,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.4.0", + "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" + "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", "shasum": "" }, "require": { @@ -2566,7 +2560,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "2.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -2595,7 +2589,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" }, "funding": [ { @@ -2611,7 +2605,7 @@ "type": "tidelift" } ], - "time": "2021-03-23T23:28:01+00:00" + "time": "2021-07-12T14:48:14+00:00" }, { "name": "symfony/error-handler", @@ -4215,21 +4209,25 @@ }, { "name": "symfony/service-contracts", - "version": "v2.4.0", + "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb" + "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", - "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", + "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", "shasum": "" }, "require": { "php": ">=7.2.5", - "psr/container": "^1.1" + "psr/container": "^1.1", + "symfony/deprecation-contracts": "^2.1" + }, + "conflict": { + "ext-psr": "<1.1|>=2" }, "suggest": { "symfony/service-implementation": "" @@ -4237,7 +4235,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "2.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -4274,7 +4272,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/service-contracts/tree/v2.5.0" }, "funding": [ { @@ -4290,20 +4288,20 @@ "type": "tidelift" } ], - "time": "2021-04-01T10:43:52+00:00" + "time": "2021-11-04T16:48:04+00:00" }, { "name": "symfony/string", - "version": "v5.3.3", + "version": "v5.3.10", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1" + "reference": "d70c35bb20bbca71fc4ab7921e3c6bda1a82a60c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", - "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", + "url": "https://api.github.com/repos/symfony/string/zipball/d70c35bb20bbca71fc4ab7921e3c6bda1a82a60c", + "reference": "d70c35bb20bbca71fc4ab7921e3c6bda1a82a60c", "shasum": "" }, "require": { @@ -4357,7 +4355,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.3.3" + "source": "https://github.com/symfony/string/tree/v5.3.10" }, "funding": [ { @@ -4373,7 +4371,7 @@ "type": "tidelift" } ], - "time": "2021-06-27T11:44:38+00:00" + "time": "2021-10-27T18:21:46+00:00" }, { "name": "symfony/translation", @@ -4691,31 +4689,31 @@ }, { "name": "vlucas/phpdotenv", - "version": "v5.3.0", + "version": "v5.3.1", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56" + "reference": "accaddf133651d4b5cf81a119f25296736ffc850" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b3eac5c7ac896e52deab4a99068e3f4ab12d9e56", - "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/accaddf133651d4b5cf81a119f25296736ffc850", + "reference": "accaddf133651d4b5cf81a119f25296736ffc850", "shasum": "" }, "require": { "ext-pcre": "*", - "graham-campbell/result-type": "^1.0.1", + "graham-campbell/result-type": "^1.0.2", "php": "^7.1.3 || ^8.0", - "phpoption/phpoption": "^1.7.4", - "symfony/polyfill-ctype": "^1.17", - "symfony/polyfill-mbstring": "^1.17", - "symfony/polyfill-php80": "^1.17" + "phpoption/phpoption": "^1.8", + "symfony/polyfill-ctype": "^1.23", + "symfony/polyfill-mbstring": "^1.23.1", + "symfony/polyfill-php80": "^1.23.1" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.4.1", "ext-filter": "*", - "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1" + "phpunit/phpunit": "^7.5.20 || ^8.5.21 || ^9.5.10" }, "suggest": { "ext-filter": "Required to use the boolean validator." @@ -4738,13 +4736,11 @@ "authors": [ { "name": "Graham Campbell", - "email": "graham@alt-three.com", - "homepage": "https://gjcampbell.co.uk/" + "email": "hello@gjcampbell.co.uk" }, { "name": "Vance Lucas", - "email": "vance@vancelucas.com", - "homepage": "https://vancelucas.com/" + "email": "vance@vancelucas.com" } ], "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", @@ -4755,7 +4751,7 @@ ], "support": { "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.0" + "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.1" }, "funding": [ { @@ -4767,7 +4763,7 @@ "type": "tidelift" } ], - "time": "2021-01-20T15:23:13+00:00" + "time": "2021-10-02T19:24:42+00:00" }, { "name": "voku/portable-ascii", @@ -5092,21 +5088,21 @@ }, { "name": "filp/whoops", - "version": "2.14.0", + "version": "2.14.4", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "fdf92f03e150ed84d5967a833ae93abffac0315b" + "reference": "f056f1fe935d9ed86e698905a957334029899895" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/fdf92f03e150ed84d5967a833ae93abffac0315b", - "reference": "fdf92f03e150ed84d5967a833ae93abffac0315b", + "url": "https://api.github.com/repos/filp/whoops/zipball/f056f1fe935d9ed86e698905a957334029899895", + "reference": "f056f1fe935d9ed86e698905a957334029899895", "shasum": "" }, "require": { "php": "^5.5.9 || ^7.0 || ^8.0", - "psr/log": "^1.0.1" + "psr/log": "^1.0.1 || ^2.0 || ^3.0" }, "require-dev": { "mockery/mockery": "^0.9 || ^1.0", @@ -5151,7 +5147,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.14.0" + "source": "https://github.com/filp/whoops/tree/2.14.4" }, "funding": [ { @@ -5159,7 +5155,7 @@ "type": "github" } ], - "time": "2021-07-13T12:00:00+00:00" + "time": "2021-10-03T12:00:00+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -5344,16 +5340,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.12.0", + "version": "v4.13.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "6608f01670c3cc5079e18c1dab1104e002579143" + "reference": "63a79e8daa781cac14e5195e63ed8ae231dd10fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143", - "reference": "6608f01670c3cc5079e18c1dab1104e002579143", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/63a79e8daa781cac14e5195e63ed8ae231dd10fd", + "reference": "63a79e8daa781cac14e5195e63ed8ae231dd10fd", "shasum": "" }, "require": { @@ -5394,39 +5390,38 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.1" }, - "time": "2021-07-21T10:44:31+00:00" + "time": "2021-11-03T20:52:16+00:00" }, { "name": "nunomaduro/collision", - "version": "v5.8.0", + "version": "v5.10.0", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "0c3c393462eada1233513664e2d22bb9f69ca393" + "reference": "3004cfa49c022183395eabc6d0e5207dfe498d00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/0c3c393462eada1233513664e2d22bb9f69ca393", - "reference": "0c3c393462eada1233513664e2d22bb9f69ca393", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/3004cfa49c022183395eabc6d0e5207dfe498d00", + "reference": "3004cfa49c022183395eabc6d0e5207dfe498d00", "shasum": "" }, "require": { "facade/ignition-contracts": "^1.0", - "filp/whoops": "^2.7.2", + "filp/whoops": "^2.14.3", "php": "^7.3 || ^8.0", "symfony/console": "^5.0" }, "require-dev": { "brianium/paratest": "^6.1", "fideloper/proxy": "^4.4.1", - "friendsofphp/php-cs-fixer": "^3.0", "fruitcake/laravel-cors": "^2.0.3", - "laravel/framework": "^8.0 || ^9.0", + "laravel/framework": "8.x-dev", "nunomaduro/larastan": "^0.6.2", "nunomaduro/mock-final-classes": "^1.0", - "orchestra/testbench": "^6.0 || ^7.0", + "orchestra/testbench": "^6.0", "phpstan/phpstan": "^0.12.64", "phpunit/phpunit": "^9.5.0" }, @@ -5484,7 +5479,7 @@ "type": "patreon" } ], - "time": "2021-08-13T14:23:01+00:00" + "time": "2021-09-20T15:06:32+00:00" }, { "name": "orchestra/testbench", @@ -5640,20 +5635,20 @@ }, { "name": "pestphp/pest", - "version": "v1.15.0", + "version": "v1.21.1", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "d1a9e0bbe31dcb266690dc4e7517e2cb73d5827a" + "reference": "92b8d32ef78c54c915641999e0c4167d7202b2d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/d1a9e0bbe31dcb266690dc4e7517e2cb73d5827a", - "reference": "d1a9e0bbe31dcb266690dc4e7517e2cb73d5827a", + "url": "https://api.github.com/repos/pestphp/pest/zipball/92b8d32ef78c54c915641999e0c4167d7202b2d9", + "reference": "92b8d32ef78c54c915641999e0c4167d7202b2d9", "shasum": "" }, "require": { - "nunomaduro/collision": "^5.4.0", + "nunomaduro/collision": "^5.4.0|^6.0", "pestphp/pest-plugin": "^1.0.0", "php": "^7.3 || ^8.0", "phpunit/phpunit": "^9.5.5" @@ -5662,7 +5657,8 @@ "illuminate/console": "^8.47.0", "illuminate/support": "^8.47.0", "laravel/dusk": "^6.15.0", - "pestphp/pest-dev-tools": "dev-master" + "pestphp/pest-dev-tools": "dev-master", + "pestphp/pest-plugin-parallel": "^1.0" }, "bin": [ "bin/pest" @@ -5676,7 +5672,8 @@ "plugins": [ "Pest\\Plugins\\Coverage", "Pest\\Plugins\\Init", - "Pest\\Plugins\\Version" + "Pest\\Plugins\\Version", + "Pest\\Plugins\\Environment" ] }, "laravel": { @@ -5715,9 +5712,13 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v1.15.0" + "source": "https://github.com/pestphp/pest/tree/v1.21.1" }, "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, { "url": "https://github.com/lukeraymonddowning", "type": "github" @@ -5743,7 +5744,7 @@ "type": "patreon" } ], - "time": "2021-08-04T22:02:18+00:00" + "time": "2021-11-25T16:44:17+00:00" }, { "name": "pestphp/pest-plugin", @@ -5983,16 +5984,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.2.2", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", "shasum": "" }, "require": { @@ -6003,7 +6004,8 @@ "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2" + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -6033,22 +6035,22 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" }, - "time": "2020-09-03T19:13:55+00:00" + "time": "2021-10-19T17:43:47+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.4.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" + "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae", + "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae", "shasum": "" }, "require": { @@ -6056,7 +6058,8 @@ "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "*" + "ext-tokenizer": "*", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -6082,39 +6085,39 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1" }, - "time": "2020-09-17T18:55:26+00:00" + "time": "2021-10-02T14:08:47+00:00" }, { "name": "phpspec/prophecy", - "version": "1.13.0", + "version": "1.14.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea" + "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e", + "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e", "shasum": "" }, "require": { "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.1", + "php": "^7.2 || ~8.0, <8.2", "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { - "phpspec/phpspec": "^6.0", + "phpspec/phpspec": "^6.0 || ^7.0", "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.11.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -6149,29 +6152,29 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/1.13.0" + "source": "https://github.com/phpspec/prophecy/tree/1.14.0" }, - "time": "2021-03-17T13:42:18+00:00" + "time": "2021-09-10T09:02:12+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.6", + "version": "9.2.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f6293e1b30a2354e8428e004689671b83871edde" + "reference": "f301eb1453c9e7a1bc912ee8b0ea9db22c60223b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde", - "reference": "f6293e1b30a2354e8428e004689671b83871edde", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f301eb1453c9e7a1bc912ee8b0ea9db22c60223b", + "reference": "f301eb1453c9e7a1bc912ee8b0ea9db22c60223b", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.10.2", + "nikic/php-parser": "^4.13.0", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -6220,7 +6223,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.9" }, "funding": [ { @@ -6228,7 +6231,7 @@ "type": "github" } ], - "time": "2021-03-28T07:26:59+00:00" + "time": "2021-11-19T15:21:02+00:00" }, { "name": "phpunit/php-file-iterator", @@ -6473,16 +6476,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.8", + "version": "9.5.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb" + "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/191768ccd5c85513b4068bdbe99bb6390c7d54fb", - "reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c814a05837f2edb0d1471d6e3f4ab3501ca3899a", + "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a", "shasum": "" }, "require": { @@ -6498,7 +6501,7 @@ "phar-io/version": "^3.0.2", "php": ">=7.3", "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.3", + "phpunit/php-code-coverage": "^9.2.7", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -6560,7 +6563,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.8" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.10" }, "funding": [ { @@ -6572,7 +6575,7 @@ "type": "github" } ], - "time": "2021-07-31T15:17:34+00:00" + "time": "2021-09-25T07:38:51+00:00" }, { "name": "sebastian/cli-parser", @@ -7003,16 +7006,16 @@ }, { "name": "sebastian/exporter", - "version": "4.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", - "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", "shasum": "" }, "require": { @@ -7061,14 +7064,14 @@ } ], "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", + "homepage": "https://www.github.com/sebastianbergmann/exporter", "keywords": [ "export", "exporter" ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" }, "funding": [ { @@ -7076,7 +7079,7 @@ "type": "github" } ], - "time": "2020-09-28T05:24:23+00:00" + "time": "2021-11-11T14:18:36+00:00" }, { "name": "sebastian/global-state", diff --git a/src/Client.php b/src/Client.php index 448581e..c30f5b2 100644 --- a/src/Client.php +++ b/src/Client.php @@ -32,7 +32,7 @@ class Client /** * Construct Meema client. * - * @param string $accessKey + * @param string $accessKey */ public function __construct($accessKey, $config = []) { @@ -67,8 +67,8 @@ public function initializeEnv() /** * Handle the API request. * - * @param string $method - * @param string $path + * @param string $method + * @param string $path */ public function request($method, $path, $data = null) { diff --git a/src/Exceptions/FeatureNotImplementedException.php b/src/Exceptions/FeatureNotImplementedException.php index c5e7b03..2707053 100644 --- a/src/Exceptions/FeatureNotImplementedException.php +++ b/src/Exceptions/FeatureNotImplementedException.php @@ -9,7 +9,7 @@ class FeatureNotImplementedException extends Exception /** * Construct exception. * - * @param string $message + * @param string $message */ public function __construct(string $message = null) { diff --git a/src/Exceptions/InvalidFormatException.php b/src/Exceptions/InvalidFormatException.php index 859ec1b..e064dd2 100644 --- a/src/Exceptions/InvalidFormatException.php +++ b/src/Exceptions/InvalidFormatException.php @@ -9,7 +9,7 @@ class InvalidFormatException extends Exception /** * Construct exception. * - * @param string $message + * @param string $message */ public function __construct(string $message = null) { diff --git a/src/Functions/Image.php b/src/Functions/Image.php index a7c959f..2b8174c 100644 --- a/src/Functions/Image.php +++ b/src/Functions/Image.php @@ -23,7 +23,7 @@ class Image /** * Construct media model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -33,8 +33,7 @@ public function __construct(Client $client) /** * Set the image width. * - * @param int $value - * + * @param int $value * @return $this */ public function w($value) @@ -47,8 +46,7 @@ public function w($value) /** * Set the image height value. * - * @param int $value - * + * @param int $value * @return $this */ public function h($value) @@ -61,8 +59,7 @@ public function h($value) /** * Set the image quality value. * - * @param int $value - * + * @param int $value * @return $this */ public function q($value) @@ -75,8 +72,7 @@ public function q($value) /** * Set the image blur value. * - * @param int $value - * + * @param int $value * @return $this */ public function blur($value) @@ -89,8 +85,7 @@ public function blur($value) /** * Determine if image is nsfw. * - * @param int|string $value - * + * @param int|string $value * @return $this */ public function nsfw($value) @@ -103,8 +98,7 @@ public function nsfw($value) /** * Set image background value. * - * @param string $value - * + * @param string $value * @return $this */ public function bg($value) @@ -117,8 +111,7 @@ public function bg($value) /** * Set the aspect ratio value. * - * @param int $value - * + * @param int $value * @return $this */ public function ar($value) @@ -131,8 +124,7 @@ public function ar($value) /** * Set the brightness value. * - * @param int $value - * + * @param int $value * @return $this */ public function bri($value) @@ -145,8 +137,7 @@ public function bri($value) /** * Set the hue shift value. * - * @param int $value - * + * @param int $value * @return $this */ public function hue($value) @@ -159,8 +150,7 @@ public function hue($value) /** * Set the saturation value. * - * @param int $value - * + * @param int $value * @return $this */ public function sat($value) @@ -173,8 +163,7 @@ public function sat($value) /** * Set the sharpen value. * - * @param int $value - * + * @param int $value * @return $this */ public function sharp($value) @@ -187,8 +176,7 @@ public function sharp($value) /** * Set the border radius outer value. * - * @param string $value - * + * @param string $value * @return $this */ public function pad($value) @@ -201,8 +189,7 @@ public function pad($value) /** * Set the greyscale value. * - * @param bool $value - * + * @param bool $value * @return $this */ public function greyscale($value) @@ -215,8 +202,7 @@ public function greyscale($value) /** * Set the trim value. * - * @param string $value - * + * @param string $value * @return $this */ public function trim($value) @@ -229,8 +215,7 @@ public function trim($value) /** * Set the face index value. * - * @param int $value - * + * @param int $value * @return $this */ public function faceindex($value) @@ -243,8 +228,7 @@ public function faceindex($value) /** * Set the fill color value. * - * @param string $value - * + * @param string $value * @return $this */ public function fillColor($value) @@ -257,8 +241,7 @@ public function fillColor($value) /** * Set the fill value. * - * @param string $value - * + * @param string $value * @return $this */ public function fill($value) @@ -271,8 +254,7 @@ public function fill($value) /** * Set the color space value. * - * @param string $value - * + * @param string $value * @return $this */ public function cs($value) @@ -285,8 +267,7 @@ public function cs($value) /** * Set the device pixel ration value. * - * @param string $value - * + * @param string $value * @return $this */ public function dpr($value) @@ -299,8 +280,7 @@ public function dpr($value) /** * Set the extend value. * - * @param int $value - * + * @param int $value * @return $this */ public function extend($value) @@ -313,8 +293,7 @@ public function extend($value) /** * Set the extract value. * - * @param string $value - * + * @param string $value * @return $this */ public function extract($value) @@ -327,8 +306,7 @@ public function extract($value) /** * Set the crop value. * - * @param string $value - * + * @param string $value * @return $this */ public function crop($value) @@ -341,8 +319,7 @@ public function crop($value) /** * Set the max height value. * - * @param int $value - * + * @param int $value * @return $this */ public function maxH($value) @@ -355,8 +332,7 @@ public function maxH($value) /** * Set the min height value. * - * @param int $value - * + * @param int $value * @return $this */ public function minH($value) @@ -369,8 +345,7 @@ public function minH($value) /** * Set the max width value. * - * @param int $value - * + * @param int $value * @return $this */ public function maxW($value) @@ -383,8 +358,7 @@ public function maxW($value) /** * Set the min width value. * - * @param int $value - * + * @param int $value * @return $this */ public function minW($value) @@ -397,8 +371,7 @@ public function minW($value) /** * Set the resize fit mode value. * - * @param string $value - * + * @param string $value * @return $this */ public function fit($value) @@ -411,8 +384,7 @@ public function fit($value) /** * Set the pixellate value. * - * @param int $value - * + * @param int $value * @return $this */ public function px($value) diff --git a/src/Functions/Video.php b/src/Functions/Video.php index d5a5f46..b7736cb 100644 --- a/src/Functions/Video.php +++ b/src/Functions/Video.php @@ -23,7 +23,7 @@ class Video /** * Construct media model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -33,8 +33,7 @@ public function __construct(Client $client) /** * Set the video thumbnail value. * - * @param string|bool $value - * + * @param string|bool $value * @return $this */ public function thumbnails($value) @@ -47,8 +46,7 @@ public function thumbnails($value) /** * Set the video hls value. * - * @param bool $value - * + * @param bool $value * @return $this */ public function hls($value) @@ -61,8 +59,7 @@ public function hls($value) /** * Set the video dash value. * - * @param bool $value - * + * @param bool $value * @return $this */ public function dash($value) @@ -75,8 +72,7 @@ public function dash($value) /** * Set the video poster value. * - * @param int $value - * + * @param int $value * @return $this */ public function poster($value) @@ -89,8 +85,7 @@ public function poster($value) /** * Set the video webvtt value. * - * @param bool $value - * + * @param bool $value * @return $this */ public function webvtt($value) @@ -103,8 +98,7 @@ public function webvtt($value) /** * Set the video format value. * - * @param string $value - * + * @param string $value * @return $this */ public function format($value) @@ -117,8 +111,7 @@ public function format($value) /** * Set the video web optimized value. * - * @param bool $value - * + * @param bool $value * @return $this */ public function webOptimized($value) diff --git a/src/Models/Favorite.php b/src/Models/Favorite.php index e063ced..af9c507 100644 --- a/src/Models/Favorite.php +++ b/src/Models/Favorite.php @@ -24,7 +24,7 @@ class Favorite /** * Construct Favorite model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -44,8 +44,7 @@ public function all() /** * Get specific favorites. * - * @param array $ids - * + * @param array $ids * @return \Illuminate\Support\Collection|array */ public function get($ids = null) @@ -70,8 +69,7 @@ public function get($ids = null) /** * Get specific favorites. * - * @param int $id - * + * @param int $id * @return array */ public function find($id) @@ -88,8 +86,7 @@ public function find($id) /** * Create favorite. * - * @param array $data - * + * @param array $data * @return array */ public function create($data) @@ -100,9 +97,8 @@ public function create($data) /** * Update favorite. * - * @param int $id - * @param string $data - * + * @param int $id + * @param string $data * @return array */ public function update($id, $data) @@ -117,8 +113,7 @@ public function update($id, $data) /** * Delete a favorite. * - * @param array $ids - * + * @param array $ids * @return null */ public function delete($ids) diff --git a/src/Models/Folder.php b/src/Models/Folder.php index 823c787..1add8ac 100644 --- a/src/Models/Folder.php +++ b/src/Models/Folder.php @@ -30,7 +30,7 @@ class Folder /** * Construct Folder model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -50,8 +50,7 @@ public function all() /** * Get specific folders. * - * @param int $id - * + * @param int $id * @return \Illuminate\Support\Collection|array * * @throws InvalidFormatException @@ -78,8 +77,7 @@ public function get($id = null) /** * Search for specific folders. * - * @param string $query - * + * @param string $query * @return array */ public function search($query) @@ -92,8 +90,7 @@ public function search($query) /** * Get specific folders. * - * @param int $id - * + * @param int $id * @return Response * * @throws InvalidFormatException @@ -112,8 +109,7 @@ public function find($id) /** * Create folder. * - * @param string $name - * + * @param string $name * @return array */ public function create($name) @@ -132,9 +128,8 @@ public function create($name) /** * Update folder. * - * @param int $id - * @param string $name - * + * @param int $id + * @param string $name * @return array */ public function update($id, $name) @@ -151,8 +146,7 @@ public function update($id, $name) /** * Delete a folder. * - * @param array $ids - * + * @param array $ids * @return null * * @throws InvalidFormatException @@ -184,8 +178,7 @@ public function delete($ids) /** * Archive a folder. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -213,8 +206,7 @@ public function archive($ids) /** * Unarchive a folder. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -242,8 +234,7 @@ public function unarchive($ids) /** * Duplicate a folder. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -271,9 +262,8 @@ public function duplicate($ids) /** * Add folder to media. * - * @param int $id - * @param string $name - * + * @param int $id + * @param string $name * @return array * * @throws InvalidFormatException @@ -290,9 +280,8 @@ protected function addFolderToMedia($id, $name) /** * Delete folder from media. * - * @param int $id - * @param int $folderId - * + * @param int $id + * @param int $folderId * @return null * * @throws InvalidFormatException @@ -309,9 +298,8 @@ protected function deleteFolderFromMedia($id, $folderId) /** * Associate tag to a folder. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ public function associateTag($id, $tag) @@ -322,9 +310,8 @@ public function associateTag($id, $tag) /** * Disassociate tag from a folder. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ public function disassociateTag($id, $tag) @@ -335,8 +322,7 @@ public function disassociateTag($id, $tag) /** * Initialize media model. * - * @param Meema\MeemaClient\Models\Media $media - * + * @param Meema\MeemaClient\Models\Media $media * @return self */ public function setMedia($media): self @@ -349,8 +335,7 @@ public function setMedia($media): self /** * Initialize media model. * - * @param Meema\MeemaClient\Models\Tag $tag - * + * @param Meema\MeemaClient\Models\Tag $tag * @return self */ public function setTag($tag): self @@ -373,8 +358,7 @@ public function getId() /** * Initialize the media model. * - * @param int $id - * + * @param int $id * @return Meema\MeemaClient\Models\Media */ public function media($id = null): Media @@ -387,8 +371,7 @@ public function media($id = null): Media /** * Initialize the tags model. * - * @param int $id - * + * @param int $id * @return Meema\MeemaClient\Models\Tag */ public function tags($id = null): Tag diff --git a/src/Models/Media.php b/src/Models/Media.php index 73ba66f..e982f1b 100644 --- a/src/Models/Media.php +++ b/src/Models/Media.php @@ -30,7 +30,7 @@ class Media /** * Construct media model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -50,8 +50,7 @@ public function all() /** * Get specific media. * - * @param array $ids - * + * @param array $ids * @return \Illuminate\Support\Collection|array * * @throws InvalidFormatException @@ -82,8 +81,7 @@ public function get($ids = null) /** * Search for specific media. * - * @param string $query - * + * @param string $query * @return \Illuminate\Support\Collection|array */ public function search($query) @@ -96,8 +94,7 @@ public function search($query) /** * Get specific media. * - * @param int $id - * + * @param int $id * @return array * * @throws InvalidFormatException @@ -116,8 +113,7 @@ public function find($id) /** * Create media. * - * @param string $name - * + * @param string $name * @return array */ public function create($name) @@ -130,9 +126,8 @@ public function create($name) /** * Update media. * - * @param int $id - * @param string $name - * + * @param int $id + * @param string $name * @return array * * @throws InvalidFormatException @@ -151,8 +146,7 @@ public function update($id, $name) /** * Delete a media. * - * @param array $ids - * + * @param array $ids * @return null * * @throws InvalidFormatException @@ -180,8 +174,7 @@ public function delete($ids) /** * Archive a media. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -209,8 +202,7 @@ public function archive($ids) /** * Unarchive a media. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -238,8 +230,7 @@ public function unarchive($ids) /** * Make a media private. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -267,8 +258,7 @@ public function makePrivate($ids) /** * Make a media public. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -296,8 +286,7 @@ public function makePublic($ids) /** * Duplicate a media. * - * @param array $ids - * + * @param array $ids * @return array * * @throws InvalidFormatException @@ -349,8 +338,7 @@ public function tags($id = null): Tag /** * Fetch the media for the folder. * - * @param Meema\MeemaClient\Models\Folder $folder - * + * @param Meema\MeemaClient\Models\Folder $folder * @return self */ public function setFolder($folder): self @@ -363,8 +351,7 @@ public function setFolder($folder): self /** * Initialize media model. * - * @param Meema\MeemaClient\Models\Tag $tag - * + * @param Meema\MeemaClient\Models\Tag $tag * @return self */ public function setTag($tag): self @@ -387,8 +374,7 @@ public function getId() /** * Fetch the media for the folder. * - * @param int $id - * + * @param int $id * @return array */ protected function fetchMediaForFolder($id) @@ -399,8 +385,7 @@ protected function fetchMediaForFolder($id) /** * Fetch the media for tags. * - * @param int $id - * + * @param int $id * @return array */ protected function fetchMediaForTag($id) @@ -435,9 +420,8 @@ protected function fetchForModel() /** * Associate tag to a media. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ public function associateTag($id, $tag) @@ -448,9 +432,8 @@ public function associateTag($id, $tag) /** * Disassociate tag from a media. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ public function disassociateTag($id, $tag) diff --git a/src/Models/Storage.php b/src/Models/Storage.php index 5c43ab0..ac357bb 100644 --- a/src/Models/Storage.php +++ b/src/Models/Storage.php @@ -14,7 +14,7 @@ class Storage /** * Construct storage model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -24,8 +24,7 @@ public function __construct(Client $client) /** * Upload a media file. * - * @param string $path - * + * @param string $path * @return array */ public function upload($path, $contents = null, $config = []) @@ -36,9 +35,8 @@ public function upload($path, $contents = null, $config = []) /** * Set the visibility for a file. * - * @param string $path - * @param string $visibility - * + * @param string $path + * @param string $visibility * @return array|false file meta data */ public function setVisibility($path, $visibility) @@ -49,8 +47,7 @@ public function setVisibility($path, $visibility) /** * Check whether a file exists. * - * @param string $path - * + * @param string $path * @return bool */ public function has($path) @@ -63,8 +60,7 @@ public function has($path) /** * Get all the meta data of a file or directory. * - * @param string $path - * + * @param string $path * @return false|array */ public function getMetadata($path) @@ -75,8 +71,7 @@ public function getMetadata($path) /** * Destroy the file in storage. * - * @param string $path - * + * @param string $path * @return array */ public function delete($path) @@ -87,8 +82,7 @@ public function delete($path) /** * Copy the file in storage. * - * @param string $path - * + * @param string $path * @return array */ public function copy($path, $newpath) @@ -99,8 +93,7 @@ public function copy($path, $newpath) /** * Read a file in storage. * - * @param string $path - * + * @param string $path * @return array */ public function read($path) @@ -111,8 +104,7 @@ public function read($path) /** * Read the stream of a file in storage. * - * @param string $path - * + * @param string $path * @return array */ public function readStream($path) @@ -123,8 +115,7 @@ public function readStream($path) /** * List contents of directory. * - * @param string $path - * + * @param string $path * @return array */ public function listContents($directory, $recursive = false) @@ -135,8 +126,7 @@ public function listContents($directory, $recursive = false) /** * Rename the file in storage. * - * @param string $path - * + * @param string $path * @return array */ public function rename($path, $newpath) @@ -147,8 +137,7 @@ public function rename($path, $newpath) /** * Destroy the directory in storage. * - * @param string $directory - * + * @param string $directory * @return array */ public function deleteDirectory($directory) @@ -159,8 +148,7 @@ public function deleteDirectory($directory) /** * Create a directory in storage. * - * @param string $directory - * + * @param string $directory * @return array */ public function makeDirectory($directory) diff --git a/src/Models/Tag.php b/src/Models/Tag.php index 152188c..8109228 100644 --- a/src/Models/Tag.php +++ b/src/Models/Tag.php @@ -29,7 +29,7 @@ class Tag /** * Construct Folder model. * - * @param Meema\MeemaClient\Client $client + * @param Meema\MeemaClient\Client $client */ public function __construct(Client $client) { @@ -49,8 +49,7 @@ public function all() /** * Get specific tags. * - * @param array $ids - * + * @param array $ids * @return \Illuminate\Support\Collection|array */ public function get($ids = null) @@ -79,8 +78,7 @@ public function get($ids = null) /** * Get specific tags. * - * @param int $id - * + * @param int $id * @return Response */ public function find($id): Response @@ -97,9 +95,8 @@ public function find($id): Response /** * Update a tag color. * - * @param int $id - * @param string $color - * + * @param int $id + * @param string $color * @return array */ public function update($id, $color) @@ -119,8 +116,7 @@ public function update($id, $color) /** * Delete tags. * - * @param array $ids - * + * @param array $ids * @return Response */ public function delete($ids) @@ -146,8 +142,7 @@ public function delete($ids) /** * Associate tags to a model. * - * @param array $tag - * + * @param array $tag * @return array */ public function associate($tag) @@ -158,8 +153,7 @@ public function associate($tag) /** * Associate tags to media. * - * @param array $tag - * + * @param array $tag * @return array */ public function disassociate($tag) @@ -170,8 +164,7 @@ public function disassociate($tag) /** * Initialize the media model. * - * @param int $id - * + * @param int $id * @return Meema\MeemaClient\Models\Media */ public function media($id = null): Media @@ -184,8 +177,7 @@ public function media($id = null): Media /** * Initialize the folder model. * - * @param int $id - * + * @param int $id * @return Meema\MeemaClient\Models\Folder */ public function folders($id = null): Folder @@ -198,8 +190,7 @@ public function folders($id = null): Folder /** * Fetch the tags for media. * - * @param int $id - * + * @param int $id * @return array */ protected function fetchTagsForMedia($id) @@ -210,8 +201,7 @@ protected function fetchTagsForMedia($id) /** * Fetch the tags for folders. * - * @param int $id - * + * @param int $id * @return array */ protected function fetchTagsForFolder($id) @@ -222,8 +212,7 @@ protected function fetchTagsForFolder($id) /** * Initialize media model. * - * @param Meema\MeemaClient\Models\Folder $folder - * + * @param Meema\MeemaClient\Models\Folder $folder * @return self */ public function setFolder($folder): self @@ -236,8 +225,7 @@ public function setFolder($folder): self /** * Initialize media model. * - * @param Meema\MeemaClient\Models\Media $media - * + * @param Meema\MeemaClient\Models\Media $media * @return self */ public function setMedia($media): self @@ -283,8 +271,7 @@ protected function fetchForModel() /** * Associate tags to a folder or media. * - * @param array $tag - * + * @param array $tag * @return array */ protected function associateToModel($tag) @@ -308,8 +295,7 @@ protected function associateToModel($tag) /** * Associate tags to a folder or media. * - * @param array $tag - * + * @param array $tag * @return array */ protected function disassociateToModel($tag) @@ -333,9 +319,8 @@ protected function disassociateToModel($tag) /** * Associate tag to a folder. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ protected function associateTagToFolder($id, $tag) @@ -346,9 +331,8 @@ protected function associateTagToFolder($id, $tag) /** * Disassociate tag from a folder. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ protected function disassociateTagFromFolder($id, $tag) @@ -359,9 +343,8 @@ protected function disassociateTagFromFolder($id, $tag) /** * Associate tag to a media. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ protected function associateTagToMedia($id, $tag) @@ -372,9 +355,8 @@ protected function associateTagToMedia($id, $tag) /** * Disassociate tag from a media. * - * @param int $id - * @param array $tag - * + * @param int $id + * @param array $tag * @return array */ protected function disassociateTagFromMedia($id, $tag) diff --git a/src/Models/Team.php b/src/Models/Team.php index ecb1740..9e7dfe1 100644 --- a/src/Models/Team.php +++ b/src/Models/Team.php @@ -15,8 +15,8 @@ class Team /** * Construct Folder model. * - * @param Meema\MeemaClient\Client $client - * @param int $teamId + * @param Meema\MeemaClient\Client $client + * @param int $teamId */ public function __construct(Client $client) { @@ -36,8 +36,7 @@ public function all() /** * Get specific teams. * - * @param int $id - * + * @param int $id * @return array */ public function get($id = null) @@ -54,8 +53,7 @@ public function get($id = null) /** * Get specific teams. * - * @param int $id - * + * @param int $id * @return array */ public function find($id) @@ -68,8 +66,7 @@ public function find($id) /** * Create folder. * - * @param string $name - * + * @param string $name * @return array */ public function create($data) @@ -80,9 +77,8 @@ public function create($data) /** * Update folder. * - * @param string $name - * @param int $id - * + * @param string $name + * @param int $id * @return array */ public function update($id, $name) @@ -95,8 +91,7 @@ public function update($id, $name) /** * Delete a folder. * - * @param int $id - * + * @param int $id * @return null */ public function delete($id) @@ -107,8 +102,7 @@ public function delete($id) /** * Delete a folder. * - * @param int $id - * + * @param int $id * @return null */ public function toggleMediaRecognition($id, $status) diff --git a/src/Response/Response.php b/src/Response/Response.php index c976737..e2f747a 100644 --- a/src/Response/Response.php +++ b/src/Response/Response.php @@ -30,7 +30,6 @@ public function __construct($api, $content) * * @param string $method * @param array $parameters - * * @return mixed */ public function __call($method, $parameters) @@ -73,8 +72,7 @@ public function getData($key) /** * Get response content. * - * @param mixed $key - * + * @param mixed $key * @return array */ public function getContent($key = null) diff --git a/src/Traits/ForwardsCalls.php b/src/Traits/ForwardsCalls.php index 1d0c1de..55a34fd 100644 --- a/src/Traits/ForwardsCalls.php +++ b/src/Traits/ForwardsCalls.php @@ -21,7 +21,7 @@ protected function forwardCallTo($object, $method, $parameters) { try { return $object->{$method}(...$parameters); - } catch (Error | BadMethodCallException $e) { + } catch (Error|BadMethodCallException $e) { $pattern = '~^Call to undefined method (?P[^:]+)::(?P[^\(]+)\(\)$~'; if (! preg_match($pattern, $e->getMessage(), $matches)) { diff --git a/src/Traits/ValidsUuid.php b/src/Traits/ValidsUuid.php index 1d6bd59..ca5b33c 100644 --- a/src/Traits/ValidsUuid.php +++ b/src/Traits/ValidsUuid.php @@ -7,8 +7,7 @@ trait ValidsUuid /** * Check if a given string is a valid UUID. * - * @param string $uuid - * + * @param string $uuid * @return bool */ public function isValidUuid($uuid)