From 0dc9767fa1fb5ac520f2893c5a23f53c194d71f6 Mon Sep 17 00:00:00 2001 From: brufdev Date: Sun, 26 Jan 2025 20:04:43 +0000 Subject: [PATCH] Add PHP_CodeSniffer --- composer.json | 3 +- composer.lock | 128 +++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 109 insertions(+), 22 deletions(-) diff --git a/composer.json b/composer.json index 104e1a8..b61c79a 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,8 @@ "mockery/mockery": "^1.6", "nunomaduro/collision": "^8.0", "pestphp/pest": "^3.7", - "rector/rector": "^2.0" + "rector/rector": "^2.0", + "squizlabs/php_codesniffer": "^3.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index c1d14f8..d652ee7 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": "0ef5cfd38f7de11b01795e8f997621d7", + "content-hash": "1f5a58f5db5df35d3406af57da363dd4", "packages": [ { "name": "brick/math", @@ -512,16 +512,16 @@ }, { "name": "firebase/php-jwt", - "version": "v6.10.2", + "version": "v6.11.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b" + "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b", - "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712", + "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712", "shasum": "" }, "require": { @@ -569,9 +569,9 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.10.2" + "source": "https://github.com/firebase/php-jwt/tree/v6.11.0" }, - "time": "2024-11-24T11:22:49+00:00" + "time": "2025-01-23T05:11:06+00:00" }, { "name": "fruitcake/php-cors", @@ -1119,16 +1119,16 @@ }, { "name": "laravel/framework", - "version": "v11.39.1", + "version": "v11.40.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "3d693dd36e78121bcd51fc02eda4bc137d2a17f2" + "reference": "599a28196d284fee158cc10086fd56ac625ad7a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/3d693dd36e78121bcd51fc02eda4bc137d2a17f2", - "reference": "3d693dd36e78121bcd51fc02eda4bc137d2a17f2", + "url": "https://api.github.com/repos/laravel/framework/zipball/599a28196d284fee158cc10086fd56ac625ad7a3", + "reference": "599a28196d284fee158cc10086fd56ac625ad7a3", "shasum": "" }, "require": { @@ -1154,7 +1154,7 @@ "league/flysystem-local": "^3.25.1", "league/uri": "^7.5.1", "monolog/monolog": "^3.0", - "nesbot/carbon": "^2.72.2|^3.4", + "nesbot/carbon": "^2.72.6|^3.8.4", "nunomaduro/termwind": "^2.0", "php": "^8.2", "psr/container": "^1.1.1|^2.0.1", @@ -1229,6 +1229,7 @@ "fakerphp/faker": "^1.24", "guzzlehttp/promises": "^2.0.3", "guzzlehttp/psr7": "^2.4", + "laravel/pint": "^1.18", "league/flysystem-aws-s3-v3": "^3.25.1", "league/flysystem-ftp": "^3.25.1", "league/flysystem-path-prefixing": "^3.25.1", @@ -1329,7 +1330,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2025-01-22T17:01:46+00:00" + "time": "2025-01-24T16:17:42+00:00" }, { "name": "laravel/prompts", @@ -4029,16 +4030,16 @@ }, { "name": "staudenmeir/laravel-adjacency-list", - "version": "v1.23.1", + "version": "v1.23.2", "source": { "type": "git", "url": "https://github.com/staudenmeir/laravel-adjacency-list.git", - "reference": "3c4c0d964e8e4f2669d0917917c87ad61d2f0017" + "reference": "3518f87e840fcdcbd2d958eb9c0f402f003bd7cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/staudenmeir/laravel-adjacency-list/zipball/3c4c0d964e8e4f2669d0917917c87ad61d2f0017", - "reference": "3c4c0d964e8e4f2669d0917917c87ad61d2f0017", + "url": "https://api.github.com/repos/staudenmeir/laravel-adjacency-list/zipball/3518f87e840fcdcbd2d958eb9c0f402f003bd7cd", + "reference": "3518f87e840fcdcbd2d958eb9c0f402f003bd7cd", "shasum": "" }, "require": { @@ -4050,9 +4051,10 @@ "require-dev": { "barryvdh/laravel-ide-helper": "^3.0", "harrygulliford/laravel-firebird": "^3.3", - "larastan/larastan": "2.9.8", + "larastan/larastan": "^3.0", + "laravel/framework": "^11.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench": "^9.0", + "orchestra/testbench-core": "^9.5", "phpunit/phpunit": "^11.0", "singlestoredb/singlestoredb-laravel": "^1.5.4", "staudenmeir/eloquent-has-many-deep": "^1.20" @@ -4086,7 +4088,7 @@ "description": "Recursive Laravel Eloquent relationships with CTEs", "support": { "issues": "https://github.com/staudenmeir/laravel-adjacency-list/issues", - "source": "https://github.com/staudenmeir/laravel-adjacency-list/tree/v1.23.1" + "source": "https://github.com/staudenmeir/laravel-adjacency-list/tree/v1.23.2" }, "funding": [ { @@ -4094,7 +4096,7 @@ "type": "custom" } ], - "time": "2024-11-03T10:47:29+00:00" + "time": "2025-01-25T13:09:10+00:00" }, { "name": "staudenmeir/laravel-cte", @@ -9936,6 +9938,90 @@ ], "time": "2024-10-09T05:16:32+00:00" }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.11.3", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", + "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", + "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" + }, + "bin": [ + "bin/phpcbf", + "bin/phpcs" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "Former lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "Current lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues", + "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy", + "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer", + "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + }, + { + "url": "https://thanks.dev/phpcsstandards", + "type": "thanks_dev" + } + ], + "time": "2025-01-23T17:04:15+00:00" + }, { "name": "staabm/side-effects-detector", "version": "1.0.5",