ReviewOS

also looking at this

meemalabs/meema-client-php

fix: Folder use UUID

#80
Merged glennmichael123 wants to merge folder-uuid into main
11 files +608 -149
.github/workflows/run-tests.ymlmodified+5-1
Changes to .github/workflows/run-tests.yml
@@ -34,6 +34,10 @@ jobs:
3434 run: |
3535 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3636
37 - name: Dump composer
38 run: |
39 composer dumpautoload
40
3741 - name: Make envfile
3842 uses: SpicyPizza/create-envfile@v1
3943 with:
@@ -43,4 +47,4 @@ jobs:
4347 file_name: .env
4448
4549 - name: Execute tests
46 run: vendor/bin/pest
50 run: ./vendor/bin/pest
composer.jsonmodified+1-1
Changes to composer.json
@@ -37,7 +37,7 @@
3737 },
3838 "autoload-dev": {
3939 "psr-4": {
40 "Meema\\MeemaClient\\Test\\": "tests"
40 "Meema\\MeemaClient\\Tests\\": "tests"
4141 }
4242 },
4343 "suggest": {
composer.lockmodified+512-98
Changes to composer.lock
@@ -50,6 +50,10 @@
5050 "brick",
5151 "math"
5252 ],
53 "support": {
54 "issues": "https://github.com/brick/math/issues",
55 "source": "https://github.com/brick/math/tree/0.9.2"
56 },
5357 "funding": [
5458 {
5559 "url": "https://tidelift.com/funding/github/packagist/brick/math",
@@ -133,6 +137,10 @@
133137 "uppercase",
134138 "words"
135139 ],
140 "support": {
141 "issues": "https://github.com/doctrine/inflector/issues",
142 "source": "https://github.com/doctrine/inflector/tree/2.0.x"
143 },
136144 "funding": [
137145 {
138146 "url": "https://www.doctrine-project.org/sponsorship.html",
@@ -209,6 +217,10 @@
209217 "parser",
210218 "php"
211219 ],
220 "support": {
221 "issues": "https://github.com/doctrine/lexer/issues",
222 "source": "https://github.com/doctrine/lexer/tree/1.2.1"
223 },
212224 "funding": [
213225 {
214226 "url": "https://www.doctrine-project.org/sponsorship.html",
@@ -274,6 +286,10 @@
274286 "cron",
275287 "schedule"
276288 ],
289 "support": {
290 "issues": "https://github.com/dragonmantank/cron-expression/issues",
291 "source": "https://github.com/dragonmantank/cron-expression/tree/v3.1.0"
292 },
277293 "funding": [
278294 {
279295 "url": "https://github.com/dragonmantank",
@@ -338,6 +354,10 @@
338354 "validation",
339355 "validator"
340356 ],
357 "support": {
358 "issues": "https://github.com/egulias/EmailValidator/issues",
359 "source": "https://github.com/egulias/EmailValidator/tree/2.1.25"
360 },
341361 "funding": [
342362 {
343363 "url": "https://github.com/egulias",
@@ -396,6 +416,10 @@
396416 "Result-Type",
397417 "result"
398418 ],
419 "support": {
420 "issues": "https://github.com/GrahamCampbell/Result-Type/issues",
421 "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.1"
422 },
399423 "funding": [
400424 {
401425 "url": "https://github.com/GrahamCampbell",
@@ -487,6 +511,10 @@
487511 "rest",
488512 "web service"
489513 ],
514 "support": {
515 "issues": "https://github.com/guzzle/guzzle/issues",
516 "source": "https://github.com/guzzle/guzzle/tree/7.3.0"
517 },
490518 "funding": [
491519 {
492520 "url": "https://github.com/GrahamCampbell",
@@ -556,20 +584,24 @@
556584 "keywords": [
557585 "promise"
558586 ],
587 "support": {
588 "issues": "https://github.com/guzzle/promises/issues",
589 "source": "https://github.com/guzzle/promises/tree/1.4.1"
590 },
559591 "time": "2021-03-07T09:25:29+00:00"
560592 },
561593 {
562594 "name": "guzzlehttp/psr7",
563 "version": "1.8.1",
595 "version": "1.8.2",
564596 "source": {
565597 "type": "git",
566598 "url": "https://github.com/guzzle/psr7.git",
567 "reference": "35ea11d335fd638b5882ff1725228b3d35496ab1"
599 "reference": "dc960a912984efb74d0a90222870c72c87f10c91"
568600 },
569601 "dist": {
570602 "type": "zip",
571 "url": "https://api.github.com/repos/guzzle/psr7/zipball/35ea11d335fd638b5882ff1725228b3d35496ab1",
572 "reference": "35ea11d335fd638b5882ff1725228b3d35496ab1",
603 "url": "https://api.github.com/repos/guzzle/psr7/zipball/dc960a912984efb74d0a90222870c72c87f10c91",
604 "reference": "dc960a912984efb74d0a90222870c72c87f10c91",
573605 "shasum": ""
574606 },
575607 "require": {
@@ -627,7 +659,11 @@
627659 "uri",
628660 "url"
629661 ],
630 "time": "2021-03-21T16:25:00+00:00"
662 "support": {
663 "issues": "https://github.com/guzzle/psr7/issues",
664 "source": "https://github.com/guzzle/psr7/tree/1.8.2"
665 },
666 "time": "2021-04-26T09:17:50+00:00"
631667 },
632668 {
633669 "name": "laravel/framework",
@@ -791,20 +827,24 @@
791827 "framework",
792828 "laravel"
793829 ],
830 "support": {
831 "issues": "https://github.com/laravel/framework/issues",
832 "source": "https://github.com/laravel/framework"
833 },
794834 "time": "2021-04-28T14:38:56+00:00"
795835 },
796836 {
797837 "name": "league/commonmark",
798 "version": "1.5.8",
838 "version": "1.6.0",
799839 "source": {
800840 "type": "git",
801841 "url": "https://github.com/thephpleague/commonmark.git",
802 "reference": "08fa59b8e4e34ea8a773d55139ae9ac0e0aecbaf"
842 "reference": "19a9673b833cc37770439097b381d86cd125bfe8"
803843 },
804844 "dist": {
805845 "type": "zip",
806 "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/08fa59b8e4e34ea8a773d55139ae9ac0e0aecbaf",
807 "reference": "08fa59b8e4e34ea8a773d55139ae9ac0e0aecbaf",
846 "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/19a9673b833cc37770439097b381d86cd125bfe8",
847 "reference": "19a9673b833cc37770439097b381d86cd125bfe8",
808848 "shasum": ""
809849 },
810850 "require": {
@@ -860,6 +900,12 @@
860900 "md",
861901 "parser"
862902 ],
903 "support": {
904 "docs": "https://commonmark.thephpleague.com/",
905 "issues": "https://github.com/thephpleague/commonmark/issues",
906 "rss": "https://github.com/thephpleague/commonmark/releases.atom",
907 "source": "https://github.com/thephpleague/commonmark"
908 },
863909 "funding": [
864910 {
865911 "url": "https://enjoy.gitstore.app/repositories/thephpleague/commonmark",
@@ -886,7 +932,7 @@
886932 "type": "tidelift"
887933 }
888934 ],
889 "time": "2021-03-28T18:51:39+00:00"
935 "time": "2021-05-01T19:00:49+00:00"
890936 },
891937 {
892938 "name": "league/flysystem",
@@ -971,6 +1017,10 @@
9711017 "sftp",
9721018 "storage"
9731019 ],
1020 "support": {
1021 "issues": "https://github.com/thephpleague/flysystem/issues",
1022 "source": "https://github.com/thephpleague/flysystem/tree/1.x"
1023 },
9741024 "funding": [
9751025 {
9761026 "url": "https://offset.earth/frankdejonge",
@@ -1019,6 +1069,10 @@
10191069 }
10201070 ],
10211071 "description": "Mime-type detection for Flysystem",
1072 "support": {
1073 "issues": "https://github.com/thephpleague/mime-type-detection/issues",
1074 "source": "https://github.com/thephpleague/mime-type-detection/tree/1.7.0"
1075 },
10221076 "funding": [
10231077 {
10241078 "url": "https://github.com/frankdejonge",
@@ -1111,6 +1165,10 @@
11111165 "logging",
11121166 "psr-3"
11131167 ],
1168 "support": {
1169 "issues": "https://github.com/Seldaek/monolog/issues",
1170 "source": "https://github.com/Seldaek/monolog/tree/2.2.0"
1171 },
11141172 "funding": [
11151173 {
11161174 "url": "https://github.com/Seldaek",
@@ -1125,16 +1183,16 @@
11251183 },
11261184 {
11271185 "name": "nesbot/carbon",
1128 "version": "2.46.0",
1186 "version": "2.47.0",
11291187 "source": {
11301188 "type": "git",
11311189 "url": "https://github.com/briannesbitt/Carbon.git",
1132 "reference": "2fd2c4a77d58a4e95234c8a61c5df1f157a91bf4"
1190 "reference": "606262fd8888b75317ba9461825a24fc34001e1e"
11331191 },
11341192 "dist": {
11351193 "type": "zip",
1136 "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/2fd2c4a77d58a4e95234c8a61c5df1f157a91bf4",
1137 "reference": "2fd2c4a77d58a4e95234c8a61c5df1f157a91bf4",
1194 "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/606262fd8888b75317ba9461825a24fc34001e1e",
1195 "reference": "606262fd8888b75317ba9461825a24fc34001e1e",
11381196 "shasum": ""
11391197 },
11401198 "require": {
@@ -1200,6 +1258,10 @@
12001258 "datetime",
12011259 "time"
12021260 ],
1261 "support": {
1262 "issues": "https://github.com/briannesbitt/Carbon/issues",
1263 "source": "https://github.com/briannesbitt/Carbon"
1264 },
12031265 "funding": [
12041266 {
12051267 "url": "https://opencollective.com/Carbon",
@@ -1210,7 +1272,7 @@
12101272 "type": "tidelift"
12111273 }
12121274 ],
1213 "time": "2021-02-24T17:30:44+00:00"
1275 "time": "2021-04-13T21:54:02+00:00"
12141276 },
12151277 {
12161278 "name": "opis/closure",
@@ -1271,6 +1333,10 @@
12711333 "serialization",
12721334 "serialize"
12731335 ],
1336 "support": {
1337 "issues": "https://github.com/opis/closure/issues",
1338 "source": "https://github.com/opis/closure/tree/3.6.2"
1339 },
12741340 "time": "2021-04-09T13:42:10+00:00"
12751341 },
12761342 {
@@ -1326,6 +1392,10 @@
13261392 "php",
13271393 "type"
13281394 ],
1395 "support": {
1396 "issues": "https://github.com/schmittjoh/php-option/issues",
1397 "source": "https://github.com/schmittjoh/php-option/tree/1.7.5"
1398 },
13291399 "funding": [
13301400 {
13311401 "url": "https://github.com/GrahamCampbell",
@@ -1380,6 +1450,10 @@
13801450 "container-interop",
13811451 "psr"
13821452 ],
1453 "support": {
1454 "issues": "https://github.com/php-fig/container/issues",
1455 "source": "https://github.com/php-fig/container/tree/1.1.1"
1456 },
13831457 "time": "2021-03-05T17:36:06+00:00"
13841458 },
13851459 {
@@ -1426,6 +1500,10 @@
14261500 "psr",
14271501 "psr-14"
14281502 ],
1503 "support": {
1504 "issues": "https://github.com/php-fig/event-dispatcher/issues",
1505 "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0"
1506 },
14291507 "time": "2019-01-08T18:20:26+00:00"
14301508 },
14311509 {
@@ -1475,6 +1553,9 @@
14751553 "psr",
14761554 "psr-18"
14771555 ],
1556 "support": {
1557 "source": "https://github.com/php-fig/http-client/tree/master"
1558 },
14781559 "time": "2020-06-29T06:28:15+00:00"
14791560 },
14801561 {
@@ -1525,20 +1606,23 @@
15251606 "request",
15261607 "response"
15271608 ],
1609 "support": {
1610 "source": "https://github.com/php-fig/http-message/tree/master"
1611 },
15281612 "time": "2016-08-06T14:39:51+00:00"
15291613 },
15301614 {
15311615 "name": "psr/log",
1532 "version": "1.1.3",
1616 "version": "1.1.4",
15331617 "source": {
15341618 "type": "git",
15351619 "url": "https://github.com/php-fig/log.git",
1536 "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
1620 "reference": "d49695b909c3b7628b6289db5479a1c204601f11"
15371621 },
15381622 "dist": {
15391623 "type": "zip",
1540 "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
1541 "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
1624 "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
1625 "reference": "d49695b909c3b7628b6289db5479a1c204601f11",
15421626 "shasum": ""
15431627 },
15441628 "require": {
@@ -1562,7 +1646,7 @@
15621646 "authors": [
15631647 {
15641648 "name": "PHP-FIG",
1565 "homepage": "http://www.php-fig.org/"
1649 "homepage": "https://www.php-fig.org/"
15661650 }
15671651 ],
15681652 "description": "Common interface for logging libraries",
@@ -1572,7 +1656,10 @@
15721656 "psr",
15731657 "psr-3"
15741658 ],
1575 "time": "2020-03-23T09:12:05+00:00"
1659 "support": {
1660 "source": "https://github.com/php-fig/log/tree/1.1.4"
1661 },
1662 "time": "2021-05-03T11:20:27+00:00"
15761663 },
15771664 {
15781665 "name": "psr/simple-cache",
@@ -1620,6 +1707,9 @@
16201707 "psr-16",
16211708 "simple-cache"
16221709 ],
1710 "support": {
1711 "source": "https://github.com/php-fig/simple-cache/tree/master"
1712 },
16231713 "time": "2017-10-23T01:57:42+00:00"
16241714 },
16251715 {
@@ -1660,6 +1750,10 @@
16601750 }
16611751 ],
16621752 "description": "A polyfill for getallheaders.",
1753 "support": {
1754 "issues": "https://github.com/ralouphie/getallheaders/issues",
1755 "source": "https://github.com/ralouphie/getallheaders/tree/develop"
1756 },
16631757 "time": "2019-03-08T08:55:37+00:00"
16641758 },
16651759 {
@@ -1723,6 +1817,10 @@
17231817 "queue",
17241818 "set"
17251819 ],
1820 "support": {
1821 "issues": "https://github.com/ramsey/collection/issues",
1822 "source": "https://github.com/ramsey/collection/tree/1.1.3"
1823 },
17261824 "funding": [
17271825 {
17281826 "url": "https://github.com/ramsey",
@@ -1814,6 +1912,11 @@
18141912 "identifier",
18151913 "uuid"
18161914 ],
1915 "support": {
1916 "issues": "https://github.com/ramsey/uuid/issues",
1917 "rss": "https://github.com/ramsey/uuid/releases.atom",
1918 "source": "https://github.com/ramsey/uuid"
1919 },
18171920 "funding": [
18181921 {
18191922 "url": "https://github.com/ramsey",
@@ -1881,6 +1984,10 @@
18811984 "mail",
18821985 "mailer"
18831986 ],
1987 "support": {
1988 "issues": "https://github.com/swiftmailer/swiftmailer/issues",
1989 "source": "https://github.com/swiftmailer/swiftmailer/tree/v6.2.7"
1990 },
18841991 "funding": [
18851992 {
18861993 "url": "https://github.com/fabpot",
@@ -1971,6 +2078,9 @@
19712078 "console",
19722079 "terminal"
19732080 ],
2081 "support": {
2082 "source": "https://github.com/symfony/console/tree/v5.2.7"
2083 },
19742084 "funding": [
19752085 {
19762086 "url": "https://symfony.com/sponsor",
@@ -1989,16 +2099,16 @@
19892099 },
19902100 {
19912101 "name": "symfony/css-selector",
1992 "version": "v5.2.4",
2102 "version": "v5.2.7",
19932103 "source": {
19942104 "type": "git",
19952105 "url": "https://github.com/symfony/css-selector.git",
1996 "reference": "f65f217b3314504a1ec99c2d6ef69016bb13490f"
2106 "reference": "59a684f5ac454f066ecbe6daecce6719aed283fb"
19972107 },
19982108 "dist": {
19992109 "type": "zip",
2000 "url": "https://api.github.com/repos/symfony/css-selector/zipball/f65f217b3314504a1ec99c2d6ef69016bb13490f",
2001 "reference": "f65f217b3314504a1ec99c2d6ef69016bb13490f",
2110 "url": "https://api.github.com/repos/symfony/css-selector/zipball/59a684f5ac454f066ecbe6daecce6719aed283fb",
2111 "reference": "59a684f5ac454f066ecbe6daecce6719aed283fb",
20022112 "shasum": ""
20032113 },
20042114 "require": {
@@ -2033,6 +2143,9 @@
20332143 ],
20342144 "description": "Converts CSS selectors to XPath expressions",
20352145 "homepage": "https://symfony.com",
2146 "support": {
2147 "source": "https://github.com/symfony/css-selector/tree/v5.3.0-BETA1"
2148 },
20362149 "funding": [
20372150 {
20382151 "url": "https://symfony.com/sponsor",
@@ -2047,7 +2160,7 @@
20472160 "type": "tidelift"
20482161 }
20492162 ],
2050 "time": "2021-01-27T10:01:46+00:00"
2163 "time": "2021-04-07T16:07:52+00:00"
20512164 },
20522165 {
20532166 "name": "symfony/deprecation-contracts",
@@ -2097,6 +2210,9 @@
20972210 ],
20982211 "description": "A generic function and convention to trigger deprecation notices",
20992212 "homepage": "https://symfony.com",
2213 "support": {
2214 "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0"
2215 },
21002216 "funding": [
21012217 {
21022218 "url": "https://symfony.com/sponsor",
@@ -2115,16 +2231,16 @@
21152231 },
21162232 {
21172233 "name": "symfony/error-handler",
2118 "version": "v5.2.6",
2234 "version": "v5.2.7",
21192235 "source": {
21202236 "type": "git",
21212237 "url": "https://github.com/symfony/error-handler.git",
2122 "reference": "bdb7fb4188da7f4211e4b88350ba0dfdad002b03"
2238 "reference": "ea3ddbf67615e883ca7c33a4de61213789846782"
21232239 },
21242240 "dist": {
21252241 "type": "zip",
2126 "url": "https://api.github.com/repos/symfony/error-handler/zipball/bdb7fb4188da7f4211e4b88350ba0dfdad002b03",
2127 "reference": "bdb7fb4188da7f4211e4b88350ba0dfdad002b03",
2242 "url": "https://api.github.com/repos/symfony/error-handler/zipball/ea3ddbf67615e883ca7c33a4de61213789846782",
2243 "reference": "ea3ddbf67615e883ca7c33a4de61213789846782",
21282244 "shasum": ""
21292245 },
21302246 "require": {
@@ -2163,6 +2279,9 @@
21632279 ],
21642280 "description": "Provides tools to manage errors and ease debugging PHP code",
21652281 "homepage": "https://symfony.com",
2282 "support": {
2283 "source": "https://github.com/symfony/error-handler/tree/v5.2.7"
2284 },
21662285 "funding": [
21672286 {
21682287 "url": "https://symfony.com/sponsor",
@@ -2177,7 +2296,7 @@
21772296 "type": "tidelift"
21782297 }
21792298 ],
2180 "time": "2021-03-16T09:07:47+00:00"
2299 "time": "2021-04-07T15:57:33+00:00"
21812300 },
21822301 {
21832302 "name": "symfony/event-dispatcher",
@@ -2245,6 +2364,9 @@
22452364 ],
22462365 "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
22472366 "homepage": "https://symfony.com",
2367 "support": {
2368 "source": "https://github.com/symfony/event-dispatcher/tree/v5.2.4"
2369 },
22482370 "funding": [
22492371 {
22502372 "url": "https://symfony.com/sponsor",
@@ -2321,6 +2443,9 @@
23212443 "interoperability",
23222444 "standards"
23232445 ],
2446 "support": {
2447 "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.4.0"
2448 },
23242449 "funding": [
23252450 {
23262451 "url": "https://symfony.com/sponsor",
@@ -2379,6 +2504,9 @@
23792504 ],
23802505 "description": "Finds files and directories via an intuitive fluent interface",
23812506 "homepage": "https://symfony.com",
2507 "support": {
2508 "source": "https://github.com/symfony/finder/tree/v5.2.4"
2509 },
23822510 "funding": [
23832511 {
23842512 "url": "https://symfony.com/sponsor",
@@ -2454,6 +2582,9 @@
24542582 "interoperability",
24552583 "standards"
24562584 ],
2585 "support": {
2586 "source": "https://github.com/symfony/http-client-contracts/tree/v2.4.0"
2587 },
24572588 "funding": [
24582589 {
24592590 "url": "https://symfony.com/sponsor",
@@ -2472,16 +2603,16 @@
24722603 },
24732604 {
24742605 "name": "symfony/http-foundation",
2475 "version": "v5.2.4",
2606 "version": "v5.2.7",
24762607 "source": {
24772608 "type": "git",
24782609 "url": "https://github.com/symfony/http-foundation.git",
2479 "reference": "54499baea7f7418bce7b5ec92770fd0799e8e9bf"
2610 "reference": "a416487a73bb9c9d120e9ba3a60547f4a3fb7a1f"
24802611 },
24812612 "dist": {
24822613 "type": "zip",
2483 "url": "https://api.github.com/repos/symfony/http-foundation/zipball/54499baea7f7418bce7b5ec92770fd0799e8e9bf",
2484 "reference": "54499baea7f7418bce7b5ec92770fd0799e8e9bf",
2614 "url": "https://api.github.com/repos/symfony/http-foundation/zipball/a416487a73bb9c9d120e9ba3a60547f4a3fb7a1f",
2615 "reference": "a416487a73bb9c9d120e9ba3a60547f4a3fb7a1f",
24852616 "shasum": ""
24862617 },
24872618 "require": {
@@ -2524,6 +2655,9 @@
25242655 ],
25252656 "description": "Defines an object-oriented layer for the HTTP specification",
25262657 "homepage": "https://symfony.com",
2658 "support": {
2659 "source": "https://github.com/symfony/http-foundation/tree/v5.2.7"
2660 },
25272661 "funding": [
25282662 {
25292663 "url": "https://symfony.com/sponsor",
@@ -2538,20 +2672,20 @@
25382672 "type": "tidelift"
25392673 }
25402674 ],
2541 "time": "2021-02-25T17:16:57+00:00"
2675 "time": "2021-05-01T13:46:24+00:00"
25422676 },
25432677 {
25442678 "name": "symfony/http-kernel",
2545 "version": "v5.2.6",
2679 "version": "v5.2.7",
25462680 "source": {
25472681 "type": "git",
25482682 "url": "https://github.com/symfony/http-kernel.git",
2549 "reference": "f34de4c61ca46df73857f7f36b9a3805bdd7e3b2"
2683 "reference": "1e9f6879f070f718e0055fbac232a56f67b8b6bd"
25502684 },
25512685 "dist": {
25522686 "type": "zip",
2553 "url": "https://api.github.com/repos/symfony/http-kernel/zipball/f34de4c61ca46df73857f7f36b9a3805bdd7e3b2",
2554 "reference": "f34de4c61ca46df73857f7f36b9a3805bdd7e3b2",
2687 "url": "https://api.github.com/repos/symfony/http-kernel/zipball/1e9f6879f070f718e0055fbac232a56f67b8b6bd",
2688 "reference": "1e9f6879f070f718e0055fbac232a56f67b8b6bd",
25552689 "shasum": ""
25562690 },
25572691 "require": {
@@ -2633,6 +2767,9 @@
26332767 ],
26342768 "description": "Provides a structured process for converting a Request into a Response",
26352769 "homepage": "https://symfony.com",
2770 "support": {
2771 "source": "https://github.com/symfony/http-kernel/tree/v5.2.7"
2772 },
26362773 "funding": [
26372774 {
26382775 "url": "https://symfony.com/sponsor",
@@ -2647,20 +2784,20 @@
26472784 "type": "tidelift"
26482785 }
26492786 ],
2650 "time": "2021-03-29T05:16:58+00:00"
2787 "time": "2021-05-01T14:53:15+00:00"
26512788 },
26522789 {
26532790 "name": "symfony/mime",
2654 "version": "v5.2.6",
2791 "version": "v5.2.7",
26552792 "source": {
26562793 "type": "git",
26572794 "url": "https://github.com/symfony/mime.git",
2658 "reference": "1b2092244374cbe48ae733673f2ca0818b37197b"
2795 "reference": "7af452bf51c46f18da00feb32e1ad36db9426515"
26592796 },
26602797 "dist": {
26612798 "type": "zip",
2662 "url": "https://api.github.com/repos/symfony/mime/zipball/1b2092244374cbe48ae733673f2ca0818b37197b",
2663 "reference": "1b2092244374cbe48ae733673f2ca0818b37197b",
2799 "url": "https://api.github.com/repos/symfony/mime/zipball/7af452bf51c46f18da00feb32e1ad36db9426515",
2800 "reference": "7af452bf51c46f18da00feb32e1ad36db9426515",
26642801 "shasum": ""
26652802 },
26662803 "require": {
@@ -2713,6 +2850,9 @@
27132850 "mime",
27142851 "mime-type"
27152852 ],
2853 "support": {
2854 "source": "https://github.com/symfony/mime/tree/v5.2.7"
2855 },
27162856 "funding": [
27172857 {
27182858 "url": "https://symfony.com/sponsor",
@@ -2727,7 +2867,7 @@
27272867 "type": "tidelift"
27282868 }
27292869 ],
2730 "time": "2021-03-12T13:18:39+00:00"
2870 "time": "2021-04-29T20:47:09+00:00"
27312871 },
27322872 {
27332873 "name": "symfony/polyfill-ctype",
@@ -2789,6 +2929,9 @@
27892929 "polyfill",
27902930 "portable"
27912931 ],
2932 "support": {
2933 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
2934 },
27922935 "funding": [
27932936 {
27942937 "url": "https://symfony.com/sponsor",
@@ -2866,6 +3009,9 @@
28663009 "portable",
28673010 "shim"
28683011 ],
3012 "support": {
3013 "source": "https://github.com/symfony/polyfill-iconv/tree/v1.22.1"
3014 },
28693015 "funding": [
28703016 {
28713017 "url": "https://symfony.com/sponsor",
@@ -2944,6 +3090,9 @@
29443090 "portable",
29453091 "shim"
29463092 ],
3093 "support": {
3094 "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.22.1"
3095 },
29473096 "funding": [
29483097 {
29493098 "url": "https://symfony.com/sponsor",
@@ -3028,6 +3177,9 @@
30283177 "portable",
30293178 "shim"
30303179 ],
3180 "support": {
3181 "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.22.1"
3182 },
30313183 "funding": [
30323184 {
30333185 "url": "https://symfony.com/sponsor",
@@ -3109,6 +3261,9 @@
31093261 "portable",
31103262 "shim"
31113263 ],
3264 "support": {
3265 "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.22.1"
3266 },
31123267 "funding": [
31133268 {
31143269 "url": "https://symfony.com/sponsor",
@@ -3186,6 +3341,9 @@
31863341 "portable",
31873342 "shim"
31883343 ],
3344 "support": {
3345 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.1"
3346 },
31893347 "funding": [
31903348 {
31913349 "url": "https://symfony.com/sponsor",
@@ -3259,6 +3417,9 @@
32593417 "portable",
32603418 "shim"
32613419 ],
3420 "support": {
3421 "source": "https://github.com/symfony/polyfill-php72/tree/v1.22.1"
3422 },
32623423 "funding": [
32633424 {
32643425 "url": "https://symfony.com/sponsor",
@@ -3335,6 +3496,9 @@
33353496 "portable",
33363497 "shim"
33373498 ],
3499 "support": {
3500 "source": "https://github.com/symfony/polyfill-php73/tree/v1.22.1"
3501 },
33383502 "funding": [
33393503 {
33403504 "url": "https://symfony.com/sponsor",
@@ -3415,6 +3579,9 @@
34153579 "portable",
34163580 "shim"
34173581 ],
3582 "support": {
3583 "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.1"
3584 },
34183585 "funding": [
34193586 {
34203587 "url": "https://symfony.com/sponsor",
@@ -3433,16 +3600,16 @@
34333600 },
34343601 {
34353602 "name": "symfony/process",
3436 "version": "v5.2.4",
3603 "version": "v5.2.7",
34373604 "source": {
34383605 "type": "git",
34393606 "url": "https://github.com/symfony/process.git",
3440 "reference": "313a38f09c77fbcdc1d223e57d368cea76a2fd2f"
3607 "reference": "98cb8eeb72e55d4196dd1e36f1f16e7b3a9a088e"
34413608 },
34423609 "dist": {
34433610 "type": "zip",
3444 "url": "https://api.github.com/repos/symfony/process/zipball/313a38f09c77fbcdc1d223e57d368cea76a2fd2f",
3445 "reference": "313a38f09c77fbcdc1d223e57d368cea76a2fd2f",
3611 "url": "https://api.github.com/repos/symfony/process/zipball/98cb8eeb72e55d4196dd1e36f1f16e7b3a9a088e",
3612 "reference": "98cb8eeb72e55d4196dd1e36f1f16e7b3a9a088e",
34463613 "shasum": ""
34473614 },
34483615 "require": {
@@ -3474,6 +3641,9 @@
34743641 ],
34753642 "description": "Executes commands in sub-processes",
34763643 "homepage": "https://symfony.com",
3644 "support": {
3645 "source": "https://github.com/symfony/process/tree/v5.3.0-BETA1"
3646 },
34773647 "funding": [
34783648 {
34793649 "url": "https://symfony.com/sponsor",
@@ -3488,20 +3658,20 @@
34883658 "type": "tidelift"
34893659 }
34903660 ],
3491 "time": "2021-01-27T10:15:41+00:00"
3661 "time": "2021-04-08T10:27:02+00:00"
34923662 },
34933663 {
34943664 "name": "symfony/routing",
3495 "version": "v5.2.6",
3665 "version": "v5.2.7",
34963666 "source": {
34973667 "type": "git",
34983668 "url": "https://github.com/symfony/routing.git",
3499 "reference": "31fba555f178afd04d54fd26953501b2c3f0c6e6"
3669 "reference": "3f0cab2e95b5e92226f34c2c1aa969d3fc41f48c"
35003670 },
35013671 "dist": {
35023672 "type": "zip",
3503 "url": "https://api.github.com/repos/symfony/routing/zipball/31fba555f178afd04d54fd26953501b2c3f0c6e6",
3504 "reference": "31fba555f178afd04d54fd26953501b2c3f0c6e6",
3673 "url": "https://api.github.com/repos/symfony/routing/zipball/3f0cab2e95b5e92226f34c2c1aa969d3fc41f48c",
3674 "reference": "3f0cab2e95b5e92226f34c2c1aa969d3fc41f48c",
35053675 "shasum": ""
35063676 },
35073677 "require": {
@@ -3524,7 +3694,6 @@
35243694 "symfony/yaml": "^4.4|^5.0"
35253695 },
35263696 "suggest": {
3527 "doctrine/annotations": "For using the annotation loader",
35283697 "symfony/config": "For using the all-in-one router or any loader",
35293698 "symfony/expression-language": "For using expression matching",
35303699 "symfony/http-foundation": "For using a Symfony Request object",
@@ -3561,6 +3730,9 @@
35613730 "uri",
35623731 "url"
35633732 ],
3733 "support": {
3734 "source": "https://github.com/symfony/routing/tree/v5.2.7"
3735 },
35643736 "funding": [
35653737 {
35663738 "url": "https://symfony.com/sponsor",
@@ -3575,7 +3747,7 @@
35753747 "type": "tidelift"
35763748 }
35773749 ],
3578 "time": "2021-03-14T13:53:33+00:00"
3750 "time": "2021-04-11T22:55:21+00:00"
35793751 },
35803752 {
35813753 "name": "symfony/service-contracts",
@@ -3637,6 +3809,9 @@
36373809 "interoperability",
36383810 "standards"
36393811 ],
3812 "support": {
3813 "source": "https://github.com/symfony/service-contracts/tree/v2.4.0"
3814 },
36403815 "funding": [
36413816 {
36423817 "url": "https://symfony.com/sponsor",
@@ -3717,6 +3892,9 @@
37173892 "utf-8",
37183893 "utf8"
37193894 ],
3895 "support": {
3896 "source": "https://github.com/symfony/string/tree/v5.2.6"
3897 },
37203898 "funding": [
37213899 {
37223900 "url": "https://symfony.com/sponsor",
@@ -3735,16 +3913,16 @@
37353913 },
37363914 {
37373915 "name": "symfony/translation",
3738 "version": "v5.2.6",
3916 "version": "v5.2.7",
37393917 "source": {
37403918 "type": "git",
37413919 "url": "https://github.com/symfony/translation.git",
3742 "reference": "2cc7f45d96db9adfcf89adf4401d9dfed509f4e1"
3920 "reference": "e37ece5242564bceea54d709eafc948377ec9749"
37433921 },
37443922 "dist": {
37453923 "type": "zip",
3746 "url": "https://api.github.com/repos/symfony/translation/zipball/2cc7f45d96db9adfcf89adf4401d9dfed509f4e1",
3747 "reference": "2cc7f45d96db9adfcf89adf4401d9dfed509f4e1",
3924 "url": "https://api.github.com/repos/symfony/translation/zipball/e37ece5242564bceea54d709eafc948377ec9749",
3925 "reference": "e37ece5242564bceea54d709eafc948377ec9749",
37483926 "shasum": ""
37493927 },
37503928 "require": {
@@ -3807,6 +3985,9 @@
38073985 ],
38083986 "description": "Provides tools to internationalize your application",
38093987 "homepage": "https://symfony.com",
3988 "support": {
3989 "source": "https://github.com/symfony/translation/tree/v5.2.7"
3990 },
38103991 "funding": [
38113992 {
38123993 "url": "https://symfony.com/sponsor",
@@ -3821,7 +4002,7 @@
38214002 "type": "tidelift"
38224003 }
38234004 ],
3824 "time": "2021-03-23T19:33:48+00:00"
4005 "time": "2021-04-01T08:15:21+00:00"
38254006 },
38264007 {
38274008 "name": "symfony/translation-contracts",
@@ -3882,6 +4063,9 @@
38824063 "interoperability",
38834064 "standards"
38844065 ],
4066 "support": {
4067 "source": "https://github.com/symfony/translation-contracts/tree/v2.4.0"
4068 },
38854069 "funding": [
38864070 {
38874071 "url": "https://symfony.com/sponsor",
@@ -3900,16 +4084,16 @@
39004084 },
39014085 {
39024086 "name": "symfony/var-dumper",
3903 "version": "v5.2.6",
4087 "version": "v5.2.7",
39044088 "source": {
39054089 "type": "git",
39064090 "url": "https://github.com/symfony/var-dumper.git",
3907 "reference": "89412a68ea2e675b4e44f260a5666729f77f668e"
4091 "reference": "27cb9f7cfa3853c736425c7233a8f68814b19636"
39084092 },
39094093 "dist": {
39104094 "type": "zip",
3911 "url": "https://api.github.com/repos/symfony/var-dumper/zipball/89412a68ea2e675b4e44f260a5666729f77f668e",
3912 "reference": "89412a68ea2e675b4e44f260a5666729f77f668e",
4095 "url": "https://api.github.com/repos/symfony/var-dumper/zipball/27cb9f7cfa3853c736425c7233a8f68814b19636",
4096 "reference": "27cb9f7cfa3853c736425c7233a8f68814b19636",
39134097 "shasum": ""
39144098 },
39154099 "require": {
@@ -3967,6 +4151,9 @@
39674151 "debug",
39684152 "dump"
39694153 ],
4154 "support": {
4155 "source": "https://github.com/symfony/var-dumper/tree/v5.2.7"
4156 },
39704157 "funding": [
39714158 {
39724159 "url": "https://symfony.com/sponsor",
@@ -3981,7 +4168,7 @@
39814168 "type": "tidelift"
39824169 }
39834170 ],
3984 "time": "2021-03-28T09:42:18+00:00"
4171 "time": "2021-04-19T14:07:32+00:00"
39854172 },
39864173 {
39874174 "name": "tijsverkoyen/css-to-inline-styles",
@@ -4030,6 +4217,10 @@
40304217 ],
40314218 "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.",
40324219 "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles",
4220 "support": {
4221 "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues",
4222 "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.3"
4223 },
40334224 "time": "2020-07-13T06:12:54+00:00"
40344225 },
40354226 {
@@ -4096,6 +4287,10 @@
40964287 "env",
40974288 "environment"
40984289 ],
4290 "support": {
4291 "issues": "https://github.com/vlucas/phpdotenv/issues",
4292 "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.0"
4293 },
40994294 "funding": [
41004295 {
41014296 "url": "https://github.com/GrahamCampbell",
@@ -4154,6 +4349,10 @@
41544349 "clean",
41554350 "php"
41564351 ],
4352 "support": {
4353 "issues": "https://github.com/voku/portable-ascii/issues",
4354 "source": "https://github.com/voku/portable-ascii/tree/1.5.6"
4355 },
41574356 "funding": [
41584357 {
41594358 "url": "https://www.paypal.me/moelleken",
@@ -4230,6 +4429,10 @@
42304429 "check",
42314430 "validate"
42324431 ],
4432 "support": {
4433 "issues": "https://github.com/webmozarts/assert/issues",
4434 "source": "https://github.com/webmozarts/assert/tree/1.10.0"
4435 },
42334436 "time": "2021-03-09T10:59:23+00:00"
42344437 }
42354438 ],
@@ -4283,6 +4486,10 @@
42834486 "constructor",
42844487 "instantiate"
42854488 ],
4489 "support": {
4490 "issues": "https://github.com/doctrine/instantiator/issues",
4491 "source": "https://github.com/doctrine/instantiator/tree/1.4.0"
4492 },
42864493 "funding": [
42874494 {
42884495 "url": "https://www.doctrine-project.org/sponsorship.html",
@@ -4346,6 +4553,10 @@
43464553 "flare",
43474554 "ignition"
43484555 ],
4556 "support": {
4557 "issues": "https://github.com/facade/ignition-contracts/issues",
4558 "source": "https://github.com/facade/ignition-contracts/tree/1.0.2"
4559 },
43494560 "time": "2020-10-16T08:27:54+00:00"
43504561 },
43514562 {
@@ -4407,6 +4618,10 @@
44074618 "faker",
44084619 "fixtures"
44094620 ],
4621 "support": {
4622 "issues": "https://github.com/FakerPHP/Faker/issues",
4623 "source": "https://github.com/FakerPHP/Faker/tree/v.1.14.1"
4624 },
44104625 "time": "2021-03-30T06:27:33+00:00"
44114626 },
44124627 {
@@ -4468,6 +4683,10 @@
44684683 "throwable",
44694684 "whoops"
44704685 ],
4686 "support": {
4687 "issues": "https://github.com/filp/whoops/issues",
4688 "source": "https://github.com/filp/whoops/tree/2.12.1"
4689 },
44714690 "funding": [
44724691 {
44734692 "url": "https://github.com/denis-sokolov",
@@ -4521,6 +4740,10 @@
45214740 "keywords": [
45224741 "test"
45234742 ],
4743 "support": {
4744 "issues": "https://github.com/hamcrest/hamcrest-php/issues",
4745 "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1"
4746 },
45244747 "time": "2020-07-09T08:09:16+00:00"
45254748 },
45264749 {
@@ -4589,6 +4812,10 @@
45894812 "test double",
45904813 "testing"
45914814 ],
4815 "support": {
4816 "issues": "https://github.com/mockery/mockery/issues",
4817 "source": "https://github.com/mockery/mockery/tree/1.4.3"
4818 },
45924819 "time": "2021-02-24T09:51:49+00:00"
45934820 },
45944821 {
@@ -4637,6 +4864,10 @@
46374864 "object",
46384865 "object graph"
46394866 ],
4867 "support": {
4868 "issues": "https://github.com/myclabs/DeepCopy/issues",
4869 "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2"
4870 },
46404871 "funding": [
46414872 {
46424873 "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
@@ -4647,16 +4878,16 @@
46474878 },
46484879 {
46494880 "name": "nikic/php-parser",
4650 "version": "v4.10.4",
4881 "version": "v4.10.5",
46514882 "source": {
46524883 "type": "git",
46534884 "url": "https://github.com/nikic/PHP-Parser.git",
4654 "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e"
4885 "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f"
46554886 },
46564887 "dist": {
46574888 "type": "zip",
4658 "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c6d052fc58cb876152f89f532b95a8d7907e7f0e",
4659 "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e",
4889 "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4432ba399e47c66624bc73c8c0f811e5c109576f",
4890 "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f",
46604891 "shasum": ""
46614892 },
46624893 "require": {
@@ -4695,7 +4926,11 @@
46954926 "parser",
46964927 "php"
46974928 ],
4698 "time": "2020-12-20T10:01:03+00:00"
4929 "support": {
4930 "issues": "https://github.com/nikic/PHP-Parser/issues",
4931 "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.5"
4932 },
4933 "time": "2021-05-03T19:11:20+00:00"
46994934 },
47004935 {
47014936 "name": "nunomaduro/collision",
@@ -4765,6 +5000,10 @@
47655000 "php",
47665001 "symfony"
47675002 ],
5003 "support": {
5004 "issues": "https://github.com/nunomaduro/collision/issues",
5005 "source": "https://github.com/nunomaduro/collision"
5006 },
47685007 "funding": [
47695008 {
47705009 "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
@@ -4830,6 +5069,10 @@
48305069 "orchestral",
48315070 "testing"
48325071 ],
5072 "support": {
5073 "issues": "https://github.com/orchestral/testbench/issues",
5074 "source": "https://github.com/orchestral/testbench/tree/v6.17.0"
5075 },
48335076 "funding": [
48345077 {
48355078 "url": "https://paypal.me/crynobone",
@@ -4844,16 +5087,16 @@
48445087 },
48455088 {
48465089 "name": "orchestra/testbench-core",
4847 "version": "v6.21.0",
5090 "version": "v6.21.1",
48485091 "source": {
48495092 "type": "git",
48505093 "url": "https://github.com/orchestral/testbench-core.git",
4851 "reference": "8412a8557b822fabd657d6ab5b06ca20c65b1b3e"
5094 "reference": "a4e0660f1cf85760853ae105f937632888b114c6"
48525095 },
48535096 "dist": {
48545097 "type": "zip",
4855 "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/8412a8557b822fabd657d6ab5b06ca20c65b1b3e",
4856 "reference": "8412a8557b822fabd657d6ab5b06ca20c65b1b3e",
5098 "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/a4e0660f1cf85760853ae105f937632888b114c6",
5099 "reference": "a4e0660f1cf85760853ae105f937632888b114c6",
48575100 "shasum": ""
48585101 },
48595102 "require": {
@@ -4913,6 +5156,10 @@
49135156 "orchestral",
49145157 "testing"
49155158 ],
5159 "support": {
5160 "issues": "https://github.com/orchestral/testbench/issues",
5161 "source": "https://github.com/orchestral/testbench-core"
5162 },
49165163 "funding": [
49175164 {
49185165 "url": "https://paypal.me/crynobone",
@@ -4923,7 +5170,7 @@
49235170 "type": "liberapay"
49245171 }
49255172 ],
4926 "time": "2021-04-06T11:36:25+00:00"
5173 "time": "2021-04-21T02:44:17+00:00"
49275174 },
49285175 {
49295176 "name": "pestphp/pest",
@@ -5002,6 +5249,10 @@
50025249 "testing",
50035250 "unit"
50045251 ],
5252 "support": {
5253 "issues": "https://github.com/pestphp/pest/issues",
5254 "source": "https://github.com/pestphp/pest/tree/v1.1.0"
5255 },
50055256 "funding": [
50065257 {
50075258 "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
@@ -5083,6 +5334,9 @@
50835334 "testing",
50845335 "unit"
50855336 ],
5337 "support": {
5338 "source": "https://github.com/pestphp/pest-plugin/tree/v1.0.0"
5339 },
50865340 "funding": [
50875341 {
50885342 "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
@@ -5156,6 +5410,9 @@
51565410 "testing",
51575411 "unit"
51585412 ],
5413 "support": {
5414 "source": "https://github.com/pestphp/pest-plugin-coverage/tree/v1.0.0"
5415 },
51595416 "funding": [
51605417 {
51615418 "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
@@ -5225,6 +5482,9 @@
52255482 "testing",
52265483 "unit"
52275484 ],
5485 "support": {
5486 "source": "https://github.com/pestphp/pest-plugin-expectations/tree/v1.0.1"
5487 },
52285488 "funding": [
52295489 {
52305490 "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
@@ -5297,6 +5557,9 @@
52975557 "testing",
52985558 "unit"
52995559 ],
5560 "support": {
5561 "source": "https://github.com/pestphp/pest-plugin-init/tree/v1.0.0"
5562 },
53005563 "funding": [
53015564 {
53025565 "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L",
@@ -5367,6 +5630,10 @@
53675630 }
53685631 ],
53695632 "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
5633 "support": {
5634 "issues": "https://github.com/phar-io/manifest/issues",
5635 "source": "https://github.com/phar-io/manifest/tree/master"
5636 },
53705637 "time": "2020-06-27T14:33:11+00:00"
53715638 },
53725639 {
@@ -5414,6 +5681,10 @@
54145681 }
54155682 ],
54165683 "description": "Library for handling version information and constraints",
5684 "support": {
5685 "issues": "https://github.com/phar-io/version/issues",
5686 "source": "https://github.com/phar-io/version/tree/3.1.0"
5687 },
54175688 "time": "2021-02-23T14:00:09+00:00"
54185689 },
54195690 {
@@ -5463,6 +5734,10 @@
54635734 "reflection",
54645735 "static analysis"
54655736 ],
5737 "support": {
5738 "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
5739 "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
5740 },
54665741 "time": "2020-06-27T09:03:43+00:00"
54675742 },
54685743 {
@@ -5515,6 +5790,10 @@
55155790 }
55165791 ],
55175792 "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
5793 "support": {
5794 "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
5795 "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
5796 },
55185797 "time": "2020-09-03T19:13:55+00:00"
55195798 },
55205799 {
@@ -5560,6 +5839,10 @@
55605839 }
55615840 ],
55625841 "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
5842 "support": {
5843 "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
5844 "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0"
5845 },
55635846 "time": "2020-09-17T18:55:26+00:00"
55645847 },
55655848 {
@@ -5623,6 +5906,10 @@
56235906 "spy",
56245907 "stub"
56255908 ],
5909 "support": {
5910 "issues": "https://github.com/phpspec/prophecy/issues",
5911 "source": "https://github.com/phpspec/prophecy/tree/1.13.0"
5912 },
56265913 "time": "2021-03-17T13:42:18+00:00"
56275914 },
56285915 {
@@ -5690,6 +5977,10 @@
56905977 "testing",
56915978 "xunit"
56925979 ],
5980 "support": {
5981 "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
5982 "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6"
5983 },
56935984 "funding": [
56945985 {
56955986 "url": "https://github.com/sebastianbergmann",
@@ -5746,6 +6037,10 @@
57466037 "filesystem",
57476038 "iterator"
57486039 ],
6040 "support": {
6041 "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
6042 "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
6043 },
57496044 "funding": [
57506045 {
57516046 "url": "https://github.com/sebastianbergmann",
@@ -5805,6 +6100,10 @@
58056100 "keywords": [
58066101 "process"
58076102 ],
6103 "support": {
6104 "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
6105 "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
6106 },
58086107 "funding": [
58096108 {
58106109 "url": "https://github.com/sebastianbergmann",
@@ -5860,6 +6159,10 @@
58606159 "keywords": [
58616160 "template"
58626161 ],
6162 "support": {
6163 "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
6164 "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
6165 },
58636166 "funding": [
58646167 {
58656168 "url": "https://github.com/sebastianbergmann",
@@ -5915,6 +6218,10 @@
59156218 "keywords": [
59166219 "timer"
59176220 ],
6221 "support": {
6222 "issues": "https://github.com/sebastianbergmann/php-timer/issues",
6223 "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
6224 },
59186225 "funding": [
59196226 {
59206227 "url": "https://github.com/sebastianbergmann",
@@ -6010,6 +6317,10 @@
60106317 "testing",
60116318 "xunit"
60126319 ],
6320 "support": {
6321 "issues": "https://github.com/sebastianbergmann/phpunit/issues",
6322 "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.4"
6323 },
60136324 "funding": [
60146325 {
60156326 "url": "https://phpunit.de/donate.html",
@@ -6066,6 +6377,10 @@
60666377 ],
60676378 "description": "Library for parsing CLI options",
60686379 "homepage": "https://github.com/sebastianbergmann/cli-parser",
6380 "support": {
6381 "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
6382 "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
6383 },
60696384 "funding": [
60706385 {
60716386 "url": "https://github.com/sebastianbergmann",
@@ -6118,6 +6433,10 @@
61186433 ],
61196434 "description": "Collection of value objects that represent the PHP code units",
61206435 "homepage": "https://github.com/sebastianbergmann/code-unit",
6436 "support": {
6437 "issues": "https://github.com/sebastianbergmann/code-unit/issues",
6438 "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
6439 },
61216440 "funding": [
61226441 {
61236442 "url": "https://github.com/sebastianbergmann",
@@ -6169,6 +6488,10 @@
61696488 ],
61706489 "description": "Looks up which function or method a line of code belongs to",
61716490 "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
6491 "support": {
6492 "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
6493 "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
6494 },
61726495 "funding": [
61736496 {
61746497 "url": "https://github.com/sebastianbergmann",
@@ -6239,6 +6562,10 @@
62396562 "compare",
62406563 "equality"
62416564 ],
6565 "support": {
6566 "issues": "https://github.com/sebastianbergmann/comparator/issues",
6567 "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
6568 },
62426569 "funding": [
62436570 {
62446571 "url": "https://github.com/sebastianbergmann",
@@ -6292,6 +6619,10 @@
62926619 ],
62936620 "description": "Library for calculating the complexity of PHP code units",
62946621 "homepage": "https://github.com/sebastianbergmann/complexity",
6622 "support": {
6623 "issues": "https://github.com/sebastianbergmann/complexity/issues",
6624 "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
6625 },
62956626 "funding": [
62966627 {
62976628 "url": "https://github.com/sebastianbergmann",
@@ -6354,6 +6685,10 @@
63546685 "unidiff",
63556686 "unified diff"
63566687 ],
6688 "support": {
6689 "issues": "https://github.com/sebastianbergmann/diff/issues",
6690 "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
6691 },
63576692 "funding": [
63586693 {
63596694 "url": "https://github.com/sebastianbergmann",
@@ -6413,6 +6748,10 @@
64136748 "environment",
64146749 "hhvm"
64156750 ],
6751 "support": {
6752 "issues": "https://github.com/sebastianbergmann/environment/issues",
6753 "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
6754 },
64166755 "funding": [
64176756 {
64186757 "url": "https://github.com/sebastianbergmann",
@@ -6486,6 +6825,10 @@
64866825 "export",
64876826 "exporter"
64886827 ],
6828 "support": {
6829 "issues": "https://github.com/sebastianbergmann/exporter/issues",
6830 "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
6831 },
64896832 "funding": [
64906833 {
64916834 "url": "https://github.com/sebastianbergmann",
@@ -6546,6 +6889,10 @@
65466889 "keywords": [
65476890 "global state"
65486891 ],
6892 "support": {
6893 "issues": "https://github.com/sebastianbergmann/global-state/issues",
6894 "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2"
6895 },
65496896 "funding": [
65506897 {
65516898 "url": "https://github.com/sebastianbergmann",
@@ -6599,6 +6946,10 @@
65996946 ],
66006947 "description": "Library for counting the lines of code in PHP source code",
66016948 "homepage": "https://github.com/sebastianbergmann/lines-of-code",
6949 "support": {
6950 "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
6951 "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
6952 },
66026953 "funding": [
66036954 {
66046955 "url": "https://github.com/sebastianbergmann",
@@ -6652,6 +7003,10 @@
66527003 ],
66537004 "description": "Traverses array structures and object graphs to enumerate all referenced objects",
66547005 "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
7006 "support": {
7007 "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
7008 "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
7009 },
66557010 "funding": [
66567011 {
66577012 "url": "https://github.com/sebastianbergmann",
@@ -6703,6 +7058,10 @@
67037058 ],
67047059 "description": "Allows reflection of object attributes, including inherited and non-public ones",
67057060 "homepage": "https://github.com/sebastianbergmann/object-reflector/",
7061 "support": {
7062 "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
7063 "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
7064 },
67067065 "funding": [
67077066 {
67087067 "url": "https://github.com/sebastianbergmann",
@@ -6762,6 +7121,10 @@
67627121 ],
67637122 "description": "Provides functionality to recursively process PHP variables",
67647123 "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
7124 "support": {
7125 "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
7126 "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
7127 },
67657128 "funding": [
67667129 {
67677130 "url": "https://github.com/sebastianbergmann",
@@ -6813,6 +7176,10 @@
68137176 ],
68147177 "description": "Provides a list of PHP built-in functions that operate on resources",
68157178 "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
7179 "support": {
7180 "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
7181 "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
7182 },
68167183 "funding": [
68177184 {
68187185 "url": "https://github.com/sebastianbergmann",
@@ -6865,6 +7232,10 @@
68657232 ],
68667233 "description": "Collection of value objects that represent the types of the PHP type system",
68677234 "homepage": "https://github.com/sebastianbergmann/type",
7235 "support": {
7236 "issues": "https://github.com/sebastianbergmann/type/issues",
7237 "source": "https://github.com/sebastianbergmann/type/tree/2.3.1"
7238 },
68687239 "funding": [
68697240 {
68707241 "url": "https://github.com/sebastianbergmann",
@@ -6914,6 +7285,10 @@
69147285 ],
69157286 "description": "Library that helps with managing the version number of Git-hosted PHP projects",
69167287 "homepage": "https://github.com/sebastianbergmann/version",
7288 "support": {
7289 "issues": "https://github.com/sebastianbergmann/version/issues",
7290 "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
7291 },
69177292 "funding": [
69187293 {
69197294 "url": "https://github.com/sebastianbergmann",
@@ -6968,6 +7343,10 @@
69687343 "Backtrace",
69697344 "spatie"
69707345 ],
7346 "support": {
7347 "issues": "https://github.com/spatie/backtrace/issues",
7348 "source": "https://github.com/spatie/backtrace/tree/1.1.0"
7349 },
69717350 "funding": [
69727351 {
69737352 "url": "https://github.com/sponsors/spatie",
@@ -6982,16 +7361,16 @@
69827361 },
69837362 {
69847363 "name": "spatie/laravel-ray",
6985 "version": "1.17.2",
7364 "version": "1.17.4",
69867365 "source": {
69877366 "type": "git",
69887367 "url": "https://github.com/spatie/laravel-ray.git",
6989 "reference": "d2c839df7742c07a2515ea7eaf18deb90b2924df"
7368 "reference": "e48be16da1952ffca868c77f509a767d3fc632bc"
69907369 },
69917370 "dist": {
69927371 "type": "zip",
6993 "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/d2c839df7742c07a2515ea7eaf18deb90b2924df",
6994 "reference": "d2c839df7742c07a2515ea7eaf18deb90b2924df",
7372 "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/e48be16da1952ffca868c77f509a767d3fc632bc",
7373 "reference": "e48be16da1952ffca868c77f509a767d3fc632bc",
69957374 "shasum": ""
69967375 },
69977376 "require": {
@@ -7044,6 +7423,10 @@
70447423 "laravel-ray",
70457424 "spatie"
70467425 ],
7426 "support": {
7427 "issues": "https://github.com/spatie/laravel-ray/issues",
7428 "source": "https://github.com/spatie/laravel-ray/tree/1.17.4"
7429 },
70477430 "funding": [
70487431 {
70497432 "url": "https://github.com/sponsors/spatie",
@@ -7054,7 +7437,7 @@
70547437 "type": "other"
70557438 }
70567439 ],
7057 "time": "2021-04-06T16:09:00+00:00"
7440 "time": "2021-04-30T08:20:24+00:00"
70587441 },
70597442 {
70607443 "name": "spatie/macroable",
@@ -7100,20 +7483,24 @@
71007483 "macroable",
71017484 "spatie"
71027485 ],
7486 "support": {
7487 "issues": "https://github.com/spatie/macroable/issues",
7488 "source": "https://github.com/spatie/macroable/tree/2.0.0"
7489 },
71037490 "time": "2021-03-26T22:39:02+00:00"
71047491 },
71057492 {
71067493 "name": "spatie/ray",
7107 "version": "1.21.3",
7494 "version": "1.22.1",
71087495 "source": {
71097496 "type": "git",
71107497 "url": "https://github.com/spatie/ray.git",
7111 "reference": "b65bdcd3f8641f93b947be55624095edb6495d7e"
7498 "reference": "e82408b78b1391eaee6c962b13c37e80080dc15a"
71127499 },
71137500 "dist": {
71147501 "type": "zip",
7115 "url": "https://api.github.com/repos/spatie/ray/zipball/b65bdcd3f8641f93b947be55624095edb6495d7e",
7116 "reference": "b65bdcd3f8641f93b947be55624095edb6495d7e",
7502 "url": "https://api.github.com/repos/spatie/ray/zipball/e82408b78b1391eaee6c962b13c37e80080dc15a",
7503 "reference": "e82408b78b1391eaee6c962b13c37e80080dc15a",
71177504 "shasum": ""
71187505 },
71197506 "require": {
@@ -7161,6 +7548,10 @@
71617548 "ray",
71627549 "spatie"
71637550 ],
7551 "support": {
7552 "issues": "https://github.com/spatie/ray/issues",
7553 "source": "https://github.com/spatie/ray/tree/1.22.1"
7554 },
71647555 "funding": [
71657556 {
71667557 "url": "https://github.com/sponsors/spatie",
@@ -7171,20 +7562,20 @@
71717562 "type": "other"
71727563 }
71737564 ],
7174 "time": "2021-04-14T09:39:40+00:00"
7565 "time": "2021-04-28T09:47:47+00:00"
71757566 },
71767567 {
71777568 "name": "symfony/stopwatch",
7178 "version": "v5.2.4",
7569 "version": "v5.2.7",
71797570 "source": {
71807571 "type": "git",
71817572 "url": "https://github.com/symfony/stopwatch.git",
7182 "reference": "b12274acfab9d9850c52583d136a24398cdf1a0c"
7573 "reference": "d99310c33e833def36419c284f60e8027d359678"
71837574 },
71847575 "dist": {
71857576 "type": "zip",
7186 "url": "https://api.github.com/repos/symfony/stopwatch/zipball/b12274acfab9d9850c52583d136a24398cdf1a0c",
7187 "reference": "b12274acfab9d9850c52583d136a24398cdf1a0c",
7577 "url": "https://api.github.com/repos/symfony/stopwatch/zipball/d99310c33e833def36419c284f60e8027d359678",
7578 "reference": "d99310c33e833def36419c284f60e8027d359678",
71887579 "shasum": ""
71897580 },
71907581 "require": {
@@ -7216,6 +7607,9 @@
72167607 ],
72177608 "description": "Provides a way to profile code",
72187609 "homepage": "https://symfony.com",
7610 "support": {
7611 "source": "https://github.com/symfony/stopwatch/tree/v5.3.0-BETA1"
7612 },
72197613 "funding": [
72207614 {
72217615 "url": "https://symfony.com/sponsor",
@@ -7230,20 +7624,20 @@
72307624 "type": "tidelift"
72317625 }
72327626 ],
7233 "time": "2021-01-27T10:15:41+00:00"
7627 "time": "2021-03-29T15:28:41+00:00"
72347628 },
72357629 {
72367630 "name": "symfony/yaml",
7237 "version": "v5.2.5",
7631 "version": "v5.2.7",
72387632 "source": {
72397633 "type": "git",
72407634 "url": "https://github.com/symfony/yaml.git",
7241 "reference": "298a08ddda623485208506fcee08817807a251dd"
7635 "reference": "76546cbeddd0a9540b4e4e57eddeec3e9bb444a5"
72427636 },
72437637 "dist": {
72447638 "type": "zip",
7245 "url": "https://api.github.com/repos/symfony/yaml/zipball/298a08ddda623485208506fcee08817807a251dd",
7246 "reference": "298a08ddda623485208506fcee08817807a251dd",
7639 "url": "https://api.github.com/repos/symfony/yaml/zipball/76546cbeddd0a9540b4e4e57eddeec3e9bb444a5",
7640 "reference": "76546cbeddd0a9540b4e4e57eddeec3e9bb444a5",
72477641 "shasum": ""
72487642 },
72497643 "require": {
@@ -7288,6 +7682,9 @@
72887682 ],
72897683 "description": "Loads and dumps YAML files",
72907684 "homepage": "https://symfony.com",
7685 "support": {
7686 "source": "https://github.com/symfony/yaml/tree/v5.2.7"
7687 },
72917688 "funding": [
72927689 {
72937690 "url": "https://symfony.com/sponsor",
@@ -7302,7 +7699,7 @@
73027699 "type": "tidelift"
73037700 }
73047701 ],
7305 "time": "2021-03-06T07:59:01+00:00"
7702 "time": "2021-04-29T20:47:09+00:00"
73067703 },
73077704 {
73087705 "name": "theseer/tokenizer",
@@ -7342,6 +7739,10 @@
73427739 }
73437740 ],
73447741 "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
7742 "support": {
7743 "issues": "https://github.com/theseer/tokenizer/issues",
7744 "source": "https://github.com/theseer/tokenizer/tree/master"
7745 },
73457746 "funding": [
73467747 {
73477748 "url": "https://github.com/theseer",
@@ -7412,6 +7813,11 @@
74127813 "parser",
74137814 "php-imap"
74147815 ],
7816 "support": {
7817 "docs": "https://mail-mime-parser.org/#usage-guide",
7818 "issues": "https://github.com/zbateson/mail-mime-parser/issues",
7819 "source": "https://github.com/zbateson/mail-mime-parser"
7820 },
74157821 "funding": [
74167822 {
74177823 "url": "https://github.com/zbateson",
@@ -7475,6 +7881,10 @@
74757881 "multibyte",
74767882 "string"
74777883 ],
7884 "support": {
7885 "issues": "https://github.com/zbateson/mb-wrapper/issues",
7886 "source": "https://github.com/zbateson/mb-wrapper/tree/1.0.1"
7887 },
74787888 "funding": [
74797889 {
74807890 "url": "https://github.com/zbateson",
@@ -7532,6 +7942,10 @@
75327942 "stream",
75337943 "uuencode"
75347944 ],
7945 "support": {
7946 "issues": "https://github.com/zbateson/stream-decorators/issues",
7947 "source": "https://github.com/zbateson/stream-decorators/tree/master"
7948 },
75357949 "funding": [
75367950 {
75377951 "url": "https://github.com/zbateson",
@@ -7550,5 +7964,5 @@
75507964 "php": "^7.0|^8.0"
75517965 },
75527966 "platform-dev": [],
7553 "plugin-api-version": "1.1.0"
7967 "plugin-api-version": "2.0.0"
75547968}
src/Models/Folder.phpmodified+22-21
Changes to src/Models/Folder.php
@@ -6,10 +6,11 @@ use Meema\MeemaClient\Client;
66use Meema\MeemaClient\Exceptions\InvalidFormatException;
77use Meema\MeemaClient\Response\Response;
88use Meema\MeemaClient\Traits\CollectionsResponse;
9use Meema\MeemaClient\Traits\ValidsUuid;
910
1011class Folder
1112{
12 use CollectionsResponse;
13 use CollectionsResponse, ValidsUuid;
1314
1415 /**
1516 * @var \Meema\MeemaClient\Client
@@ -64,8 +65,8 @@ class Folder
6465 $ids = is_array($id) ? $id : func_get_args();
6566
6667 foreach ($ids as $id) {
67 if (! is_int($id)) {
68 throw new InvalidFormatException();
68 if (! $this->isValidUuid($id)) {
69 throw new InvalidFormatException('ID is not a valid UUID');
6970 }
7071 }
7172
@@ -99,8 +100,8 @@ class Folder
99100 */
100101 public function find($id)
101102 {
102 if (! is_int($id)) {
103 throw new InvalidFormatException();
103 if (! $this->isValidUuid($id)) {
104 throw new InvalidFormatException('ID is not a valid UUID');
104105 }
105106
106107 $response = $this->client->request('GET', "folders/${id}");
@@ -138,8 +139,8 @@ class Folder
138139 */
139140 public function update($id, $name)
140141 {
141 if (! is_int($id)) {
142 throw new InvalidFormatException();
142 if (! $this->isValidUuid($id)) {
143 throw new InvalidFormatException('ID is not a valid UUID');
143144 }
144145
145146 $name = is_array($name) ? $name : compact('name');
@@ -161,8 +162,8 @@ class Folder
161162 $ids = is_array($ids) ? $ids : func_get_args();
162163
163164 foreach ($ids as $id) {
164 if (! is_int($id)) {
165 throw new InvalidFormatException();
165 if (! $this->isValidUuid($id)) {
166 throw new InvalidFormatException('ID is not a valid UUID');
166167 }
167168
168169 if ($this->model) {
@@ -194,8 +195,8 @@ class Folder
194195 $ids = is_array($ids) ? $ids : func_get_args();
195196
196197 foreach ($ids as $id) {
197 if (! is_int($id)) {
198 throw new InvalidFormatException();
198 if (! $this->isValidUuid($id)) {
199 throw new InvalidFormatException('ID is not a valid UUID');
199200 }
200201 }
201202
@@ -223,8 +224,8 @@ class Folder
223224 $ids = is_array($ids) ? $ids : func_get_args();
224225
225226 foreach ($ids as $id) {
226 if (! is_int($id)) {
227 throw new InvalidFormatException();
227 if (! $this->isValidUuid($id)) {
228 throw new InvalidFormatException('ID is not a valid UUID');
228229 }
229230 }
230231
@@ -252,8 +253,8 @@ class Folder
252253 $ids = is_array($ids) ? $ids : func_get_args();
253254
254255 foreach ($ids as $id) {
255 if (! is_int($id)) {
256 throw new InvalidFormatException();
256 if (! $this->isValidUuid($id)) {
257 throw new InvalidFormatException('ID is not a valid UUID');
257258 }
258259 }
259260
@@ -279,8 +280,8 @@ class Folder
279280 */
280281 protected function addFolderToMedia($id, $name)
281282 {
282 if (! is_int($id)) {
283 throw new InvalidFormatException();
283 if (! $this->isValidUuid($id)) {
284 throw new InvalidFormatException('ID is not a valid UUID');
284285 }
285286
286287 return $this->client->request('POST', "media/{$id}/folders", $name);
@@ -298,8 +299,8 @@ class Folder
298299 */
299300 protected function deleteFolderFromMedia($id, $folderId)
300301 {
301 if (! is_int($id) || ! is_int($folderId)) {
302 throw new InvalidFormatException();
302 if (! $this->isValidUuid($id) || ! $this->isValidUuid($folderId)) {
303 throw new InvalidFormatException('ID is not a valid UUID');
303304 }
304305
305306 return $this->client->request('DELETE', "media/{$id}/folders/{$folderId}");
@@ -362,9 +363,9 @@ class Folder
362363 /**
363364 * Get the protected id.
364365 *
365 * @return int
366 * @return string
366367 */
367 public function getId(): int
368 public function getId()
368369 {
369370 return $this->id;
370371 }
src/Models/Media.phpmodified+1-1
Changes to src/Models/Media.php
@@ -377,7 +377,7 @@ class Media
377377 /**
378378 * Get the protected id.
379379 *
380 * @return int
380 * @return string
381381 */
382382 public function getId()
383383 {
tests/ClientTest.phpmodified+1-1
Changes to tests/ClientTest.php
@@ -1,6 +1,6 @@
11<?php
22
3namespace Tests;
3namespace Meema\MeemaClient\Tests;
44
55use Meema\MeemaClient\Client;
66use Orchestra\Testbench\TestCase;
tests/MeemaFavoriteTest.phpmodified+1-1
Changes to tests/MeemaFavoriteTest.php
@@ -1,6 +1,6 @@
11<?php
22
3use Tests\ClientTest;
3use Meema\MeemaClient\Tests\ClientTest;
44
55uses(ClientTest::class);
66
tests/MeemaFolderTest.phpmodified+22-8
Changes to tests/MeemaFolderTest.php
@@ -1,6 +1,6 @@
11<?php
22
3use Tests\ClientTest;
3use Meema\MeemaClient\Tests\ClientTest;
44
55uses(ClientTest::class);
66
@@ -17,7 +17,9 @@ it('can fetch all folders', function () {
1717});
1818
1919it('can search a folder', function () {
20 $folder = $this->client->folders()->find(1)->toArray();
20 $folders = $this->client->folders()->get();
21
22 $folder = $this->client->folders()->find($folders[0]['id'])->toArray();
2123
2224 $query = $folder['name'];
2325
@@ -28,7 +30,9 @@ it('can search a folder', function () {
2830});
2931
3032it('can fetch specific group of folders', function () {
31 $ids = [1, 2, 3];
33 $folders = $this->client->folders()->get();
34
35 $ids = [$folders[0]['id'], $folders[1]['id'], $folders[2]['id']];
3236
3337 $folders = $this->client->folders()->get($ids);
3438
@@ -37,7 +41,9 @@ it('can fetch specific group of folders', function () {
3741});
3842
3943it('can find a single folder', function () {
40 $id = 1;
44 $folders = $this->client->folders()->get();
45
46 $id = $folders[0]['id'];
4147
4248 $folders = $this->client->folders()->find($id)->toArray();
4349
@@ -55,30 +61,38 @@ it('can create a folder', function () {
5561});
5662
5763it('can update a folder', function () {
64 $folders = $this->client->folders()->get();
65
5866 $name = 'test folder';
5967
60 $folders = $this->client->folders()->update(1, $name);
68 $folders = $this->client->folders()->update($folders[0]['id'], $name);
6169
6270 $this->assertTrue(is_array($folders));
6371 $this->assertTrue($folders['name'] === $name);
6472});
6573
6674it('can archive a folder', function () {
67 $folders = $this->client->folders()->archive(1);
75 $folders = $this->client->folders()->get();
76
77 $folders = $this->client->folders()->archive($folders[0]['id']);
6878
6979 $this->assertTrue(is_array($folders));
7080 $this->assertTrue((bool) $folders['is_archived']);
7181});
7282
7383it('can unarchive a folder', function () {
74 $folders = $this->client->folders()->unarchive(1);
84 $folders = $this->client->folders()->get();
85
86 $folders = $this->client->folders()->unarchive($folders[0]['id']);
7587
7688 $this->assertTrue(is_array($folders));
7789 $this->assertFalse((bool) $folders['is_archived']);
7890});
7991
8092it('can duplicate a folder', function () {
81 $folders = $this->client->folders()->find(1);
93 $folders = $this->client->folders()->get();
94
95 $folders = $this->client->folders()->find($folders[0]['id']);
8296
8397 $duplicated = $folders->duplicate();
8498
tests/MeemaMediaTest.phpmodified+34-13
Changes to tests/MeemaMediaTest.php
@@ -1,6 +1,6 @@
11<?php
22
3use Tests\ClientTest;
3use Meema\MeemaClient\Tests\ClientTest;
44
55uses(ClientTest::class);
66
@@ -17,7 +17,9 @@ it('can be fetch all media', function () {
1717});
1818
1919it('can search a media', function () {
20 $media = $this->client->media()->find(1)->toArray();
20 $allMedia = $this->client->media()->get();
21
22 $media = $this->client->media()->find($allMedia[0]['id'])->toArray();
2123 $query = $media['name'];
2224
2325 $media = $this->client->media()->search($query);
formatting only · 7 hidden lines
Changes to tests/MeemaMediaTest.php
@@ -27,6 +29,7 @@ it('can search a media', function () { formatting only
2729});
2830
2931it('can be fetch all media for a tag', function () {
32
3033 // 8 is the tag id for images
3134 $tag = $this->client->tags()->find(8);
3235
Changes to tests/MeemaMediaTest.php
@@ -37,8 +40,10 @@ it('can be fetch all media for a tag', function () {
3740});
3841
3942it('can be fetch all media for a folder', function () {
43 $allFolders = $this->client->folders()->get();
44
4045 // 8 is the tag id for images
41 $folder = $this->client->folders()->find(1);
46 $folder = $this->client->folders()->find($allFolders[0]['id']);
4247
4348 $media = $folder->media()->get();
4449
@@ -47,7 +52,9 @@ it('can be fetch all media for a folder', function () {
4752});
4853
4954it('can be fetch specific group of media', function () {
50 $ids = [1, 2, 3];
55 $allMedia = $this->client->media()->get();
56
57 $ids = [$allMedia[0]['id'], $allMedia[1]['id'], $allMedia[2]['id']];
5158
5259 $media = $this->client->media()->get($ids);
5360
@@ -56,7 +63,9 @@ it('can be fetch specific group of media', function () {
5663});
5764
5865it('can find a single media', function () {
59 $id = 1;
66 $allMedia = $this->client->media()->get();
67
68 $id = $allMedia[0]['id'];
6069
6170 $media = $this->client->media()->find($id)->toArray();
6271
@@ -65,46 +74,58 @@ it('can find a single media', function () {
6574});
6675
6776it('can update a media', function () {
77 $allMedia = $this->client->media()->get();
78
6879 $name = 'test media';
6980
70 $media = $this->client->media()->update(1, $name);
81 $media = $this->client->media()->update($allMedia[0]['id'], $name);
7182
7283 $this->assertTrue(is_array($media));
7384 $this->assertTrue($media['name'] === $name);
7485});
7586
7687it('can archive a media', function () {
77 $media = $this->client->media()->archive(1);
88 $allMedia = $this->client->media()->get();
89
90 $media = $this->client->media()->archive($allMedia[0]['id']);
7891
7992 $this->assertTrue(is_array($media));
8093 $this->assertTrue((bool) $media['is_archived']);
8194});
8295
8396it('can unarchive a media', function () {
84 $media = $this->client->media()->unarchive(1);
97 $allMedia = $this->client->media()->get();
98
99 $media = $this->client->media()->unarchive($allMedia[0]['id']);
85100
86101 $this->assertTrue(is_array($media));
87102 $this->assertFalse((bool) $media['is_archived']);
88103});
89104
90105it('can make a media private', function () {
91 $media = $this->client->media()->makePrivate(1);
106 $allMedia = $this->client->media()->get();
107
108 $media = $this->client->media()->makePrivate($allMedia[0]['id']);
92109
93110 $this->assertTrue(is_array($media));
94111 $this->assertFalse((bool) $media['is_public']);
95112});
96113
97114it('can make a media public', function () {
98 $media = $this->client->media()->makePublic(1);
115 $allMedia = $this->client->media()->get();
116
117 $media = $this->client->media()->makePublic($allMedia[0]['id']);
99118
100119 $this->assertTrue(is_array($media));
101120 $this->assertTrue((bool) $media['is_public']);
102121});
103122
104123it('can duplicate a media', function () {
105 $media = $this->client->media()->find(1);
124 $allMedia = $this->client->media()->get();
125
126 $media = $this->client->media()->find($allMedia[0]['id']);
106127
107 $duplicated = $this->client->media()->duplicate(1);
128 $duplicated = $this->client->media()->duplicate($allMedia[0]['id']);
108129
109130 $this->assertTrue(is_array($duplicated));
110131 $this->assertTrue($duplicated['name'] === $media->toArray()['name']);
@@ -114,7 +135,7 @@ it('can delete a media', function () {
114135 $media = $this->client->media()->get();
115136
116137 $media = array_reverse($media);
117 $response = $this->client->media()->delete((int) $media[0]['media_id']);
138 $response = $this->client->media()->delete($media[0]['id']);
118139
119140 $this->assertTrue(is_null($response));
120141});
tests/MeemaTagTest.phpmodified+8-3
Changes to tests/MeemaTagTest.php
@@ -1,6 +1,6 @@
11<?php
22
3use Tests\ClientTest;
3use Meema\MeemaClient\Tests\ClientTest;
44
55uses(ClientTest::class);
66
@@ -53,7 +53,10 @@ it('can delete a tag', function () {
5353});
5454
5555it('can fetch all media tags', function () {
56 $media = $this->client->media()->find(1);
56 $allMedia = $this->client->media()->get();
57
58 $media = $this->client->media()->find($allMedia[0]['id']);
59
5760 $tags = $media->tags()->get();
5861
5962 $this->assertTrue(is_array($tags));
@@ -61,7 +64,9 @@ it('can fetch all media tags', function () {
6164});
6265
6366it('can fetch all folder tags', function () {
64 $folder = $this->client->folders()->find(1);
67 $folders = $this->client->folders()->get();
68
69 $folder = $this->client->folders()->find($folders[0]['id']);
6570 $tags = $folder->tags()->get();
6671
6772 $this->assertTrue(is_array($tags));
tests/Pest.phpmodified+1-1
Changes to tests/Pest.php
@@ -1,5 +1,5 @@
11<?php
22
3use Tests\ClientTest;
3use Meema\MeemaClient\Tests\ClientTest;
44
55uses(ClientTest::class);