NOW MANAGED ON CODEBERG
Updated composer deps, applied StyleCI changes
Dan Brown0bb5654f80a8
diff --git a/app/Actions/TagClassGenerator.php b/app/Actions/TagClassGenerator.phpindex 997ace838..7173b30a7 100644--- a/app/Actions/TagClassGenerator.php+++ b/app/Actions/TagClassGenerator.php@@ -4,7 +4,6 @@ namespace BookStack\Actions;class TagClassGenerator{-protected array $tags;/**@@ -44,7 +43,7 @@ class TagClassGenerator{$value = str_replace(' ', '', strtolower($value));$value = str_replace('-', '', strtolower($value));+return $value;}--}\ No newline at end of file+}diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.phpindex 9a2f2c867..3110f1a98 100644--- a/app/Http/Controllers/UserController.php+++ b/app/Http/Controllers/UserController.php@@ -293,7 +293,7 @@ class UserController extends Controller{$validated = $this->validate($request, ['language' => ['required', 'string', 'max:20'],- 'active' => ['required', 'bool'],+ 'active' => ['required', 'bool'],]);$currentFavoritesStr = setting()->getForCurrentUser('code-language-favourites', '');@@ -302,7 +302,7 @@ class UserController extends Controller$isFav = in_array($validated['language'], $currentFavorites);if (!$isFav && $validated['active']) {$currentFavorites[] = $validated['language'];- } else if ($isFav && !$validated['active']) {+ } elseif ($isFav && !$validated['active']) {$index = array_search($validated['language'], $currentFavorites);array_splice($currentFavorites, $index, 1);}diff --git a/composer.lock b/composer.lockindex 9cd171488..6118ee4e8 100644--- a/composer.lock+++ b/composer.lock@@ -58,16 +58,16 @@},{"name": "aws/aws-sdk-php",- "version": "3.231.7",+ "version": "3.231.14","source": {"type": "git","url": "https://github.com/aws/aws-sdk-php.git",- "reference": "25f7cf72a1d7cf3075436cfbfdc4caed201df3ec"+ "reference": "6b79b9c8204813d9674ffa7badcd567d7f608165"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/25f7cf72a1d7cf3075436cfbfdc4caed201df3ec",- "reference": "25f7cf72a1d7cf3075436cfbfdc4caed201df3ec",+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/6b79b9c8204813d9674ffa7badcd567d7f608165",+ "reference": "6b79b9c8204813d9674ffa7badcd567d7f608165","shasum": ""},"require": {@@ -144,9 +144,9 @@"support": {"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80","issues": "https://github.com/aws/aws-sdk-php/issues",- "source": "https://github.com/aws/aws-sdk-php/tree/3.231.7"+ "source": "https://github.com/aws/aws-sdk-php/tree/3.231.14"},- "time": "2022-07-15T18:16:42+00:00"+ "time": "2022-07-26T18:20:14+00:00"},{"name": "bacon/bacon-qr-code",@@ -1787,16 +1787,16 @@},{"name": "laravel/framework",- "version": "v8.83.19",+ "version": "v8.83.23","source": {"type": "git","url": "https://github.com/laravel/framework.git",- "reference": "4264f2ee12330bdb1be050998f58ba7271236395"+ "reference": "bdc707f8b9bcad289b24cd182d98ec7480ac4491"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/framework/zipball/4264f2ee12330bdb1be050998f58ba7271236395",- "reference": "4264f2ee12330bdb1be050998f58ba7271236395",+ "url": "https://api.github.com/repos/laravel/framework/zipball/bdc707f8b9bcad289b24cd182d98ec7480ac4491",+ "reference": "bdc707f8b9bcad289b24cd182d98ec7480ac4491","shasum": ""},"require": {@@ -1956,7 +1956,7 @@"issues": "https://github.com/laravel/framework/issues","source": "https://github.com/laravel/framework"},- "time": "2022-07-13T13:23:09+00:00"+ "time": "2022-07-26T13:30:00+00:00"},{"name": "laravel/serializable-closure",@@ -2019,28 +2019,28 @@},{"name": "laravel/socialite",- "version": "v5.5.2",+ "version": "v5.5.3","source": {"type": "git","url": "https://github.com/laravel/socialite.git",- "reference": "68afb03259b82d898c68196cbcacd48596a9dd72"+ "reference": "9dfc76b31ee041c45a7cae86f23339784abde46d"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/socialite/zipball/68afb03259b82d898c68196cbcacd48596a9dd72",- "reference": "68afb03259b82d898c68196cbcacd48596a9dd72",+ "url": "https://api.github.com/repos/laravel/socialite/zipball/9dfc76b31ee041c45a7cae86f23339784abde46d",+ "reference": "9dfc76b31ee041c45a7cae86f23339784abde46d","shasum": ""},"require": {"ext-json": "*","guzzlehttp/guzzle": "^6.0|^7.0",+ "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0","illuminate/http": "^6.0|^7.0|^8.0|^9.0","illuminate/support": "^6.0|^7.0|^8.0|^9.0",- "league/oauth1-client": "^1.0",+ "league/oauth1-client": "^1.10.1","php": "^7.2|^8.0"},"require-dev": {- "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0","mockery/mockery": "^1.0","orchestra/testbench": "^4.0|^5.0|^6.0|^7.0","phpunit/phpunit": "^8.0|^9.3"@@ -2084,7 +2084,7 @@"issues": "https://github.com/laravel/socialite/issues","source": "https://github.com/laravel/socialite"},- "time": "2022-03-10T15:26:19+00:00"+ "time": "2022-07-18T13:51:19+00:00"},{"name": "laravel/tinker",@@ -2829,16 +2829,16 @@},{"name": "monolog/monolog",- "version": "2.7.0",+ "version": "2.8.0","source": {"type": "git","url": "https://github.com/Seldaek/monolog.git",- "reference": "5579edf28aee1190a798bfa5be8bc16c563bd524"+ "reference": "720488632c590286b88b80e62aa3d3d551ad4a50"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/5579edf28aee1190a798bfa5be8bc16c563bd524",- "reference": "5579edf28aee1190a798bfa5be8bc16c563bd524",+ "url": "https://api.github.com/repos/Seldaek/monolog/zipball/720488632c590286b88b80e62aa3d3d551ad4a50",+ "reference": "720488632c590286b88b80e62aa3d3d551ad4a50","shasum": ""},"require": {@@ -2858,11 +2858,10 @@"guzzlehttp/psr7": "^2.2","mongodb/mongodb": "^1.8","php-amqplib/php-amqplib": "~2.4 || ^3",- "php-console/php-console": "^3.1.3","phpspec/prophecy": "^1.15","phpstan/phpstan": "^0.12.91","phpunit/phpunit": "^8.5.14",- "predis/predis": "^1.1",+ "predis/predis": "^1.1 || ^2.0","rollbar/rollbar": "^1.3 || ^2 || ^3","ruflin/elastica": "^7","swiftmailer/swiftmailer": "^5.3|^6.0",@@ -2882,7 +2881,6 @@"graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server","mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)","php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",- "php-console/php-console": "Allow sending log messages to Google Chrome","rollbar/rollbar": "Allow sending log messages to Rollbar","ruflin/elastica": "Allow sending log messages to an Elastic Search server"},@@ -2917,7 +2915,7 @@],"support": {"issues": "https://github.com/Seldaek/monolog/issues",- "source": "https://github.com/Seldaek/monolog/tree/2.7.0"+ "source": "https://github.com/Seldaek/monolog/tree/2.8.0"},"funding": [{@@ -2929,7 +2927,7 @@"type": "tidelift"}],- "time": "2022-06-09T08:59:12+00:00"+ "time": "2022-07-24T11:55:47+00:00"},{"name": "mtdowling/jmespath.php",@@ -7513,16 +7511,16 @@"packages-dev": [{"name": "composer/ca-bundle",- "version": "1.3.2",+ "version": "1.3.3","source": {"type": "git","url": "https://github.com/composer/ca-bundle.git",- "reference": "fd5dd441932a7e10ca6e5b490e272d34c8430640"+ "reference": "30897edbfb15e784fe55587b4f73ceefd3c4d98c"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/composer/ca-bundle/zipball/fd5dd441932a7e10ca6e5b490e272d34c8430640",- "reference": "fd5dd441932a7e10ca6e5b490e272d34c8430640",+ "url": "https://api.github.com/repos/composer/ca-bundle/zipball/30897edbfb15e784fe55587b4f73ceefd3c4d98c",+ "reference": "30897edbfb15e784fe55587b4f73ceefd3c4d98c","shasum": ""},"require": {@@ -7569,7 +7567,7 @@"support": {"irc": "irc://irc.freenode.org/composer","issues": "https://github.com/composer/ca-bundle/issues",- "source": "https://github.com/composer/ca-bundle/tree/1.3.2"+ "source": "https://github.com/composer/ca-bundle/tree/1.3.3"},"funding": [{@@ -7585,7 +7583,7 @@"type": "tidelift"}],- "time": "2022-05-24T11:56:16+00:00"+ "time": "2022-07-20T07:14:26+00:00"},{"name": "composer/composer",@@ -8189,16 +8187,16 @@},{"name": "fakerphp/faker",- "version": "v1.19.0",+ "version": "v1.20.0","source": {"type": "git","url": "https://github.com/FakerPHP/Faker.git",- "reference": "d7f08a622b3346766325488aa32ddc93ccdecc75"+ "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/d7f08a622b3346766325488aa32ddc93ccdecc75",- "reference": "d7f08a622b3346766325488aa32ddc93ccdecc75",+ "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/37f751c67a5372d4e26353bd9384bc03744ec77b",+ "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b","shasum": ""},"require": {@@ -8225,7 +8223,7 @@"type": "library","extra": {"branch-alias": {- "dev-main": "v1.19-dev"+ "dev-main": "v1.20-dev"}},"autoload": {@@ -8250,9 +8248,9 @@],"support": {"issues": "https://github.com/FakerPHP/Faker/issues",- "source": "https://github.com/FakerPHP/Faker/tree/v1.19.0"+ "source": "https://github.com/FakerPHP/Faker/tree/v1.20.0"},- "time": "2022-02-02T17:38:57+00:00"+ "time": "2022-07-20T13:12:54+00:00"},{"name": "hamcrest/hamcrest-php",@@ -9099,16 +9097,16 @@},{"name": "phpstan/phpstan",- "version": "1.8.1",+ "version": "1.8.2","source": {"type": "git","url": "https://github.com/phpstan/phpstan.git",- "reference": "8dbba631fa32f4b289404469c2afd6122fd61d67"+ "reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8dbba631fa32f4b289404469c2afd6122fd61d67",- "reference": "8dbba631fa32f4b289404469c2afd6122fd61d67",+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c53312ecc575caf07b0e90dee43883fdf90ca67c",+ "reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c","shasum": ""},"require": {@@ -9134,7 +9132,7 @@"description": "PHPStan - PHP Static Analysis Tool","support": {"issues": "https://github.com/phpstan/phpstan/issues",- "source": "https://github.com/phpstan/phpstan/tree/1.8.1"+ "source": "https://github.com/phpstan/phpstan/tree/1.8.2"},"funding": [{@@ -9154,7 +9152,7 @@"type": "tidelift"}],- "time": "2022-07-12T16:08:06+00:00"+ "time": "2022-07-20T09:57:31+00:00"},{"name": "phpunit/php-code-coverage",diff --git a/tests/TestCase.php b/tests/TestCase.phpindex 9ffce917e..92ae33a4e 100644--- a/tests/TestCase.php+++ b/tests/TestCase.php@@ -435,9 +435,9 @@ abstract class TestCase extends BaseTestCaseprotected function getEachEntityType(): array{return [- 'page' => Page::query()->first(),- 'chapter' => Chapter::query()->first(),- 'book' => Book::query()->first(),+ 'page' => Page::query()->first(),+ 'chapter' => Chapter::query()->first(),+ 'book' => Book::query()->first(),'bookshelf' => Bookshelf::query()->first(),];}diff --git a/tests/Uploads/AvatarTest.php b/tests/Uploads/AvatarTest.phpindex 3e27e5344..eeaae09dc 100644--- a/tests/Uploads/AvatarTest.php+++ b/tests/Uploads/AvatarTest.php@@ -86,7 +86,7 @@ class AvatarTest extends TestCase{config()->set(['services.disable_services' => false,- 'services.avatar_url' => false,+ 'services.avatar_url' => false,]);$user = User::factory()->make();