From e615408ab69513f4e73202d1e6b30780a5b09bb9 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Thu, 21 Mar 2024 00:51:40 +0300 Subject: [PATCH] code style --- composer.lock | 390 +++------------------------ src/Models/Concerns/HasCompanies.php | 2 +- 2 files changed, 41 insertions(+), 351 deletions(-) diff --git a/composer.lock b/composer.lock index 0ede617..1cdf9ca 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": "6242c1e0161201a3f83b7cd577bc9871", + "content-hash": "30f8800bfa580b51cc61d69b9d8a95b6", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -1325,7 +1325,7 @@ }, { "name": "filament/actions", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", @@ -1378,16 +1378,16 @@ }, { "name": "filament/filament", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "728c31d128b9cbb7d28a5ba19a63d39730064cae" + "reference": "ea6d13fe154cece0a74a4d898d07e40bf72aad3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/728c31d128b9cbb7d28a5ba19a63d39730064cae", - "reference": "728c31d128b9cbb7d28a5ba19a63d39730064cae", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/ea6d13fe154cece0a74a4d898d07e40bf72aad3c", + "reference": "ea6d13fe154cece0a74a4d898d07e40bf72aad3c", "shasum": "" }, "require": { @@ -1439,20 +1439,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T15:24:45+00:00" + "time": "2024-03-20T10:06:43+00:00" }, { "name": "filament/forms", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "75601e381da9c2b5cbd85f1fa9aa26778d564d4d" + "reference": "4f65d7a75809501a58b3d05028ddcbb46f06eb1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/75601e381da9c2b5cbd85f1fa9aa26778d564d4d", - "reference": "75601e381da9c2b5cbd85f1fa9aa26778d564d4d", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/4f65d7a75809501a58b3d05028ddcbb46f06eb1a", + "reference": "4f65d7a75809501a58b3d05028ddcbb46f06eb1a", "shasum": "" }, "require": { @@ -1495,11 +1495,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T00:27:54+00:00" + "time": "2024-03-20T10:06:36+00:00" }, { "name": "filament/infolists", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", @@ -1550,7 +1550,7 @@ }, { "name": "filament/notifications", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", @@ -1602,7 +1602,7 @@ }, { "name": "filament/spatie-laravel-translatable-plugin", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-translatable-plugin.git", @@ -1647,7 +1647,7 @@ }, { "name": "filament/support", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", @@ -1704,16 +1704,16 @@ }, { "name": "filament/tables", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "5abd8e1baa5485aa4da499d632be7e2424ad6d4c" + "reference": "0b57a67224d06a6e6c83b131fad68a5c71bf03a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/5abd8e1baa5485aa4da499d632be7e2424ad6d4c", - "reference": "5abd8e1baa5485aa4da499d632be7e2424ad6d4c", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/0b57a67224d06a6e6c83b131fad68a5c71bf03a2", + "reference": "0b57a67224d06a6e6c83b131fad68a5c71bf03a2", "shasum": "" }, "require": { @@ -1753,11 +1753,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-03-19T13:12:04+00:00" + "time": "2024-03-20T10:07:09+00:00" }, { "name": "filament/widgets", - "version": "v3.2.56", + "version": "v3.2.57", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", @@ -2096,16 +2096,16 @@ }, { "name": "kirschbaum-development/eloquent-power-joins", - "version": "3.5.1", + "version": "3.5.2", "source": { "type": "git", "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", - "reference": "571f09c4b23c349cb1a5db8bb88af291ed30389c" + "reference": "2fae3aca9eefd4591603a7e53406ab9f56b69fad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/571f09c4b23c349cb1a5db8bb88af291ed30389c", - "reference": "571f09c4b23c349cb1a5db8bb88af291ed30389c", + "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/2fae3aca9eefd4591603a7e53406ab9f56b69fad", + "reference": "2fae3aca9eefd4591603a7e53406ab9f56b69fad", "shasum": "" }, "require": { @@ -2152,9 +2152,9 @@ ], "support": { "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", - "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.1" + "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.2" }, - "time": "2024-03-19T22:45:47+00:00" + "time": "2024-03-20T10:23:27+00:00" }, { "name": "lab404/laravel-impersonate", @@ -2293,16 +2293,16 @@ }, { "name": "lara-zeus/erebus", - "version": "v1.0.2", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/lara-zeus/erebus.git", - "reference": "6b0c1fad3370403ea0c69e17057abaf3b5d73faa" + "reference": "535e71b9fc42c3d7c2ce31e707cda79170060c8f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/erebus/zipball/6b0c1fad3370403ea0c69e17057abaf3b5d73faa", - "reference": "6b0c1fad3370403ea0c69e17057abaf3b5d73faa", + "url": "https://api.github.com/repos/lara-zeus/erebus/zipball/535e71b9fc42c3d7c2ce31e707cda79170060c8f", + "reference": "535e71b9fc42c3d7c2ce31e707cda79170060c8f", "shasum": "" }, "require": { @@ -2316,8 +2316,7 @@ "php": "^8.1", "spatie/laravel-activitylog": "^4.7", "spatie/laravel-permission": "^6.4", - "stechstudio/filament-impersonate": "^3.6", - "z3d0x/filament-logger": "^0.7.0" + "stechstudio/filament-impersonate": "^3.6" }, "require-dev": { "larastan/larastan": "^2.2", @@ -2379,93 +2378,7 @@ "type": "github" } ], - "time": "2024-03-20T01:04:49+00:00" - }, - { - "name": "lara-zeus/pontus", - "version": "v1.0.1", - "source": { - "type": "git", - "url": "https://github.com/lara-zeus/pontus.git", - "reference": "84e5fe4ed70e2fa10603b5e8939ad4cb53589523" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/lara-zeus/pontus/zipball/84e5fe4ed70e2fa10603b5e8939ad4cb53589523", - "reference": "84e5fe4ed70e2fa10603b5e8939ad4cb53589523", - "shasum": "" - }, - "require": { - "calebporzio/sushi": "^2.4", - "ext-json": "*", - "ext-pdo_sqlite": "*", - "ext-sqlite3": "*", - "filament/filament": "^3.2", - "php": "^8.1", - "rinvex/laravel-subscriptions": "dev-new" - }, - "require-dev": { - "larastan/larastan": "^2.2", - "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.0", - "orchestra/testbench": "^8.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "LaraZeus\\Pontus\\PontusServiceProvider" - ], - "aliases": { - "Pontus": "LaraZeus\\Pontus\\Facades\\Pontus" - } - } - }, - "autoload": { - "psr-4": { - "LaraZeus\\Pontus\\": "src", - "LaraZeus\\Pontus\\Database\\Factories\\": "database/factories/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "php coder", - "email": "info@larazeus.com", - "role": "Owner" - } - ], - "description": "subscriptions, plans, invoices, and features", - "homepage": "https://larazeus.com/pontus", - "keywords": [ - "features", - "filamentphp", - "invoices", - "lara-zeus", - "laravel", - "manager", - "plans", - "pontus", - "subscriptions" - ], - "support": { - "issues": "https://github.com/lara-zeus/pontus/issues", - "source": "https://github.com/lara-zeus/pontus" - }, - "funding": [ - { - "url": "https://github.com/atmonshi", - "type": "github" - } - ], - "time": "2024-03-18T22:37:33+00:00" + "time": "2024-03-20T20:37:03+00:00" }, { "name": "lara-zeus/popover", @@ -5063,96 +4976,6 @@ }, "time": "2024-02-28T14:57:11+00:00" }, - { - "name": "rinvex/laravel-subscriptions", - "version": "dev-new", - "source": { - "type": "git", - "url": "https://github.com/still-code/laravel-subscriptions.git", - "reference": "72724ff0502c1ff8338b73fb778d05ced766a1be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/still-code/laravel-subscriptions/zipball/72724ff0502c1ff8338b73fb778d05ced766a1be", - "reference": "72724ff0502c1ff8338b73fb778d05ced766a1be", - "shasum": "" - }, - "require": { - "illuminate/console": "^8.0.0 | ^9.0.0 | ^10.0.0 | ^11.0.0", - "illuminate/database": "^8.0.0 | ^9.0.0 | ^10.0.0 | ^11.0.0", - "illuminate/support": "^8.0.0 | ^9.0.0 | ^10.0.0 | ^11.0.0", - "php": "^8.1", - "spatie/eloquent-sortable": "^4.0", - "spatie/laravel-sluggable": "^3.4", - "spatie/laravel-translatable": "^6.4" - }, - "require-dev": { - "codedungeon/phpunit-result-printer": "^0.31.0", - "illuminate/container": "^8.0.0 | ^9.0.0", - "phpunit/phpunit": "^9.5.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Rinvex\\Subscriptions\\Providers\\SubscriptionsServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Rinvex\\Subscriptions\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "Rinvex\\Subscriptions\\Tests\\": "tests" - } - }, - "scripts": { - "test": [ - "vendor/bin/phpunit" - ] - }, - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Rinvex LLC", - "homepage": "https://rinvex.com", - "email": "help@rinvex.com" - }, - { - "name": "Abdelrahman Omran", - "homepage": "https://omranic.com", - "email": "me@omranic.com", - "role": "Project Lead" - }, - { - "name": "The Generous Laravel Community", - "homepage": "https://github.com/rinvex/laravel-subscriptions/contributors" - } - ], - "description": "Rinvex Subscriptions is a flexible plans and subscription management system for Laravel, with the required tools to run your SAAS like services efficiently. It's simple architecture, accompanied by powerful underlying to afford solid platform for your business.", - "homepage": "https://rinvex.com", - "keywords": [ - "database", - "feature", - "laravel", - "plan", - "recurring", - "subscription", - "value" - ], - "support": { - "email": "help@rinvex.com", - "issues": "https://github.com/rinvex/laravel-subscriptions/issues", - "source": "https://github.com/rinvex/laravel-subscriptions", - "docs": "https://github.com/rinvex/laravel-subscriptions/blob/master/README.md" - }, - "time": "2024-02-28T12:22:00+00:00" - }, { "name": "ryangjchandler/blade-capture-directive", "version": "v1.0.0", @@ -5578,16 +5401,16 @@ }, { "name": "spatie/laravel-package-tools", - "version": "1.16.3", + "version": "1.16.4", "source": { "type": "git", "url": "https://github.com/spatie/laravel-package-tools.git", - "reference": "59db18c2e20d49a0b6d447bb1c654f6c123beb9e" + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/59db18c2e20d49a0b6d447bb1c654f6c123beb9e", - "reference": "59db18c2e20d49a0b6d447bb1c654f6c123beb9e", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", "shasum": "" }, "require": { @@ -5626,7 +5449,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-package-tools/issues", - "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.3" + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.4" }, "funding": [ { @@ -5634,7 +5457,7 @@ "type": "github" } ], - "time": "2024-03-07T07:35:57+00:00" + "time": "2024-03-20T07:29:11+00:00" }, { "name": "spatie/laravel-permission", @@ -5718,65 +5541,6 @@ ], "time": "2024-02-28T08:11:20+00:00" }, - { - "name": "spatie/laravel-sluggable", - "version": "3.6.0", - "source": { - "type": "git", - "url": "https://github.com/spatie/laravel-sluggable.git", - "reference": "a44afe6f317959bcfdadcec3148486859fd5c1f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-sluggable/zipball/a44afe6f317959bcfdadcec3148486859fd5c1f5", - "reference": "a44afe6f317959bcfdadcec3148486859fd5c1f5", - "shasum": "" - }, - "require": { - "illuminate/database": "^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0", - "php": "^8.0" - }, - "require-dev": { - "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.20|^2.0", - "spatie/laravel-translatable": "^5.0|^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Spatie\\Sluggable\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://spatie.be", - "role": "Developer" - } - ], - "description": "Generate slugs when saving Eloquent models", - "homepage": "https://github.com/spatie/laravel-sluggable", - "keywords": [ - "laravel-sluggable", - "spatie" - ], - "support": { - "source": "https://github.com/spatie/laravel-sluggable/tree/3.6.0" - }, - "funding": [ - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2024-02-26T08:33:29+00:00" - }, { "name": "spatie/laravel-tags", "version": "4.6.1", @@ -8538,80 +8302,6 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" - }, - { - "name": "z3d0x/filament-logger", - "version": "v0.7.0", - "source": { - "type": "git", - "url": "https://github.com/Z3d0X/filament-logger.git", - "reference": "b98c5e3877eb519d24e75843922407d327ecc1a8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Z3d0X/filament-logger/zipball/b98c5e3877eb519d24e75843922407d327ecc1a8", - "reference": "b98c5e3877eb519d24e75843922407d327ecc1a8", - "shasum": "" - }, - "require": { - "filament/filament": "^3.0", - "illuminate/contracts": "^8.0 | ^9.0 | ^10.0 | ^11.0", - "php": "^8.0 | ^8.1", - "spatie/laravel-activitylog": "^4.5", - "spatie/laravel-package-tools": "^1.13.5" - }, - "require-dev": { - "nunomaduro/collision": "^6.0 | ^8.0", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^7.0 | ^9.0", - "pestphp/pest": "^1.21 | ^2.34", - "pestphp/pest-plugin-laravel": "^1.1 | ^2.3", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5 | ^10.5", - "spatie/laravel-ray": "^1.26" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Z3d0X\\FilamentLogger\\FilamentLoggerServiceProvider" - ], - "aliases": { - "FilamentLogger": "Z3d0X\\FilamentLogger\\Facades\\FilamentLogger" - } - } - }, - "autoload": { - "psr-4": { - "Z3d0X\\FilamentLogger\\": "src", - "Z3d0X\\FilamentLogger\\Database\\Factories\\": "database/factories" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ziyaan Hassan", - "email": "ziyaan2010@gmail.com", - "role": "Developer" - } - ], - "description": "Activity logger for filament", - "homepage": "https://github.com/z3d0x/filament-logger", - "keywords": [ - "Z3d0X", - "filament-logger", - "laravel" - ], - "support": { - "issues": "https://github.com/Z3d0X/filament-logger/issues", - "source": "https://github.com/Z3d0X/filament-logger/tree/v0.7.0" - }, - "time": "2024-03-12T17:04:40+00:00" } ], "packages-dev": [ diff --git a/src/Models/Concerns/HasCompanies.php b/src/Models/Concerns/HasCompanies.php index bc5586f..d3d7eeb 100644 --- a/src/Models/Concerns/HasCompanies.php +++ b/src/Models/Concerns/HasCompanies.php @@ -66,7 +66,7 @@ public function ownsCompany(?Model $company = null): bool return $this->id === $company->{$this->getForeignKey()}; } - public function belongsToCompany(?Company $company = null): bool + public function belongsToCompany(null | Company | Model $company = null): bool { if ($company === null) { return false;