From ad7bdbdd2a0d87fe2ad76eca647d22c0e2882ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 29 Mar 2024 12:41:10 +0100 Subject: [PATCH] bump slevmatic phpcs + phpcbf --- app/Http/Controllers/ContactController.php | 2 +- composer.json | 2 +- composer.lock | 28 +++++++++++----------- routes/web.php | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index 0655c84..fc7d95a 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -48,6 +48,6 @@ class ContactController extends Controller $lang = session()->get('lang', config('app.locale')); return redirect()->route(session()->get('lang', config('app.locale')) === 'fr' ? 'contact' : $lang . ".contact") - ->with('status', true); + ->with('status', true); } } diff --git a/composer.json b/composer.json index 4fbe4cd..e3483ec 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^5.10", "phpunit/phpunit": "^9.5.10", - "slevomat/coding-standard": "^7.0" + "slevomat/coding-standard": "^8.5" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index d7e9de8..7771fe6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "02aed65414b58c60023b9eafb323a1ec", + "content-hash": "ebab47760b3f534c17a2feadd9b38035", "packages": [ { "name": "asm89/stack-cors", @@ -9322,37 +9322,37 @@ }, { "name": "slevomat/coding-standard", - "version": "7.2.1", + "version": "8.5.2", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90" + "reference": "f32937dc41b587f3500efed1dbca2f82aa519373" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/aff06ae7a84e4534bf6f821dc982a93a5d477c90", - "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/f32937dc41b587f3500efed1dbca2f82aa519373", + "reference": "f32937dc41b587f3500efed1dbca2f82aa519373", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": "^1.5.1", - "squizlabs/php_codesniffer": "^3.6.2" + "phpstan/phpdoc-parser": ">=1.7.0 <1.9.0", + "squizlabs/php_codesniffer": "^3.7.1" }, "require-dev": { - "phing/phing": "2.17.3", + "phing/phing": "2.17.4", "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.4.10|1.7.1", + "phpstan/phpstan": "1.4.10|1.8.6", "phpstan/phpstan-deprecation-rules": "1.0.0", "phpstan/phpstan-phpunit": "1.0.0|1.1.1", - "phpstan/phpstan-strict-rules": "1.2.3", - "phpunit/phpunit": "7.5.20|8.5.21|9.5.20" + "phpstan/phpstan-strict-rules": "1.4.4", + "phpunit/phpunit": "7.5.20|8.5.21|9.5.25" }, "type": "phpcodesniffer-standard", "extra": { "branch-alias": { - "dev-master": "7.x-dev" + "dev-master": "8.x-dev" } }, "autoload": { @@ -9367,7 +9367,7 @@ "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.2.1" + "source": "https://github.com/slevomat/coding-standard/tree/8.5.2" }, "funding": [ { @@ -9379,7 +9379,7 @@ "type": "tidelift" } ], - "time": "2022-05-25T10:58:12+00:00" + "time": "2022-09-27T16:45:37+00:00" }, { "name": "squizlabs/php_codesniffer", diff --git a/routes/web.php b/routes/web.php index 8b149f6..f3ea148 100644 --- a/routes/web.php +++ b/routes/web.php @@ -114,7 +114,7 @@ Route::prefix('bo') } ); -if(!app()->runningInConsole()) { +if (!app()->runningInConsole()) { $langs = ['en', 'es', '']; foreach ($langs as $lang) { @@ -170,4 +170,4 @@ if(!app()->runningInConsole()) { } ); }//end foreach -} \ No newline at end of file +}//end if