diff --git a/.github/workflows/run-tests-with-coverage.yml b/.github/workflows/run-tests-with-coverage.yml index 6946be3..36ab86e 100644 --- a/.github/workflows/run-tests-with-coverage.yml +++ b/.github/workflows/run-tests-with-coverage.yml @@ -37,7 +37,7 @@ jobs: redis: image: redis:7.2 env: - ALLOW_EMPTY_PASSWORD: yes + ALLOW_EMPTY_PASSWORD: "yes" ports: - 6379:6379 options: >- diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php deleted file mode 100644 index f4a5208..0000000 --- a/.php-cs-fixer.dist.php +++ /dev/null @@ -1,23 +0,0 @@ -exclude(['docker', 'k8s', 'vendor', 'bootstrap/cache']) - ->notPath(['_ide_helper.php', '_ide_helper_models.php', 'tests/fixtures/InitCommandTest/migration.php']) - ->in(__DIR__); - -$config = new PhpCsFixer\Config(); - -return $config - ->setRules([ - '@PSR12' => true, - 'array_syntax' => ['syntax' => 'short'], - 'type_declaration_spaces' => [ - 'elements' => ['function', 'property'], - ], - 'no_extra_blank_lines' => true, - 'blank_line_before_statement' => [ - 'statements' => ['return'], - ], - 'trailing_comma_in_multiline' => true, - ]) - ->setFinder($finder); diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 7fb8c9a..9e92d26 100755 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -139,7 +139,7 @@ protected function fillReadme(): void $type = $this->choice( question: 'What type of application will your API serve?', choices: ['Mobile', 'Web', 'Multiplatform'], - default: 'Multiplatform' + default: 'Multiplatform', ); $this->setReadmeValue($file, 'type', $type); @@ -162,12 +162,12 @@ protected function fillResources(): void foreach (self::RESOURCES_ITEMS as $key => $title) { $defaultAnswer = (in_array($key, self::DEFAULT_URLS)) ? $this->appUrl . "/{$key}" : 'later'; $text = "Are you going to use {$title}? " - . "Please enter a link or select `later` to do it later, otherwise select `no`."; + . 'Please enter a link or select `later` to do it later, otherwise select `no`.'; $link = $this->anticipate( $text, ['later', 'no'], - $defaultAnswer + $defaultAnswer, ); if ($link === 'later') { diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index bd72bd3..c3b679e 100755 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -8,15 +8,15 @@ use App\Http\Requests\Auth\RefreshTokenRequest; use App\Http\Requests\Auth\RegisterUserRequest; use App\Http\Requests\Auth\RestorePasswordRequest; -use App\Http\Resources\Auth\SuccessLoginResource; use App\Http\Resources\Auth\RefreshTokenResource; -use Illuminate\Http\Response; +use App\Http\Resources\Auth\SuccessLoginResource; use App\Services\UserService; use App\Traits\TokenTrait; +use Illuminate\Http\Response; use Illuminate\Support\Facades\Password; -use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; use PHPOpenSourceSaver\JWTAuth\Exceptions\JWTException; use PHPOpenSourceSaver\JWTAuth\JWTAuth; +use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; class AuthController extends Controller diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 5eeda9d..6616dfa 100755 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -5,8 +5,8 @@ use App\Http\Requests\Setting\GetSettingRequest; use App\Http\Requests\Setting\SearchSettingRequest; use App\Http\Requests\Setting\UpdateSettingRequest; -use App\Http\Resources\Setting\SettingsCollectionResource; use App\Http\Resources\Setting\SettingResource; +use App\Http\Resources\Setting\SettingsCollectionResource; use App\Services\SettingService; use Illuminate\Http\Response; @@ -23,7 +23,7 @@ public function update(UpdateSettingRequest $request, SettingService $service, s { $service->update( ['name' => $key], - ['value' => $request->all()] + ['value' => $request->all()], ); return response('', Response::HTTP_NO_CONTENT); diff --git a/app/Models/Role.php b/app/Models/Role.php index 85a4c85..65cf817 100755 --- a/app/Models/Role.php +++ b/app/Models/Role.php @@ -8,8 +8,8 @@ class Role extends Model { - use ModelTrait; use HasFactory; + use ModelTrait; public const ADMIN = 1; public const USER = 2; diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index c7c7cf3..102b8df 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -4,9 +4,9 @@ use App\Enums\VersionEnum; use Illuminate\Routing\Route; +use Illuminate\Routing\RouteRegistrar; use Illuminate\Support\Facades\Route as RouteFacade; use Illuminate\Support\ServiceProvider; -use Illuminate\Routing\RouteRegistrar; class AppServiceProvider extends ServiceProvider { @@ -15,13 +15,13 @@ public function boot(): void /** * Specify that the route version must be in the range of given values inclusive. * - * @param VersionEnum|null $start - * @param VersionEnum|null $end - * @param string|null $param (default is 'version') - * @param Route|null $instance + * @param VersionEnum|null $start + * @param VersionEnum|null $end + * @param string|null $param (default is 'version') + * @param Route|null $instance * @return Route|RouteRegistrar */ - $versionRange = function (?VersionEnum $start, ?VersionEnum $end, ?string $param, Route $instance = null) { + $versionRange = function (?VersionEnum $start, ?VersionEnum $end, ?string $param, ?Route $instance = null) { if (!$param) { $param = 'version'; } diff --git a/app/Repositories/RoleRepository.php b/app/Repositories/RoleRepository.php index 8c2e8fd..06a2013 100755 --- a/app/Repositories/RoleRepository.php +++ b/app/Repositories/RoleRepository.php @@ -6,8 +6,8 @@ use RonasIT\Support\Repositories\BaseRepository; /** - * @property Role $model -*/ + * @property Role $model + */ class RoleRepository extends BaseRepository { public function __construct() diff --git a/app/Repositories/SettingRepository.php b/app/Repositories/SettingRepository.php index 6ee9526..b2465bf 100755 --- a/app/Repositories/SettingRepository.php +++ b/app/Repositories/SettingRepository.php @@ -7,8 +7,8 @@ use RonasIT\Support\Repositories\BaseRepository; /** - * @property Setting $model -*/ + * @property Setting $model + */ class SettingRepository extends BaseRepository { public function __construct() diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php index 4c38481..33fc142 100755 --- a/app/Repositories/UserRepository.php +++ b/app/Repositories/UserRepository.php @@ -3,12 +3,11 @@ namespace App\Repositories; use App\Models\User; -use Carbon\Carbon; use RonasIT\Support\Repositories\BaseRepository; /** - * @property User $model -*/ + * @property User $model + */ class UserRepository extends BaseRepository { public function __construct() diff --git a/app/Services/RoleService.php b/app/Services/RoleService.php index 7c57fc7..555375b 100755 --- a/app/Services/RoleService.php +++ b/app/Services/RoleService.php @@ -8,6 +8,7 @@ /** * @property RoleRepository $repository + * * @mixin RoleRepository */ class RoleService extends EntityService diff --git a/app/Services/SettingService.php b/app/Services/SettingService.php index 6095f67..0574b29 100755 --- a/app/Services/SettingService.php +++ b/app/Services/SettingService.php @@ -9,6 +9,7 @@ /** * @property SettingRepository $repository + * * @mixin SettingRepository */ class SettingService extends EntityService diff --git a/app/Services/UserService.php b/app/Services/UserService.php index a4ffd7b..31d33d0 100755 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -16,6 +16,7 @@ /** * @property UserRepository $repository + * * @mixin UserRepository */ class UserService extends EntityService @@ -54,8 +55,7 @@ public function forgotPassword(string $email): string { return Password::sendResetLink( credentials: ['email' => $email], - callback: fn ($user, $token) => - Mail::to($user->email)->send(new ForgotPasswordMail(['hash' => $token])) + callback: fn ($user, $token) => Mail::to($user->email)->send(new ForgotPasswordMail(['hash' => $token])), ); } @@ -63,12 +63,11 @@ public function restorePassword(array $credentials): string { return Password::reset( credentials: $credentials, - callback: fn (User $user, string $password) => - $this->repository - ->force() - ->update($user->id, [ - 'password' => Hash::make($password), - ]) + callback: fn (User $user, string $password) => $this->repository + ->force() + ->update($user->id, [ + 'password' => Hash::make($password), + ]), ); } } diff --git a/bootstrap/app.php b/bootstrap/app.php index d3cf80e..a57de74 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -26,9 +26,9 @@ use Illuminate\Session\TokenMismatchException; use Illuminate\Validation\ValidationException; use Illuminate\View\Middleware\ShareErrorsFromSession; +use PHPUnit\Framework\ExpectationFailedException; use RonasIT\AutoDoc\Http\Middleware\AutoDocMiddleware; use Symfony\Component\HttpKernel\Exception\HttpException; -use PHPUnit\Framework\ExpectationFailedException; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( @@ -37,7 +37,7 @@ commands: __DIR__ . '/../routes/console.php', channels: __DIR__ . '/../routes/channels.php', health: '/status', - apiPrefix: '' + apiPrefix: '', ) ->withMiddleware(function (Middleware $middleware) { $middleware->use([ diff --git a/composer.json b/composer.json index bf34eeb..b308c8b 100644 --- a/composer.json +++ b/composer.json @@ -30,14 +30,13 @@ "require-dev": { "ext-json": "*", "barryvdh/laravel-ide-helper": "^3.1", - "codedefective/cg-hooks": "^3.1", + "brainmaestro/composer-git-hooks": "^3.0", "fakerphp/faker": "^1.23", - "friendsofphp/php-cs-fixer": "^3.8", + "laravel/pint": "^1.18", "mockery/mockery": "^1.6", "php-coveralls/php-coveralls": "^2.7", "phpunit/phpunit": "^10.5", - "ronasit/laravel-entity-generator": "^3.1", - "tightenco/tlint": "^9.3" + "ronasit/laravel-entity-generator": "^3.1" }, "autoload": { "classmap": [ @@ -56,6 +55,7 @@ }, "scripts": { "post-install-cmd": [ + "git config --global --add safe.directory /app", "php artisan clear-compiled", "[ $COMPOSER_DEV_MODE -eq 0 ] || php artisan ide-helper:generate", "[ $COMPOSER_DEV_MODE -eq 0 ] || php artisan ide-helper:meta", @@ -88,7 +88,7 @@ "stop-on-failure": ["pre-commit"] }, "pre-commit": [ - "docker compose up -d php && docker compose exec -T php vendor/bin/php-cs-fixer fix && docker compose exec -T php vendor/bin/tlint" + "docker compose -f docker-compose.analyse.yaml up -d && docker compose -f docker-compose.analyse.yaml exec -T nginx vendor/bin/pint" ] } }, diff --git a/composer.lock b/composer.lock index cd391fa..9d9850e 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": "fc0e6212c853ec6a259501ca1fc0c6fb", + "content-hash": "cb92368e18e287849532ab4282e79b1e", "packages": [ { "name": "brick/math", @@ -1808,16 +1808,16 @@ }, { "name": "laravel/framework", - "version": "v11.31.0", + "version": "v11.32.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "365090ed2c68244e3141cdb5e247cdf3dfba2c40" + "reference": "bc2aad63f83ee5089be7b21cf29d645ccf31e927" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/365090ed2c68244e3141cdb5e247cdf3dfba2c40", - "reference": "365090ed2c68244e3141cdb5e247cdf3dfba2c40", + "url": "https://api.github.com/repos/laravel/framework/zipball/bc2aad63f83ee5089be7b21cf29d645ccf31e927", + "reference": "bc2aad63f83ee5089be7b21cf29d645ccf31e927", "shasum": "" }, "require": { @@ -2013,7 +2013,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-11-12T15:36:15+00:00" + "time": "2024-11-15T17:04:33+00:00" }, { "name": "laravel/legacy-factories", @@ -2073,16 +2073,16 @@ }, { "name": "laravel/prompts", - "version": "v0.3.1", + "version": "v0.3.2", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "0f3848a445562dac376b27968f753c65e7e1036e" + "reference": "0e0535747c6b8d6d10adca8b68293cf4517abb0f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/0f3848a445562dac376b27968f753c65e7e1036e", - "reference": "0f3848a445562dac376b27968f753c65e7e1036e", + "url": "https://api.github.com/repos/laravel/prompts/zipball/0e0535747c6b8d6d10adca8b68293cf4517abb0f", + "reference": "0e0535747c6b8d6d10adca8b68293cf4517abb0f", "shasum": "" }, "require": { @@ -2098,7 +2098,7 @@ "require-dev": { "illuminate/collections": "^10.0|^11.0", "mockery/mockery": "^1.5", - "pestphp/pest": "^2.3", + "pestphp/pest": "^2.3|^3.4", "phpstan/phpstan": "^1.11", "phpstan/phpstan-mockery": "^1.1" }, @@ -2126,22 +2126,22 @@ "description": "Add beautiful and user-friendly forms to your command-line applications.", "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.3.1" + "source": "https://github.com/laravel/prompts/tree/v0.3.2" }, - "time": "2024-10-09T19:42:26+00:00" + "time": "2024-11-12T14:59:47+00:00" }, { "name": "laravel/serializable-closure", - "version": "v1.3.5", + "version": "v1.3.6", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c" + "reference": "f865a58ea3a0107c336b7045104c75243fa59d96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", - "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/f865a58ea3a0107c336b7045104c75243fa59d96", + "reference": "f865a58ea3a0107c336b7045104c75243fa59d96", "shasum": "" }, "require": { @@ -2189,7 +2189,7 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2024-09-23T13:33:08+00:00" + "time": "2024-11-11T17:06:04+00:00" }, { "name": "laravel/tinker", @@ -2819,16 +2819,16 @@ }, { "name": "maatwebsite/excel", - "version": "3.1.59", + "version": "3.1.60", "source": { "type": "git", "url": "https://github.com/SpartnerNL/Laravel-Excel.git", - "reference": "b4d8b877e31998811700283d91292ab2b9a4970d" + "reference": "4906dc57fbe6a41c405a77e1f7cac9078982c9c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/b4d8b877e31998811700283d91292ab2b9a4970d", - "reference": "b4d8b877e31998811700283d91292ab2b9a4970d", + "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/4906dc57fbe6a41c405a77e1f7cac9078982c9c7", + "reference": "4906dc57fbe6a41c405a77e1f7cac9078982c9c7", "shasum": "" }, "require": { @@ -2836,7 +2836,7 @@ "ext-json": "*", "illuminate/support": "5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0", "php": "^7.0||^8.0", - "phpoffice/phpspreadsheet": "^1.29.2", + "phpoffice/phpspreadsheet": "^1.29.4", "psr/simple-cache": "^1.0||^2.0||^3.0" }, "require-dev": { @@ -2884,7 +2884,7 @@ ], "support": { "issues": "https://github.com/SpartnerNL/Laravel-Excel/issues", - "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.59" + "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.60" }, "funding": [ { @@ -2896,7 +2896,7 @@ "type": "github" } ], - "time": "2024-10-25T15:40:14+00:00" + "time": "2024-11-11T12:27:45+00:00" }, { "name": "maennchen/zipstream-php", @@ -3084,16 +3084,16 @@ }, { "name": "monolog/monolog", - "version": "3.7.0", + "version": "3.8.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8" + "reference": "32e515fdc02cdafbe4593e30a9350d486b125b67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f4393b648b78a5408747de94fca38beb5f7e9ef8", - "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/32e515fdc02cdafbe4593e30a9350d486b125b67", + "reference": "32e515fdc02cdafbe4593e30a9350d486b125b67", "shasum": "" }, "require": { @@ -3113,12 +3113,14 @@ "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", - "phpstan/phpstan": "^1.9", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-strict-rules": "^1.4", - "phpunit/phpunit": "^10.5.17", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", "predis/predis": "^1.1 || ^2", - "ruflin/elastica": "^7", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", "symfony/mailer": "^5.4 || ^6", "symfony/mime": "^5.4 || ^6" }, @@ -3169,7 +3171,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.7.0" + "source": "https://github.com/Seldaek/monolog/tree/3.8.0" }, "funding": [ { @@ -3181,7 +3183,7 @@ "type": "tidelift" } ], - "time": "2024-06-28T09:40:51+00:00" + "time": "2024-11-12T13:57:08+00:00" }, { "name": "myclabs/deep-copy", @@ -7169,7 +7171,7 @@ }, { "name": "symfony/clock", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/clock.git", @@ -7223,7 +7225,7 @@ "time" ], "support": { - "source": "https://github.com/symfony/clock/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/clock/tree/v7.2.0-RC1" }, "funding": [ { @@ -7243,16 +7245,16 @@ }, { "name": "symfony/console", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "3fda7e592a83a6f487cdce3146f6b3408e6f01de" + "reference": "23c8aae6d764e2bae02d2a99f7532a7f6ed619cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/3fda7e592a83a6f487cdce3146f6b3408e6f01de", - "reference": "3fda7e592a83a6f487cdce3146f6b3408e6f01de", + "url": "https://api.github.com/repos/symfony/console/zipball/23c8aae6d764e2bae02d2a99f7532a7f6ed619cf", + "reference": "23c8aae6d764e2bae02d2a99f7532a7f6ed619cf", "shasum": "" }, "require": { @@ -7316,7 +7318,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/console/tree/v7.2.0-RC1" }, "funding": [ { @@ -7332,11 +7334,11 @@ "type": "tidelift" } ], - "time": "2024-11-05T15:35:02+00:00" + "time": "2024-11-06T14:24:19+00:00" }, { "name": "symfony/css-selector", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -7381,7 +7383,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/css-selector/tree/v7.2.0-RC1" }, "funding": [ { @@ -7468,7 +7470,7 @@ }, { "name": "symfony/error-handler", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", @@ -7523,7 +7525,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/error-handler/tree/v7.2.0-RC1" }, "funding": [ { @@ -7543,7 +7545,7 @@ }, { "name": "symfony/event-dispatcher", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", @@ -7603,7 +7605,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0-RC1" }, "funding": [ { @@ -7699,7 +7701,7 @@ }, { "name": "symfony/finder", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", @@ -7743,7 +7745,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/finder/tree/v7.2.0-RC1" }, "funding": [ { @@ -7763,16 +7765,16 @@ }, { "name": "symfony/http-client", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "730f1bb15938598419e92432e2156fc960dcf782" + "reference": "9243e3847e5d86c9bde2b909bc78010eeb4b0409" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/730f1bb15938598419e92432e2156fc960dcf782", - "reference": "730f1bb15938598419e92432e2156fc960dcf782", + "url": "https://api.github.com/repos/symfony/http-client/zipball/9243e3847e5d86c9bde2b909bc78010eeb4b0409", + "reference": "9243e3847e5d86c9bde2b909bc78010eeb4b0409", "shasum": "" }, "require": { @@ -7838,7 +7840,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/http-client/tree/v7.2.0-RC1" }, "funding": [ { @@ -7854,7 +7856,7 @@ "type": "tidelift" } ], - "time": "2024-11-06T08:44:59+00:00" + "time": "2024-11-13T13:40:36+00:00" }, { "name": "symfony/http-client-contracts", @@ -7936,16 +7938,16 @@ }, { "name": "symfony/http-foundation", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "9a51d2afa16b17923ecbf0dfd51a71a56a3136d4" + "reference": "b77b5a8295ea945ae6f4f91adc5204a2405cc579" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/9a51d2afa16b17923ecbf0dfd51a71a56a3136d4", - "reference": "9a51d2afa16b17923ecbf0dfd51a71a56a3136d4", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/b77b5a8295ea945ae6f4f91adc5204a2405cc579", + "reference": "b77b5a8295ea945ae6f4f91adc5204a2405cc579", "shasum": "" }, "require": { @@ -7956,12 +7958,12 @@ }, "conflict": { "doctrine/dbal": "<3.6", - "symfony/cache": "<6.4" + "symfony/cache": "<6.4.12|>=7.0,<7.1.5" }, "require-dev": { "doctrine/dbal": "^3.6|^4", "predis/predis": "^1.1|^2.0", - "symfony/cache": "^6.4|^7.0", + "symfony/cache": "^6.4.12|^7.1.5", "symfony/dependency-injection": "^6.4|^7.0", "symfony/expression-language": "^6.4|^7.0", "symfony/http-kernel": "^6.4|^7.0", @@ -7994,7 +7996,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/http-foundation/tree/v7.2.0-RC1" }, "funding": [ { @@ -8010,20 +8012,20 @@ "type": "tidelift" } ], - "time": "2024-11-06T09:03:19+00:00" + "time": "2024-11-09T09:29:03+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "70a5fd8f9614f8ed1f0a1640f00d59047e7619bb" + "reference": "ad175ab2d5a75702194b5336556a348717a39f0f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/70a5fd8f9614f8ed1f0a1640f00d59047e7619bb", - "reference": "70a5fd8f9614f8ed1f0a1640f00d59047e7619bb", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/ad175ab2d5a75702194b5336556a348717a39f0f", + "reference": "ad175ab2d5a75702194b5336556a348717a39f0f", "shasum": "" }, "require": { @@ -8108,7 +8110,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/http-kernel/tree/v7.2.0-RC1" }, "funding": [ { @@ -8124,20 +8126,20 @@ "type": "tidelift" } ], - "time": "2024-11-06T10:00:45+00:00" + "time": "2024-11-13T14:53:30+00:00" }, { "name": "symfony/mailer", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "a305f46bb8bd635620dcdcec485b2f52aa1345d7" + "reference": "abbcc8b84a81d08ee1a0e6ca60a90d0aaf24e79b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/a305f46bb8bd635620dcdcec485b2f52aa1345d7", - "reference": "a305f46bb8bd635620dcdcec485b2f52aa1345d7", + "url": "https://api.github.com/repos/symfony/mailer/zipball/abbcc8b84a81d08ee1a0e6ca60a90d0aaf24e79b", + "reference": "abbcc8b84a81d08ee1a0e6ca60a90d0aaf24e79b", "shasum": "" }, "require": { @@ -8188,7 +8190,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/mailer/tree/v7.2.0-RC1" }, "funding": [ { @@ -8204,11 +8206,11 @@ "type": "tidelift" } ], - "time": "2024-10-06T12:00:20+00:00" + "time": "2024-11-09T06:58:08+00:00" }, { "name": "symfony/mailgun-mailer", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/mailgun-mailer.git", @@ -8257,7 +8259,7 @@ "description": "Symfony Mailgun Mailer Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailgun-mailer/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/mailgun-mailer/tree/v7.2.0-RC1" }, "funding": [ { @@ -8277,16 +8279,16 @@ }, { "name": "symfony/mime", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "c73ca0f7f11fb609356b84d0d808053bf433880a" + "reference": "f31946de86ef8fcf48ae76652542f29df2ef4428" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/c73ca0f7f11fb609356b84d0d808053bf433880a", - "reference": "c73ca0f7f11fb609356b84d0d808053bf433880a", + "url": "https://api.github.com/repos/symfony/mime/zipball/f31946de86ef8fcf48ae76652542f29df2ef4428", + "reference": "f31946de86ef8fcf48ae76652542f29df2ef4428", "shasum": "" }, "require": { @@ -8341,7 +8343,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/mime/tree/v7.2.0-RC1" }, "funding": [ { @@ -8357,7 +8359,7 @@ "type": "tidelift" } ], - "time": "2024-11-05T09:31:08+00:00" + "time": "2024-11-10T09:50:45+00:00" }, { "name": "symfony/polyfill-ctype", @@ -9065,7 +9067,7 @@ }, { "name": "symfony/postmark-mailer", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/postmark-mailer.git", @@ -9115,7 +9117,7 @@ "description": "Symfony Postmark Mailer Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/postmark-mailer/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/postmark-mailer/tree/v7.2.0-RC1" }, "funding": [ { @@ -9135,16 +9137,16 @@ }, { "name": "symfony/process", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "37f5c1fc0f83db4900ea961c5fc0180e2a279b6a" + "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/37f5c1fc0f83db4900ea961c5fc0180e2a279b6a", - "reference": "37f5c1fc0f83db4900ea961c5fc0180e2a279b6a", + "url": "https://api.github.com/repos/symfony/process/zipball/d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", + "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", "shasum": "" }, "require": { @@ -9176,7 +9178,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/process/tree/v7.2.0-RC1" }, "funding": [ { @@ -9192,11 +9194,11 @@ "type": "tidelift" } ], - "time": "2024-11-06T09:25:18+00:00" + "time": "2024-11-06T14:24:19+00:00" }, { "name": "symfony/routing", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", @@ -9257,7 +9259,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/routing/tree/v7.2.0-RC1" }, "funding": [ { @@ -9360,16 +9362,16 @@ }, { "name": "symfony/string", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "205580699b4d3e11f7b679faf2c0f57ffca6981c" + "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/205580699b4d3e11f7b679faf2c0f57ffca6981c", - "reference": "205580699b4d3e11f7b679faf2c0f57ffca6981c", + "url": "https://api.github.com/repos/symfony/string/zipball/446e0d146f991dde3e73f45f2c97a9faad773c82", + "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82", "shasum": "" }, "require": { @@ -9427,7 +9429,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/string/tree/v7.2.0-RC1" }, "funding": [ { @@ -9443,11 +9445,11 @@ "type": "tidelift" } ], - "time": "2024-10-23T06:56:12+00:00" + "time": "2024-11-13T13:31:26+00:00" }, { "name": "symfony/translation", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", @@ -9522,7 +9524,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/translation/tree/v7.2.0-RC1" }, "funding": [ { @@ -9620,7 +9622,7 @@ }, { "name": "symfony/uid", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/uid.git", @@ -9674,7 +9676,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/uid/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/uid/tree/v7.2.0-RC1" }, "funding": [ { @@ -9694,16 +9696,16 @@ }, { "name": "symfony/var-dumper", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "131a71f779b76fefc41465f1ccbe701a02b4389b" + "reference": "c6a22929407dec8765d6e2b6ff85b800b245879c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/131a71f779b76fefc41465f1ccbe701a02b4389b", - "reference": "131a71f779b76fefc41465f1ccbe701a02b4389b", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c6a22929407dec8765d6e2b6ff85b800b245879c", + "reference": "c6a22929407dec8765d6e2b6ff85b800b245879c", "shasum": "" }, "require": { @@ -9757,7 +9759,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/var-dumper/tree/v7.2.0-RC1" }, "funding": [ { @@ -9773,7 +9775,7 @@ "type": "tidelift" } ], - "time": "2024-11-05T15:35:02+00:00" + "time": "2024-11-08T15:48:14+00:00" }, { "name": "tecnickcom/tcpdf", @@ -10315,91 +10317,27 @@ "time": "2024-10-23T11:41:03+00:00" }, { - "name": "clue/ndjson-react", - "version": "v1.3.0", - "source": { - "type": "git", - "url": "https://github.com/clue/reactphp-ndjson.git", - "reference": "392dc165fce93b5bb5c637b67e59619223c931b0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/clue/reactphp-ndjson/zipball/392dc165fce93b5bb5c637b67e59619223c931b0", - "reference": "392dc165fce93b5bb5c637b67e59619223c931b0", - "shasum": "" - }, - "require": { - "php": ">=5.3", - "react/stream": "^1.2" - }, - "require-dev": { - "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35", - "react/event-loop": "^1.2" - }, - "type": "library", - "autoload": { - "psr-4": { - "Clue\\React\\NDJson\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering" - } - ], - "description": "Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.", - "homepage": "https://github.com/clue/reactphp-ndjson", - "keywords": [ - "NDJSON", - "json", - "jsonlines", - "newline", - "reactphp", - "streaming" - ], - "support": { - "issues": "https://github.com/clue/reactphp-ndjson/issues", - "source": "https://github.com/clue/reactphp-ndjson/tree/v1.3.0" - }, - "funding": [ - { - "url": "https://clue.engineering/support", - "type": "custom" - }, - { - "url": "https://github.com/clue", - "type": "github" - } - ], - "time": "2022-12-23T10:58:28+00:00" - }, - { - "name": "codedefective/cg-hooks", - "version": "v3.1.1", + "name": "brainmaestro/composer-git-hooks", + "version": "v3.0.0", "source": { "type": "git", - "url": "https://github.com/codedefective/cg-hooks.git", - "reference": "319198756a8528eb700ba8b0e232e1fdd73704d8" + "url": "https://github.com/BrainMaestro/composer-git-hooks.git", + "reference": "684dc85f480268baf5e13f39a3cc494eeb2536e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/codedefective/cg-hooks/zipball/319198756a8528eb700ba8b0e232e1fdd73704d8", - "reference": "319198756a8528eb700ba8b0e232e1fdd73704d8", + "url": "https://api.github.com/repos/BrainMaestro/composer-git-hooks/zipball/684dc85f480268baf5e13f39a3cc494eeb2536e8", + "reference": "684dc85f480268baf5e13f39a3cc494eeb2536e8", "shasum": "" }, "require": { - "php": "^8.2|^8.3", - "symfony/console": "^7.0" + "php": "^8.0", + "symfony/console": "^5.0|^6.0|^7.0" }, "require-dev": { "ext-json": "*", "friendsofphp/php-cs-fixer": "^3.0", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9|^10|^11" }, "bin": [ "cghooks" @@ -10410,11 +10348,11 @@ "pre-commit": "composer check-style", "pre-push": [ "composer test", - "appver=$(grep -o -E '\\d.\\d.\\d(-alpha.\\d)?' cghooks)", + "appver=$(grep -o -E '[0-9]+\\.[0-9]+\\.[0-9]+(-alpha\\.[0-9]+)?' cghooks)", "tag=$(git tag | tail -n 1)", - "if [ \"$tag\" != \"v$appver\" ]; then", - "echo \"The most recent tag $tag does not match the application version $appver\\n\"", "tag=${tag#v}", + "if [ \"$tag\" != \"$appver\" ]; then", + "echo \"The most recent tag $tag does not match the application version $appver\\n\"", "sed -i -E \"s/$appver/$tag/\" cghooks", "exit 1", "fi" @@ -10426,7 +10364,7 @@ "src/helpers.php" ], "psr-4": { - "Codedefective\\CGHooks\\": "src/" + "BrainMaestro\\GitHooks\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -10435,21 +10373,21 @@ ], "authors": [ { - "name": "Erdem A.", - "email": "accounts@erdemakbulut.com.tr" + "name": "Ezinwa Okpoechi", + "email": "brainmaestro@outlook.com" } ], - "description": "Composer Git Hook", + "description": "Easily manage git hooks in your composer config", "keywords": [ "HOOK", "composer", "git" ], "support": { - "issues": "https://github.com/codedefective/cg-hooks/issues", - "source": "https://github.com/codedefective/cg-hooks/tree/v3.1.1" + "issues": "https://github.com/BrainMaestro/composer-git-hooks/issues", + "source": "https://github.com/BrainMaestro/composer-git-hooks/tree/v3.0.0" }, - "time": "2024-03-29T13:23:33+00:00" + "time": "2024-06-22T09:17:59+00:00" }, { "name": "composer/class-map-generator", @@ -10526,16 +10464,16 @@ }, { "name": "composer/pcre", - "version": "3.3.1", + "version": "3.3.2", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4" + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/63aaeac21d7e775ff9bc9d45021e1745c97521c4", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", "shasum": "" }, "require": { @@ -10545,8 +10483,8 @@ "phpstan/phpstan": "<1.11.10" }, "require-dev": { - "phpstan/phpstan": "^1.11.10", - "phpstan/phpstan-strict-rules": "^1.1", + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", "phpunit/phpunit": "^8 || ^9" }, "type": "library", @@ -10585,73 +10523,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.1" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2024-08-27T18:44:43+00:00" - }, - { - "name": "composer/xdebug-handler", - "version": "3.0.5", - "source": { - "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", - "shasum": "" - }, - "require": { - "composer/pcre": "^1 || ^2 || ^3", - "php": "^7.2.5 || ^8.0", - "psr/log": "^1 || ^2 || ^3" - }, - "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "Composer\\XdebugHandler\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" - } - ], - "description": "Restarts a process without Xdebug.", - "keywords": [ - "Xdebug", - "performance" - ], - "support": { - "irc": "ircs://irc.libera.chat:6697/composer", - "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" + "source": "https://github.com/composer/pcre/tree/3.3.2" }, "funding": [ { @@ -10667,7 +10539,7 @@ "type": "tidelift" } ], - "time": "2024-05-06T16:37:16+00:00" + "time": "2024-11-12T16:29:46+00:00" }, { "name": "doctrine/deprecations", @@ -10716,53 +10588,6 @@ }, "time": "2024-01-30T19:34:25+00:00" }, - { - "name": "evenement/evenement", - "version": "v3.0.2", - "source": { - "type": "git", - "url": "https://github.com/igorw/evenement.git", - "reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/igorw/evenement/zipball/0a16b0d71ab13284339abb99d9d2bd813640efbc", - "reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc", - "shasum": "" - }, - "require": { - "php": ">=7.0" - }, - "require-dev": { - "phpunit/phpunit": "^9 || ^6" - }, - "type": "library", - "autoload": { - "psr-4": { - "Evenement\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - } - ], - "description": "Événement is a very simple event dispatching library for PHP", - "keywords": [ - "event-dispatcher", - "event-emitter" - ], - "support": { - "issues": "https://github.com/igorw/evenement/issues", - "source": "https://github.com/igorw/evenement/tree/v3.0.2" - }, - "time": "2023-08-08T05:53:35+00:00" - }, { "name": "fakerphp/faker", "version": "v1.24.0", @@ -10827,135 +10652,96 @@ "time": "2024-11-07T15:11:20+00:00" }, { - "name": "fidry/cpu-core-counter", - "version": "1.2.0", + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", "source": { "type": "git", - "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "8520451a140d3f46ac33042715115e290cf5785f" + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/8520451a140d3f46ac33042715115e290cf5785f", - "reference": "8520451a140d3f46ac33042715115e290cf5785f", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" }, "require-dev": { - "fidry/makefile": "^0.2.0", - "fidry/php-cs-fixer-config": "^1.1.2", - "phpstan/extension-installer": "^1.2.0", - "phpstan/phpstan": "^1.9.2", - "phpstan/phpstan-deprecation-rules": "^1.0.0", - "phpstan/phpstan-phpunit": "^1.2.2", - "phpstan/phpstan-strict-rules": "^1.4.4", - "phpunit/phpunit": "^8.5.31 || ^9.5.26", - "webmozarts/strict-phpunit": "^7.5" + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" }, "type": "library", - "autoload": { - "psr-4": { - "Fidry\\CpuCoreCounter\\": "src/" + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" } }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" - ], - "authors": [ - { - "name": "Théo FIDRY", - "email": "theo.fidry@gmail.com" - } + "BSD-3-Clause" ], - "description": "Tiny utility to get the number of CPU cores.", + "description": "This is the PHP port of Hamcrest Matchers", "keywords": [ - "CPU", - "core" + "test" ], "support": { - "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/1.2.0" + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" }, - "funding": [ - { - "url": "https://github.com/theofidry", - "type": "github" - } - ], - "time": "2024-08-06T10:04:20+00:00" + "time": "2020-07-09T08:09:16+00:00" }, { - "name": "friendsofphp/php-cs-fixer", - "version": "v3.64.0", + "name": "laravel/pint", + "version": "v1.18.1", "source": { "type": "git", - "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "58dd9c931c785a79739310aef5178928305ffa67" + "url": "https://github.com/laravel/pint.git", + "reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/58dd9c931c785a79739310aef5178928305ffa67", - "reference": "58dd9c931c785a79739310aef5178928305ffa67", + "url": "https://api.github.com/repos/laravel/pint/zipball/35c00c05ec43e6b46d295efc0f4386ceb30d50d9", + "reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9", "shasum": "" }, "require": { - "clue/ndjson-react": "^1.0", - "composer/semver": "^3.4", - "composer/xdebug-handler": "^3.0.3", - "ext-filter": "*", "ext-json": "*", + "ext-mbstring": "*", "ext-tokenizer": "*", - "fidry/cpu-core-counter": "^1.0", - "php": "^7.4 || ^8.0", - "react/child-process": "^0.6.5", - "react/event-loop": "^1.0", - "react/promise": "^2.0 || ^3.0", - "react/socket": "^1.0", - "react/stream": "^1.0", - "sebastian/diff": "^4.0 || ^5.0 || ^6.0", - "symfony/console": "^5.4 || ^6.0 || ^7.0", - "symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0", - "symfony/filesystem": "^5.4 || ^6.0 || ^7.0", - "symfony/finder": "^5.4 || ^6.0 || ^7.0", - "symfony/options-resolver": "^5.4 || ^6.0 || ^7.0", - "symfony/polyfill-mbstring": "^1.28", - "symfony/polyfill-php80": "^1.28", - "symfony/polyfill-php81": "^1.28", - "symfony/process": "^5.4 || ^6.0 || ^7.0", - "symfony/stopwatch": "^5.4 || ^6.0 || ^7.0" + "ext-xml": "*", + "php": "^8.1.0" }, "require-dev": { - "facile-it/paraunit": "^1.3 || ^2.3", - "infection/infection": "^0.29.5", - "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^2.1", - "mikey179/vfsstream": "^1.6.11", - "php-coveralls/php-coveralls": "^2.7", - "php-cs-fixer/accessible-object": "^1.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.5", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.5", - "phpunit/phpunit": "^9.6.19 || ^10.5.21 || ^11.2", - "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0", - "symfony/yaml": "^5.4 || ^6.0 || ^7.0" - }, - "suggest": { - "ext-dom": "For handling output formats in XML", - "ext-mbstring": "For handling non-UTF8 characters." + "friendsofphp/php-cs-fixer": "^3.64.0", + "illuminate/view": "^10.48.20", + "larastan/larastan": "^2.9.8", + "laravel-zero/framework": "^10.4.0", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^2.35.1" }, "bin": [ - "php-cs-fixer" + "builds/pint" ], - "type": "application", + "type": "project", "autoload": { "psr-4": { - "PhpCsFixer\\": "src/" - }, - "exclude-from-classmap": [ - "src/Fixer/Internal/*" - ] + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -10963,83 +10749,24 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - } - ], - "description": "A tool to automatically fix PHP code style", - "keywords": [ - "Static code analysis", - "fixer", - "standards", - "static analysis" - ], - "support": { - "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.64.0" - }, - "funding": [ - { - "url": "https://github.com/keradus", - "type": "github" - } - ], - "time": "2024-08-30T23:09:38+00:00" - }, - { - "name": "hamcrest/hamcrest-php", - "version": "v2.0.1", - "source": { - "type": "git", - "url": "https://github.com/hamcrest/hamcrest-php.git", - "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", - "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", - "shasum": "" - }, - "require": { - "php": "^5.3|^7.0|^8.0" - }, - "replace": { - "cordoval/hamcrest-php": "*", - "davedevelopment/hamcrest-php": "*", - "kodova/hamcrest-php": "*" - }, - "require-dev": { - "phpunit/php-file-iterator": "^1.4 || ^2.0", - "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" } - }, - "autoload": { - "classmap": [ - "hamcrest" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" ], - "description": "This is the PHP port of Hamcrest Matchers", + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", "keywords": [ - "test" + "format", + "formatter", + "lint", + "linter", + "php" ], "support": { - "issues": "https://github.com/hamcrest/hamcrest-php/issues", - "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" }, - "time": "2020-07-09T08:09:16+00:00" + "time": "2024-09-24T17:22:50+00:00" }, { "name": "mockery/mockery", @@ -11366,555 +11093,25 @@ "time": "2024-10-13T11:29:49+00:00" }, { - "name": "react/cache", - "version": "v1.2.0", + "name": "ronasit/laravel-entity-generator", + "version": "3.2", "source": { "type": "git", - "url": "https://github.com/reactphp/cache.git", - "reference": "d47c472b64aa5608225f47965a484b75c7817d5b" + "url": "https://github.com/RonasIT/laravel-entity-generator.git", + "reference": "2e111c71efad55f27b1dfa5d27584558af121ed1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b", - "reference": "d47c472b64aa5608225f47965a484b75c7817d5b", + "url": "https://api.github.com/repos/RonasIT/laravel-entity-generator/zipball/2e111c71efad55f27b1dfa5d27584558af121ed1", + "reference": "2e111c71efad55f27b1dfa5d27584558af121ed1", "shasum": "" }, "require": { - "php": ">=5.3.0", - "react/promise": "^3.0 || ^2.0 || ^1.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async, Promise-based cache interface for ReactPHP", - "keywords": [ - "cache", - "caching", - "promise", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/cache/issues", - "source": "https://github.com/reactphp/cache/tree/v1.2.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "time": "2022-11-30T15:59:55+00:00" - }, - { - "name": "react/child-process", - "version": "v0.6.5", - "source": { - "type": "git", - "url": "https://github.com/reactphp/child-process.git", - "reference": "e71eb1aa55f057c7a4a0d08d06b0b0a484bead43" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/child-process/zipball/e71eb1aa55f057c7a4a0d08d06b0b0a484bead43", - "reference": "e71eb1aa55f057c7a4a0d08d06b0b0a484bead43", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.0", - "react/event-loop": "^1.2", - "react/stream": "^1.2" - }, - "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", - "react/socket": "^1.8", - "sebastian/environment": "^5.0 || ^3.0 || ^2.0 || ^1.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\ChildProcess\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Event-driven library for executing child processes with ReactPHP.", - "keywords": [ - "event-driven", - "process", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/child-process/issues", - "source": "https://github.com/reactphp/child-process/tree/v0.6.5" - }, - "funding": [ - { - "url": "https://github.com/WyriHaximus", - "type": "github" - }, - { - "url": "https://github.com/clue", - "type": "github" - } - ], - "time": "2022-09-16T13:41:56+00:00" - }, - { - "name": "react/dns", - "version": "v1.13.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/dns.git", - "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/dns/zipball/eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", - "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "react/cache": "^1.0 || ^0.6 || ^0.5", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.7 || ^1.2.1" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3 || ^2", - "react/promise-timer": "^1.11" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Dns\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async DNS resolver for ReactPHP", - "keywords": [ - "async", - "dns", - "dns-resolver", - "reactphp" - ], - "support": { - "issues": "https://github.com/reactphp/dns/issues", - "source": "https://github.com/reactphp/dns/tree/v1.13.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "time": "2024-06-13T14:18:03+00:00" - }, - { - "name": "react/event-loop", - "version": "v1.5.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/event-loop.git", - "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", - "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" - }, - "suggest": { - "ext-pcntl": "For signal handling support when using the StreamSelectLoop" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\EventLoop\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", - "keywords": [ - "asynchronous", - "event-loop" - ], - "support": { - "issues": "https://github.com/reactphp/event-loop/issues", - "source": "https://github.com/reactphp/event-loop/tree/v1.5.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "time": "2023-11-13T13:48:05+00:00" - }, - { - "name": "react/promise", - "version": "v3.2.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise.git", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63", - "shasum": "" - }, - "require": { - "php": ">=7.1.0" - }, - "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", - "phpunit/phpunit": "^9.6 || ^7.5" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions_include.php" - ], - "psr-4": { - "React\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "keywords": [ - "promise", - "promises" - ], - "support": { - "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v3.2.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "time": "2024-05-24T10:39:05+00:00" - }, - { - "name": "react/socket", - "version": "v1.16.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/socket.git", - "reference": "23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/socket/zipball/23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1", - "reference": "23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.0", - "react/dns": "^1.13", - "react/event-loop": "^1.2", - "react/promise": "^3.2 || ^2.6 || ^1.2.1", - "react/stream": "^1.4" - }, - "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", - "react/async": "^4.3 || ^3.3 || ^2", - "react/promise-stream": "^1.4", - "react/promise-timer": "^1.11" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Socket\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", - "keywords": [ - "Connection", - "Socket", - "async", - "reactphp", - "stream" - ], - "support": { - "issues": "https://github.com/reactphp/socket/issues", - "source": "https://github.com/reactphp/socket/tree/v1.16.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "time": "2024-07-26T10:38:09+00:00" - }, - { - "name": "react/stream", - "version": "v1.4.0", - "source": { - "type": "git", - "url": "https://github.com/reactphp/stream.git", - "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/stream/zipball/1e5b0acb8fe55143b5b426817155190eb6f5b18d", - "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.8", - "react/event-loop": "^1.2" - }, - "require-dev": { - "clue/stream-filter": "~1.2", - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Stream\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@clue.engineering", - "homepage": "https://clue.engineering/" - }, - { - "name": "Cees-Jan Kiewiet", - "email": "reactphp@ceesjankiewiet.nl", - "homepage": "https://wyrihaximus.net/" - }, - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com", - "homepage": "https://sorgalla.com/" - }, - { - "name": "Chris Boden", - "email": "cboden@gmail.com", - "homepage": "https://cboden.dev/" - } - ], - "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", - "keywords": [ - "event-driven", - "io", - "non-blocking", - "pipe", - "reactphp", - "readable", - "stream", - "writable" - ], - "support": { - "issues": "https://github.com/reactphp/stream/issues", - "source": "https://github.com/reactphp/stream/tree/v1.4.0" - }, - "funding": [ - { - "url": "https://opencollective.com/reactphp", - "type": "open_collective" - } - ], - "time": "2024-06-11T12:45:25+00:00" - }, - { - "name": "ronasit/laravel-entity-generator", - "version": "3.1", - "source": { - "type": "git", - "url": "https://github.com/RonasIT/laravel-entity-generator.git", - "reference": "78b359074c23e14bf49122a3b0745a86fc2e13f7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/RonasIT/laravel-entity-generator/zipball/78b359074c23e14bf49122a3b0745a86fc2e13f7", - "reference": "78b359074c23e14bf49122a3b0745a86fc2e13f7", - "shasum": "" - }, - "require": { - "ext-json": "*", - "laravel/framework": "^11.21", - "laravel/legacy-factories": ">=1.3.0", - "php": "^8.3", - "ronasit/laravel-helpers": "^3.0.0-beta" + "ext-json": "*", + "laravel/framework": "^11.21", + "laravel/legacy-factories": ">=1.3.0", + "php": "^8.3", + "ronasit/laravel-helpers": "^3.0.1-beta" }, "require-dev": { "fakerphp/faker": "^1.23.1", @@ -11958,13 +11155,13 @@ ], "support": { "issues": "https://github.com/RonasIT/laravel-entity-generator/issues", - "source": "https://github.com/RonasIT/laravel-entity-generator/tree/3.1" + "source": "https://github.com/RonasIT/laravel-entity-generator/tree/3.2" }, - "time": "2024-10-14T11:19:22+00:00" + "time": "2024-11-11T14:44:05+00:00" }, { "name": "symfony/config", - "version": "v7.2.0-BETA2", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/config.git", @@ -12019,7 +11216,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v7.2.0-BETA2" + "source": "https://github.com/symfony/config/tree/v7.2.0-RC1" }, "funding": [ { @@ -12039,7 +11236,7 @@ }, { "name": "symfony/filesystem", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -12085,7 +11282,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/filesystem/tree/v7.2.0-RC1" }, "funding": [ { @@ -12103,152 +11300,9 @@ ], "time": "2024-10-25T15:15:23+00:00" }, - { - "name": "symfony/options-resolver", - "version": "v7.2.0-BETA1", - "source": { - "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "4f69e6b9745493ea38e5ffdc937e41e7145aa04c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4f69e6b9745493ea38e5ffdc937e41e7145aa04c", - "reference": "4f69e6b9745493ea38e5ffdc937e41e7145aa04c", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", - "keywords": [ - "config", - "configuration", - "options" - ], - "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.2.0-BETA1" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-09-25T14:21:43+00:00" - }, - { - "name": "symfony/polyfill-php81", - "version": "v1.31.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", - "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "type": "library", - "extra": { - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-09-09T11:45:10+00:00" - }, { "name": "symfony/stopwatch", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", @@ -12290,7 +11344,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/stopwatch/tree/v7.2.0-RC1" }, "funding": [ { @@ -12310,7 +11364,7 @@ }, { "name": "symfony/yaml", - "version": "v7.2.0-BETA1", + "version": "v7.2.0-RC1", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", @@ -12362,7 +11416,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.2.0-BETA1" + "source": "https://github.com/symfony/yaml/tree/v7.2.0-RC1" }, "funding": [ { @@ -12379,61 +11433,6 @@ } ], "time": "2024-10-23T06:56:12+00:00" - }, - { - "name": "tightenco/tlint", - "version": "v9.3.1", - "source": { - "type": "git", - "url": "https://github.com/tighten/tlint.git", - "reference": "9999dc0c33350222f54a293f4350942540b85c5c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/tighten/tlint/zipball/9999dc0c33350222f54a293f4350942540b85c5c", - "reference": "9999dc0c33350222f54a293f4350942540b85c5c", - "shasum": "" - }, - "require": { - "illuminate/view": "*", - "nikic/php-parser": "^5.0", - "php": ">=8.1", - "symfony/console": "^6.1||^7.0", - "symfony/process": "^6.1||^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.6", - "spatie/ray": "^1.37", - "symfony/var-dumper": "^6.1", - "tightenco/duster": "^2.0" - }, - "bin": [ - "bin/tlint" - ], - "type": "library", - "autoload": { - "psr-4": { - "Tighten\\TLint\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Logan Henson", - "email": "logan@loganhenson.com", - "role": "Developer" - } - ], - "description": "Tighten linter for Laravel conventions", - "homepage": "https://github.com/tighten/tlint", - "support": { - "issues": "https://github.com/tighten/tlint/issues", - "source": "https://github.com/tighten/tlint/tree/v9.3.1" - }, - "time": "2024-04-26T20:21:16+00:00" } ], "aliases": [], diff --git a/config/app.php b/config/app.php index 2af6480..42e1bdd 100644 --- a/config/app.php +++ b/config/app.php @@ -120,7 +120,7 @@ 'previous_keys' => [ ...array_filter( - explode(',', env('APP_PREVIOUS_KEYS', '')) + explode(',', env('APP_PREVIOUS_KEYS', '')), ), ], diff --git a/config/ide-helper.php b/config/ide-helper.php index 826ae5d..5405306 100644 --- a/config/ide-helper.php +++ b/config/ide-helper.php @@ -11,8 +11,8 @@ | */ - 'filename' => '_ide_helper', - 'format' => 'php', + 'filename' => '_ide_helper', + 'format' => 'php', 'meta_filename' => '.phpstorm.meta.php', /* @@ -83,13 +83,13 @@ 'magic' => [ 'Log' => [ - 'debug' => 'Monolog\Logger::addDebug', - 'info' => 'Monolog\Logger::addInfo', - 'notice' => 'Monolog\Logger::addNotice', - 'warning' => 'Monolog\Logger::addWarning', - 'error' => 'Monolog\Logger::addError', - 'critical' => 'Monolog\Logger::addCritical', - 'alert' => 'Monolog\Logger::addAlert', + 'debug' => 'Monolog\Logger::addDebug', + 'info' => 'Monolog\Logger::addInfo', + 'notice' => 'Monolog\Logger::addNotice', + 'warning' => 'Monolog\Logger::addWarning', + 'error' => 'Monolog\Logger::addError', + 'critical' => 'Monolog\Logger::addCritical', + 'alert' => 'Monolog\Logger::addAlert', 'emergency' => 'Monolog\Logger::addEmergency', ], ], @@ -172,8 +172,8 @@ | Cast the given "real type" to the given "type". | */ - 'type_overrides' => [ + 'type_overrides' => [ 'integer' => 'int', 'boolean' => 'bool', - ], + ], ]; diff --git a/config/session.php b/config/session.php index 4683a9b..06f25ea 100644 --- a/config/session.php +++ b/config/session.php @@ -129,7 +129,7 @@ 'cookie' => env( 'SESSION_COOKIE', - Str::slug(env('APP_NAME', 'laravel'), '_') . '_session' + Str::slug(env('APP_NAME', 'laravel'), '_') . '_session', ), /* diff --git a/database/migrations/0001_01_01_000000_create_roles_table.php b/database/migrations/0001_01_01_000000_create_roles_table.php index f36beeb..386ba0e 100644 --- a/database/migrations/0001_01_01_000000_create_roles_table.php +++ b/database/migrations/0001_01_01_000000_create_roles_table.php @@ -6,7 +6,8 @@ use Illuminate\Support\Facades\Schema; use RonasIT\Support\Traits\MigrationTrait; -return new class () extends Migration { +return new class extends Migration +{ use MigrationTrait; public function up(): void diff --git a/database/migrations/0001_01_01_000001_create_users_table.php b/database/migrations/0001_01_01_000001_create_users_table.php index 5f1e24a..3429402 100644 --- a/database/migrations/0001_01_01_000001_create_users_table.php +++ b/database/migrations/0001_01_01_000001_create_users_table.php @@ -4,7 +4,8 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class () extends Migration { +return new class extends Migration +{ public function up(): void { Schema::create('users', function (Blueprint $table) { diff --git a/database/migrations/0001_01_01_000002_create_settings_table.php b/database/migrations/0001_01_01_000002_create_settings_table.php index 7f45452..33ef9c5 100644 --- a/database/migrations/0001_01_01_000002_create_settings_table.php +++ b/database/migrations/0001_01_01_000002_create_settings_table.php @@ -4,7 +4,8 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class () extends Migration { +return new class extends Migration +{ public function up(): void { Schema::create('settings', function (Blueprint $table) { diff --git a/database/migrations/0001_01_01_000003_create_failed_jobs_table.php b/database/migrations/0001_01_01_000003_create_failed_jobs_table.php index 609b9b6..85264d8 100644 --- a/database/migrations/0001_01_01_000003_create_failed_jobs_table.php +++ b/database/migrations/0001_01_01_000003_create_failed_jobs_table.php @@ -4,7 +4,8 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class () extends Migration { +return new class extends Migration +{ public function up(): void { Schema::create('failed_jobs', function (Blueprint $table) { diff --git a/docker-compose.analyse.yaml b/docker-compose.analyse.yaml new file mode 100644 index 0000000..65dd2e0 --- /dev/null +++ b/docker-compose.analyse.yaml @@ -0,0 +1,6 @@ +services: + nginx: + image: webdevops/php:8.3-alpine + working_dir: /app + volumes: + - .:/app diff --git a/docker-compose.yml b/docker-compose.yml index 62287a2..e1ae546 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: ports: - 5432:5432 environment: - ALLOW_EMPTY_PASSWORD: yes + ALLOW_EMPTY_PASSWORD: "yes" volumes: - .:/app @@ -38,14 +38,14 @@ services: ports: - 5433:5432 environment: - ALLOW_EMPTY_PASSWORD: yes + ALLOW_EMPTY_PASSWORD: "yes" volumes: - .:/app redis: image: bitnami/redis:7.2 environment: - ALLOW_EMPTY_PASSWORD: yes + ALLOW_EMPTY_PASSWORD: "yes" ports: - 6379:6379 diff --git a/lang/en/validation.php b/lang/en/validation.php index 2c1bcba..31a3675 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -13,80 +13,80 @@ | */ - 'accepted' => 'The :attribute must be accepted.', - 'active_url' => 'The :attribute is not a valid URL.', - 'after' => 'The :attribute must be a date after :date.', - 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', - 'alpha' => 'The :attribute may only contain letters.', - 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.', - 'alpha_num' => 'The :attribute may only contain letters and numbers.', - 'array' => 'The :attribute must be an array.', - 'before' => 'The :attribute must be a date before :date.', - 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', - 'between' => [ + 'accepted' => 'The :attribute must be accepted.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute may only contain letters.', + 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.', + 'alpha_num' => 'The :attribute may only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ 'numeric' => 'The :attribute must be between :min and :max.', - 'file' => 'The :attribute must be between :min and :max kilobytes.', - 'string' => 'The :attribute must be between :min and :max characters.', - 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'string' => 'The :attribute must be between :min and :max characters.', + 'array' => 'The :attribute must have between :min and :max items.', ], - 'boolean' => 'The :attribute field must be true or false.', - 'confirmed' => 'The :attribute confirmation does not match.', - 'date' => 'The :attribute is not a valid date.', - 'date_format' => 'The :attribute does not match the format :format.', - 'different' => 'The :attribute and :other must be different.', - 'digits' => 'The :attribute must be :digits digits.', - 'digits_between' => 'The :attribute must be between :min and :max digits.', - 'dimensions' => 'The :attribute has invalid image dimensions.', - 'distinct' => 'The :attribute field has a duplicate value.', - 'email' => 'The :attribute must be a valid email address.', - 'exists' => 'The selected :attribute is invalid.', - 'file' => 'The :attribute must be a file.', - 'filled' => 'The :attribute field must have a value.', - 'image' => 'The :attribute must be an image.', - 'in' => 'The selected :attribute is invalid.', - 'in_array' => 'The :attribute field does not exist in :other.', - 'integer' => 'The :attribute must be an integer.', - 'ip' => 'The :attribute must be a valid IP address.', - 'ipv4' => 'The :attribute must be a valid IPv4 address.', - 'ipv6' => 'The :attribute must be a valid IPv6 address.', - 'json' => 'The :attribute must be a valid JSON string.', - 'max' => [ + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'date' => 'The :attribute is not a valid date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'email' => 'The :attribute must be a valid email address.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'max' => [ 'numeric' => 'The :attribute may not be greater than :max.', - 'file' => 'The :attribute may not be greater than :max kilobytes.', - 'string' => 'The :attribute may not be greater than :max characters.', - 'array' => 'The :attribute may not have more than :max items.', + 'file' => 'The :attribute may not be greater than :max kilobytes.', + 'string' => 'The :attribute may not be greater than :max characters.', + 'array' => 'The :attribute may not have more than :max items.', ], - 'mimes' => 'The :attribute must be a file of type: :values.', - 'mimetypes' => 'The :attribute must be a file of type: :values.', - 'min' => [ + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ 'numeric' => 'The :attribute must be at least :min.', - 'file' => 'The :attribute must be at least :min kilobytes.', - 'string' => 'The :attribute must be at least :min characters.', - 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'string' => 'The :attribute must be at least :min characters.', + 'array' => 'The :attribute must have at least :min items.', ], - 'not_in' => 'The selected :attribute is invalid.', - 'numeric' => 'The :attribute must be a number.', - 'present' => 'The :attribute field must be present.', - 'regex' => 'The :attribute format is invalid.', - 'required' => 'The :attribute field is required.', - 'required_if' => 'The :attribute field is required when :other is :value.', - 'required_unless' => 'The :attribute field is required unless :other is in :values.', - 'required_with' => 'The :attribute field is required when :values is present.', - 'required_with_all' => 'The :attribute field is required when :values is present.', - 'required_without' => 'The :attribute field is required when :values is not present.', + 'not_in' => 'The selected :attribute is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'present' => 'The :attribute field must be present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values is present.', + 'required_without' => 'The :attribute field is required when :values is not present.', 'required_without_all' => 'The :attribute field is required when none of :values are present.', - 'same' => 'The :attribute and :other must match.', - 'size' => [ + 'same' => 'The :attribute and :other must match.', + 'size' => [ 'numeric' => 'The :attribute must be :size.', - 'file' => 'The :attribute must be :size kilobytes.', - 'string' => 'The :attribute must be :size characters.', - 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'string' => 'The :attribute must be :size characters.', + 'array' => 'The :attribute must contain :size items.', ], - 'string' => 'The :attribute must be a string.', - 'timezone' => 'The :attribute must be a valid zone.', - 'unique' => 'The :attribute has already been taken.', - 'uploaded' => 'The :attribute failed to upload.', - 'url' => 'The :attribute format is invalid.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid zone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'url' => 'The :attribute format is invalid.', /* |-------------------------------------------------------------------------- diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..e4b2e67 --- /dev/null +++ b/pint.json @@ -0,0 +1,39 @@ +{ + "preset": "laravel", + "rules": { + "not_operator_with_successor_space": false, + "concat_space": { + "spacing": "one" + }, + "class_attributes_separation": { + "elements": { + "method": "one" + } + }, + "array_syntax": { + "syntax": "short" + }, + "list_syntax": { + "syntax": "long" + }, + "braces": { + "position_after_functions_and_oop_constructs": "next" + }, + "single_line_empty_body": false, + "trailing_comma_in_multiline": { + "elements": [ + "arguments", + "arrays", + "match", + "parameters" + ] + }, + "new_with_parentheses": { + "anonymous_class": false, + "named_class": true + }, + "phpdoc_separation": { + "skip_unlisted_annotations": false + } + } +} \ No newline at end of file diff --git a/resources/views/add_default_user.blade.php b/resources/views/add_default_user.blade.php index 77f4138..c42a04c 100644 --- a/resources/views/add_default_user.blade.php +++ b/resources/views/add_default_user.blade.php @@ -13,7 +13,7 @@ public function up() 'name' => '{{ $name }}', 'email' => '{{ $email }}', 'password' => Hash::make('{{ $password }}'), - 'role_id' => '{{ $role_id }}' + 'role_id' => '{{ $role_id }}', ]); } } diff --git a/tests/AuthTest.php b/tests/AuthTest.php index 8fd9d9a..f39f6cf 100644 --- a/tests/AuthTest.php +++ b/tests/AuthTest.php @@ -157,7 +157,7 @@ public function testRefreshToken() $response->assertJson(fn (AssertableJson $json) => $json->hasAll(['token', 'ttl', 'refresh_ttl'])); $this->assertNotEmpty( - $response->headers->get('authorization') + $response->headers->get('authorization'), ); $authHeader = $response->headers->get('authorization'); @@ -221,7 +221,7 @@ public function testRefreshTokenIat() $this->assertNotEquals( $this->decodeJWTToken($this->token)->iat, - $this->decodeJWTToken($newToken)->iat + $this->decodeJWTToken($newToken)->iat, ); } diff --git a/tests/InitCommandTest.php b/tests/InitCommandTest.php index 3ec077a..fac45e0 100644 --- a/tests/InitCommandTest.php +++ b/tests/InitCommandTest.php @@ -29,7 +29,7 @@ public function testRunWithAdminAndWithoutReadmeCreation() $this->getFixture('migration.php'), 'optionalParameter', 'optionalParameter', - ] + ], ); $this @@ -60,7 +60,7 @@ public function testRunWithAdminAndDefaultReadmeCreation() $this->getFixture('default_readme.md'), 'optionalParameter', 'optionalParameter', - ] + ], ); $this @@ -77,37 +77,37 @@ public function testRunWithAdminAndDefaultReadmeCreation() ->expectsQuestion( 'Are you going to use Issue Tracker? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use Figma? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use Sentry? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use DataDog? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use ArgoCD? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use Laravel Telescope? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use Laravel Nova? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion('Please enter a Manager\'s email', '') ->expectsQuestion('Please enter a Code Owner/Team Lead\'s email', '') @@ -137,7 +137,7 @@ public function testRunWithAdminAndPartialReadmeCreation() $this->getFixture('partial_readme.md'), 'optionalParameter', 'optionalParameter', - ] + ], ); $this @@ -151,37 +151,37 @@ public function testRunWithAdminAndPartialReadmeCreation() ->expectsQuestion( 'Are you going to use Issue Tracker? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'later' + 'later', ) ->expectsQuestion( 'Are you going to use Figma? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'no' + 'no', ) ->expectsQuestion( 'Are you going to use Sentry? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'no' + 'no', ) ->expectsQuestion( 'Are you going to use DataDog? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'no' + 'no', ) ->expectsQuestion( 'Are you going to use ArgoCD? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'no' + 'no', ) ->expectsQuestion( 'Are you going to use Laravel Telescope? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'no' + 'no', ) ->expectsQuestion( 'Are you going to use Laravel Nova? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'no' + 'no', ) ->expectsQuestion('Please enter a Manager\'s email', 'manager@mail.com') ->expectsQuestion('Please enter a Code Owner/Team Lead\'s email', '') @@ -212,7 +212,7 @@ public function testRunWithAdminAndFullReadmeCreation() $this->getFixture('full_readme.md'), 'optionalParameter', 'optionalParameter', - ] + ], ); $this @@ -229,37 +229,37 @@ public function testRunWithAdminAndFullReadmeCreation() ->expectsQuestion( 'Are you going to use Issue Tracker? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://gitlab.com/my-project' + 'https://gitlab.com/my-project', ) ->expectsQuestion( 'Are you going to use Figma? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://figma.com/my-project' + 'https://figma.com/my-project', ) ->expectsQuestion( 'Are you going to use Sentry? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://sentry.com/my-project' + 'https://sentry.com/my-project', ) ->expectsQuestion( 'Are you going to use DataDog? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://datadoghq.com/my-project' + 'https://datadoghq.com/my-project', ) ->expectsQuestion( 'Are you going to use ArgoCD? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://argocd.com/my-project' + 'https://argocd.com/my-project', ) ->expectsQuestion( 'Are you going to use Laravel Telescope? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://mypsite.com/telescope-link' + 'https://mypsite.com/telescope-link', ) ->expectsQuestion( 'Are you going to use Laravel Nova? ' . 'Please enter a link or select `later` to do it later, otherwise select `no`.', - 'https://mypsite.com/nova-link' + 'https://mypsite.com/nova-link', ) ->expectsQuestion('Please enter a Manager\'s email', 'manager@mail.com') ->expectsQuestion('Please enter a Code Owner/Team Lead\'s email', 'lead@mail.com') diff --git a/tests/SettingTest.php b/tests/SettingTest.php index db2c427..0bbfb8f 100644 --- a/tests/SettingTest.php +++ b/tests/SettingTest.php @@ -37,7 +37,7 @@ public function testUpdateNotExists() { $setting = $this->getJsonFixture('update_setting.json'); - $response = $this->actingAs(self::$admin)->json('put', "/settings/not-exists", $setting['value']); + $response = $this->actingAs(self::$admin)->json('put', '/settings/not-exists', $setting['value']); $response->assertNotFound(); } diff --git a/tests/Support/AuthTestTrait.php b/tests/Support/AuthTestTrait.php index 4b78f29..8716321 100644 --- a/tests/Support/AuthTestTrait.php +++ b/tests/Support/AuthTestTrait.php @@ -47,9 +47,9 @@ public function decodeJWTToken($token) str_replace( '_', '/', - str_replace('-', '+', explode('.', $token)[1]) - ) - ) + str_replace('-', '+', explode('.', $token)[1]), + ), + ), ); } } diff --git a/tests/Support/InitCommandMockTrait.php b/tests/Support/InitCommandMockTrait.php index 773721b..c481951 100644 --- a/tests/Support/InitCommandMockTrait.php +++ b/tests/Support/InitCommandMockTrait.php @@ -20,8 +20,8 @@ public function mockFilePutContent(...$arguments): void namespace: 'App\Console\Commands', callChain: array_map( fn ($call) => $this->functionCall('file_put_contents', $call), - $callChain - ) + $callChain, + ), ); } @@ -31,7 +31,7 @@ public function mockShellExec(): void $this->functionCall( name: 'shell_exec', arguments: ['git ls-remote --get-url origin'], - result: 'https://github.com/ronasit/laravel-helpers.git' + result: 'https://github.com/ronasit/laravel-helpers.git', ), ]); } diff --git a/tests/TestCase.php b/tests/TestCase.php index 1b37cf0..69114d9 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -30,8 +30,6 @@ public function setUp(): void /** * Creates the application. - * - * @return Application */ public function createApplication(): Application { diff --git a/tests/UserTest.php b/tests/UserTest.php index eb10689..36fc4de 100644 --- a/tests/UserTest.php +++ b/tests/UserTest.php @@ -4,7 +4,6 @@ use App\Models\User; use App\Tests\Support\AuthTestTrait; -use Illuminate\Support\Arr; use PHPUnit\Framework\Attributes\DataProvider; use RonasIT\Support\Tests\ModelTestState; diff --git a/tests/fixtures/InitCommandTest/migration.php b/tests/fixtures/InitCommandTest/migration.php index cc0abd6..677353c 100644 --- a/tests/fixtures/InitCommandTest/migration.php +++ b/tests/fixtures/InitCommandTest/migration.php @@ -15,7 +15,7 @@ public function up() 'name' => 'TestAdmin', 'email' => 'mail@mail.com', 'password' => Hash::make('123456'), - 'role_id' => '1' + 'role_id' => '1', ]); } } diff --git a/tlint.json b/tlint.json deleted file mode 100644 index 866df77..0000000 --- a/tlint.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "disabled": [ - "SpaceAfterSoleNotOperator", - "AlphabeticalImports" - ], - "excluded": [ - "_ide_helper.php", - "_ide_helper_models.php", - ".phpstorm.meta.php", - ".php-cs-fixer.dist.php", - "bootstrap/app.php", - "public/index.php" - ], - "paths": [ - { - "controllers": [ - "app/Http/Services", - "app/Http/Repositories" - ] - } - ] -} \ No newline at end of file