From 43338e6248521645c56949eff2644fc7024d5257 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Thu, 10 Sep 2020 20:15:42 +0100 Subject: [PATCH] Updating the package --- .github/workflows/run-tests.yml | 6 +-- README.md | 4 +- _docs/0-Home.md | 2 +- _docs/1-Installation-and-Setup.md | 47 ++++++++++--------- composer.json | 17 +++++-- src/Contracts/LocalesManager.php | 1 - src/Contracts/Localization.php | 1 - src/Contracts/Negotiator.php | 1 - src/Contracts/RouteBindable.php | 1 - src/Contracts/RouteTranslator.php | 1 - src/Contracts/Url.php | 1 - src/Entities/Locale.php | 1 - src/Entities/LocaleCollection.php | 1 - src/Entities/SupportedLocaleCollection.php | 1 - src/Events/TranslationHasBeenSet.php | 1 - .../InvalidTranslationException.php | 1 - src/Exceptions/LocalizationException.php | 1 - .../UndefinedSupportedLocalesException.php | 1 - src/Exceptions/UnsupportedLocaleException.php | 1 - .../UntranslatableAttributeException.php | 1 - src/Localization.php | 1 - src/LocalizationServiceProvider.php | 1 - src/Middleware/LocaleCookieRedirect.php | 1 - src/Middleware/LocaleSessionRedirect.php | 1 - src/Middleware/LocalizationRedirect.php | 1 - src/Middleware/LocalizationRoutes.php | 1 - src/Middleware/Middleware.php | 1 - src/Middleware/TranslationRedirect.php | 1 - src/Providers/DeferredServicesProvider.php | 11 ++--- src/Providers/RoutingServiceProvider.php | 1 - src/Routing/Router.php | 1 - src/Traits/HasTranslations.php | 1 - src/Utilities/LocalesManager.php | 4 +- src/Utilities/Negotiator.php | 1 - src/Utilities/RouteTranslator.php | 1 - src/Utilities/Url.php | 1 - tests/Entities/LocaleCollectionTest.php | 1 - tests/Entities/LocaleTest.php | 1 - tests/LocalizationServiceProviderTest.php | 1 - tests/LocalizationTest.php | 1 - tests/Middleware/LocaleCookieRedirectTest.php | 3 +- .../Middleware/LocaleSessionRedirectTest.php | 1 - .../DeferredServicesProviderTest.php | 1 - tests/Routing/RouterTest.php | 1 - .../Stubs/Http/Controllers/BarController.php | 1 - .../Http/Controllers/DummyController.php | 1 - tests/Stubs/Http/Kernel.php | 1 - .../Stubs/Http/Middleware/EncryptCookies.php | 1 - tests/Stubs/Http/RouteRegistrar.php | 1 - tests/Stubs/Models/TranslatableModel.php | 1 - tests/Stubs/User.php | 1 - tests/TestCase.php | 1 - tests/TranslatableModelTest.php | 1 - tests/Utilities/LocalesManagerTest.php | 1 - tests/Utilities/NegotiatorTest.php | 1 - tests/Utilities/UrlTest.php | 1 - 56 files changed, 49 insertions(+), 93 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 76b8c31..b9511e6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,13 +16,13 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Cache dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.composer/cache/files - key: dependencies-laravel-7.x-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + key: dependencies-laravel-7-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/README.md b/README.md index d0d37bc..54d3f0e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Localization/ ### Features * Easy setup & configuration. - * Laravel `5.x | 6.x | 7.x` are supported. + * Laravel `5.x` to `7.x` are supported. * SEO-Friendly (Search engine optimization). * New extended Router to manage your localized routes. * Translated Eloquent Models. @@ -52,7 +52,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail. - [All Contributors][link-contributors] [badge_license]: http://img.shields.io/packagist/l/arcanedev/localization.svg?style=flat-square -[badge_laravel]: https://img.shields.io/badge/Laravel-5.x|6.x|7.x-orange.svg?style=flat-square +[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%207.x-orange.svg?style=flat-square [badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/Localization/run-tests?style=flat-square [badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/Localization.svg?style=flat-square [badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/Localization.svg?style=flat-square diff --git a/_docs/0-Home.md b/_docs/0-Home.md index bd65833..11b21d0 100644 --- a/_docs/0-Home.md +++ b/_docs/0-Home.md @@ -7,7 +7,7 @@ Feel free to check out the [Releases](https://github.com/ARCANEDEV/Localization/ ### Features * Easy setup & configuration. - * Laravel `5.x` & `6.0` are supported. + * Laravel `5.x` to `7.x` are supported. * SEO-Friendly (Search engine optimization). * New extended Router to manage your localized routes. * Locales selector menu (Publishable & Customizable). diff --git a/_docs/1-Installation-and-Setup.md b/_docs/1-Installation-and-Setup.md index 48694ec..06c9ceb 100644 --- a/_docs/1-Installation-and-Setup.md +++ b/_docs/1-Installation-and-Setup.md @@ -9,28 +9,31 @@ ## Version Compatibility -| Localization | Laravel | -|:---------------------------------------|:--------------------------------------------------------------------------------------------------------------------| -| ![Localization v7.x][localization_7_x] | ![Laravel v7.*][laravel_7_x] | -| ![Localization v6.x][localization_6_x] | ![Laravel v6.*][laravel_6_x] | -| ![Localization v5.x][localization_5_x] | ![Laravel v5.8][laravel_5_8] | -| ![Localization v4.x][localization_4_x] | ![Laravel v5.7][laravel_5_7] | -| ![Localization v3.x][localization_3_x] | ![Laravel v5.6][laravel_5_6] | -| ![Localization v2.x][localization_2_x] | ![Laravel v5.5][laravel_5_5] | -| ![Localization v1.x][localization_1_x] | ![Laravel v5.4][laravel_5_4] | -| ![Localization v0.x][localization_0_x] | ![Laravel v5.0][laravel_5_0] ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] | - -[laravel_7_x]: https://img.shields.io/badge/v7.x-supported-brightgreen.svg?style=flat-square "Laravel v7.*" -[laravel_6_x]: https://img.shields.io/badge/v6.x-supported-brightgreen.svg?style=flat-square "Laravel v6.*" -[laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8" -[laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7" -[laravel_5_6]: https://img.shields.io/badge/v5.6-supported-brightgreen.svg?style=flat-square "Laravel v5.6" -[laravel_5_5]: https://img.shields.io/badge/v5.5-supported-brightgreen.svg?style=flat-square "Laravel v5.5" -[laravel_5_4]: https://img.shields.io/badge/v5.4-supported-brightgreen.svg?style=flat-square "Laravel v5.4" -[laravel_5_3]: https://img.shields.io/badge/v5.3-supported-brightgreen.svg?style=flat-square "Laravel v5.3" -[laravel_5_2]: https://img.shields.io/badge/v5.2-supported-brightgreen.svg?style=flat-square "Laravel v5.2" -[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1" -[laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0" +| Laravel | Localization | +|:-----------------------------|:---------------------------------------| +| ![Laravel v7.*][laravel_7_x] | ![Localization v7.x][localization_7_x] | +| ![Laravel v6.*][laravel_6_x] | ![Localization v6.x][localization_6_x] | +| ![Laravel v5.8][laravel_5_8] | ![Localization v5.x][localization_5_x] | +| ![Laravel v5.7][laravel_5_7] | ![Localization v4.x][localization_4_x] | +| ![Laravel v5.6][laravel_5_6] | ![Localization v3.x][localization_3_x] | +| ![Laravel v5.5][laravel_5_5] | ![Localization v2.x][localization_2_x] | +| ![Laravel v5.4][laravel_5_4] | ![Localization v1.x][localization_1_x] | +| ![Laravel v5.3][laravel_5_3] | ![Localization v0.x][localization_0_x] | +| ![Laravel v5.2][laravel_5_2] | ![Localization v0.x][localization_0_x] | +| ![Laravel v5.1][laravel_5_1] | ![Localization v0.x][localization_0_x] | +| ![Laravel v5.0][laravel_5_0] | ![Localization v0.x][localization_0_x] | + +[laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.*" +[laravel_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "Laravel v6.*" +[laravel_5_8]: https://img.shields.io/badge/version-5.8-blue.svg?style=flat-square "Laravel v5.8" +[laravel_5_7]: https://img.shields.io/badge/version-5.7-blue.svg?style=flat-square "Laravel v5.7" +[laravel_5_6]: https://img.shields.io/badge/version-5.6-blue.svg?style=flat-square "Laravel v5.6" +[laravel_5_5]: https://img.shields.io/badge/version-5.5-blue.svg?style=flat-square "Laravel v5.5" +[laravel_5_4]: https://img.shields.io/badge/version-5.4-blue.svg?style=flat-square "Laravel v5.4" +[laravel_5_3]: https://img.shields.io/badge/version-5.3-blue.svg?style=flat-square "Laravel v5.3" +[laravel_5_2]: https://img.shields.io/badge/version-5.2-blue.svg?style=flat-square "Laravel v5.2" +[laravel_5_1]: https://img.shields.io/badge/version-5.1-blue.svg?style=flat-square "Laravel v5.1" +[laravel_5_0]: https://img.shields.io/badge/version-5.0-blue.svg?style=flat-square "Laravel v5.0" [localization_7_x]: https://img.shields.io/badge/version-7.*-blue.svg?style=flat-square "Localization v7.*" [localization_6_x]: https://img.shields.io/badge/version-6.*-blue.svg?style=flat-square "Localization v6.*" diff --git a/composer.json b/composer.json index 597970d..74005f4 100644 --- a/composer.json +++ b/composer.json @@ -14,15 +14,15 @@ "type": "library", "license": "MIT", "require": { - "php": "^7.2.5", - "ext-json": "*", + "php": "^7.2.5", + "ext-json": "*", "arcanedev/support": "^7.0" }, "require-dev": { - "ext-intl": "*", + "ext-intl": "*", "orchestra/testbench": "^5.0", - "mockery/mockery": "^1.3.1", - "phpunit/phpunit": "^8.5|^9.0" + "mockery/mockery": "^1.3.1", + "phpunit/phpunit": "^8.5|^9.0" }, "autoload": { "psr-4": { @@ -35,6 +35,10 @@ "Arcanedev\\Localization\\Tests\\": "tests/" } }, + "scripts": { + "test": "phpunit", + "coverage": "phpunit --coverage-html build/coverage/html" + }, "extra": { "laravel": { "providers": [ @@ -46,6 +50,9 @@ "suggest": { "ext-intl": "Use Intl extension for 'Locale' class (an identifier used to get language)." }, + "config": { + "sort-packages": true + }, "minimum-stability": "dev", "prefer-stable": true } diff --git a/src/Contracts/LocalesManager.php b/src/Contracts/LocalesManager.php index f372d67..2681a7f 100644 --- a/src/Contracts/LocalesManager.php +++ b/src/Contracts/LocalesManager.php @@ -7,7 +7,6 @@ /** * Interface LocalesManager * - * @package Arcanedev\Localization\Contracts * @author ARCANEDEV */ interface LocalesManager diff --git a/src/Contracts/Localization.php b/src/Contracts/Localization.php index 27a6f5c..0119fa5 100644 --- a/src/Contracts/Localization.php +++ b/src/Contracts/Localization.php @@ -9,7 +9,6 @@ /** * Interface Localization * - * @package Arcanedev\Localization\Contracts * @author ARCANEDEV */ interface Localization diff --git a/src/Contracts/Negotiator.php b/src/Contracts/Negotiator.php index f64256f..1de661e 100644 --- a/src/Contracts/Negotiator.php +++ b/src/Contracts/Negotiator.php @@ -10,7 +10,6 @@ /** * Interface Negotiator * - * @package Arcanedev\Localization\Contracts * @author ARCANEDEV */ interface Negotiator diff --git a/src/Contracts/RouteBindable.php b/src/Contracts/RouteBindable.php index 0ad06ed..fe4e3e9 100644 --- a/src/Contracts/RouteBindable.php +++ b/src/Contracts/RouteBindable.php @@ -7,7 +7,6 @@ /** * Interface RouteBindable * - * @package Arcanedev\Localization\Contracts * @author ARCANEDEV */ interface RouteBindable diff --git a/src/Contracts/RouteTranslator.php b/src/Contracts/RouteTranslator.php index 33ece5c..daea570 100644 --- a/src/Contracts/RouteTranslator.php +++ b/src/Contracts/RouteTranslator.php @@ -9,7 +9,6 @@ /** * Interface RouteTranslator * - * @package Arcanedev\Localization\Contracts * @author ARCANEDEV */ interface RouteTranslator diff --git a/src/Contracts/Url.php b/src/Contracts/Url.php index ed4bb8d..2ea2668 100644 --- a/src/Contracts/Url.php +++ b/src/Contracts/Url.php @@ -7,7 +7,6 @@ /** * Interface Url * - * @package Arcanedev\Localization\Contracts * @author ARCANEDEV */ interface Url diff --git a/src/Entities/Locale.php b/src/Entities/Locale.php index 89548bb..36f776f 100644 --- a/src/Entities/Locale.php +++ b/src/Entities/Locale.php @@ -11,7 +11,6 @@ /** * Class Locale * - * @package Arcanedev\Localization\Entities * @author ARCANEDEV */ class Locale implements Arrayable, Jsonable, JsonSerializable diff --git a/src/Entities/LocaleCollection.php b/src/Entities/LocaleCollection.php index f0d0faa..7de067f 100644 --- a/src/Entities/LocaleCollection.php +++ b/src/Entities/LocaleCollection.php @@ -9,7 +9,6 @@ /** * Class LocaleCollection * - * @package Arcanedev\Localization\Entities * @author ARCANEDEV */ class LocaleCollection extends Collection diff --git a/src/Entities/SupportedLocaleCollection.php b/src/Entities/SupportedLocaleCollection.php index 9ca7df4..a018c9f 100644 --- a/src/Entities/SupportedLocaleCollection.php +++ b/src/Entities/SupportedLocaleCollection.php @@ -9,7 +9,6 @@ /** * Class SupportedLocaleCollection * - * @package Arcanedev\Localization\Entities * @author ARCANEDEV */ class SupportedLocaleCollection extends Collection diff --git a/src/Events/TranslationHasBeenSet.php b/src/Events/TranslationHasBeenSet.php index 212e30b..030f235 100644 --- a/src/Events/TranslationHasBeenSet.php +++ b/src/Events/TranslationHasBeenSet.php @@ -7,7 +7,6 @@ /** * Class TranslationHasBeenSet * - * @package Arcanedev\Localization\Events * @author ARCANEDEV */ class TranslationHasBeenSet diff --git a/src/Exceptions/InvalidTranslationException.php b/src/Exceptions/InvalidTranslationException.php index b34663e..2afbeaf 100644 --- a/src/Exceptions/InvalidTranslationException.php +++ b/src/Exceptions/InvalidTranslationException.php @@ -7,7 +7,6 @@ /** * Class InvalidTranslationException * - * @package Arcanedev\Localization\Exceptions * @author ARCANEDEV */ class InvalidTranslationException extends LocalizationException {} diff --git a/src/Exceptions/LocalizationException.php b/src/Exceptions/LocalizationException.php index a26f76b..13e7a59 100644 --- a/src/Exceptions/LocalizationException.php +++ b/src/Exceptions/LocalizationException.php @@ -9,7 +9,6 @@ /** * Class LocalizationException * - * @package Arcanedev\Localization\Exceptions * @author ARCANEDEV */ abstract class LocalizationException extends Exception {} diff --git a/src/Exceptions/UndefinedSupportedLocalesException.php b/src/Exceptions/UndefinedSupportedLocalesException.php index a6f4f88..e22cec3 100644 --- a/src/Exceptions/UndefinedSupportedLocalesException.php +++ b/src/Exceptions/UndefinedSupportedLocalesException.php @@ -7,7 +7,6 @@ /** * Class UndefinedSupportedLocalesException * - * @package Arcanedev\Localization\Exceptions * @author ARCANEDEV */ class UndefinedSupportedLocalesException extends LocalizationException diff --git a/src/Exceptions/UnsupportedLocaleException.php b/src/Exceptions/UnsupportedLocaleException.php index 8732667..e0b993a 100644 --- a/src/Exceptions/UnsupportedLocaleException.php +++ b/src/Exceptions/UnsupportedLocaleException.php @@ -7,7 +7,6 @@ /** * Class UnsupportedLocaleException * - * @package Arcanedev\Localization\Exceptions * @author ARCANEDEV */ class UnsupportedLocaleException extends LocalizationException {} diff --git a/src/Exceptions/UntranslatableAttributeException.php b/src/Exceptions/UntranslatableAttributeException.php index ee54a29..a529317 100644 --- a/src/Exceptions/UntranslatableAttributeException.php +++ b/src/Exceptions/UntranslatableAttributeException.php @@ -7,7 +7,6 @@ /** * Class UntranslatableAttributeException * - * @package Arcanedev\Localization\Exceptions * @author ARCANEDEV */ class UntranslatableAttributeException extends LocalizationException diff --git a/src/Localization.php b/src/Localization.php index 175c6bd..bbcc6de 100644 --- a/src/Localization.php +++ b/src/Localization.php @@ -16,7 +16,6 @@ /** * Class Localization * - * @package Arcanedev\Localization * @author ARCANEDEV */ class Localization implements LocalizationContract diff --git a/src/LocalizationServiceProvider.php b/src/LocalizationServiceProvider.php index b815f41..dadae85 100644 --- a/src/LocalizationServiceProvider.php +++ b/src/LocalizationServiceProvider.php @@ -9,7 +9,6 @@ /** * Class LocalizationServiceProvider * - * @package Arcanedev\Localization * @author ARCANEDEV */ class LocalizationServiceProvider extends PackageServiceProvider diff --git a/src/Middleware/LocaleCookieRedirect.php b/src/Middleware/LocaleCookieRedirect.php index 5d43404..93059fe 100644 --- a/src/Middleware/LocaleCookieRedirect.php +++ b/src/Middleware/LocaleCookieRedirect.php @@ -10,7 +10,6 @@ /** * Class LocaleCookieRedirect * - * @package Arcanedev\Localization\Middleware * @author ARCANEDEV */ class LocaleCookieRedirect extends Middleware diff --git a/src/Middleware/LocaleSessionRedirect.php b/src/Middleware/LocaleSessionRedirect.php index 7e4023d..8fe4a0f 100644 --- a/src/Middleware/LocaleSessionRedirect.php +++ b/src/Middleware/LocaleSessionRedirect.php @@ -10,7 +10,6 @@ /** * Class LocaleSessionRedirect * - * @package Arcanedev\Localization\Middleware * @author ARCANEDEV */ class LocaleSessionRedirect extends Middleware diff --git a/src/Middleware/LocalizationRedirect.php b/src/Middleware/LocalizationRedirect.php index 37eb74b..d41e25b 100644 --- a/src/Middleware/LocalizationRedirect.php +++ b/src/Middleware/LocalizationRedirect.php @@ -10,7 +10,6 @@ /** * Class LocalizationRedirect * - * @package Arcanedev\Localization\Middleware * @author ARCANEDEV */ class LocalizationRedirect extends Middleware diff --git a/src/Middleware/LocalizationRoutes.php b/src/Middleware/LocalizationRoutes.php index f73b02a..ebf6308 100644 --- a/src/Middleware/LocalizationRoutes.php +++ b/src/Middleware/LocalizationRoutes.php @@ -10,7 +10,6 @@ /** * Class LocalizationRoutes * - * @package Arcanedev\Localization\Middleware * @author ARCANEDEV */ class LocalizationRoutes extends Middleware diff --git a/src/Middleware/Middleware.php b/src/Middleware/Middleware.php index e655443..be768d9 100644 --- a/src/Middleware/Middleware.php +++ b/src/Middleware/Middleware.php @@ -11,7 +11,6 @@ /** * Class Middleware * - * @package Arcanedev\Localization\Bases * @author ARCANEDEV */ abstract class Middleware diff --git a/src/Middleware/TranslationRedirect.php b/src/Middleware/TranslationRedirect.php index 8fdf7ab..03bc07f 100644 --- a/src/Middleware/TranslationRedirect.php +++ b/src/Middleware/TranslationRedirect.php @@ -11,7 +11,6 @@ /** * Class TranslationRedirect * - * @package Arcanedev\Localization\Middleware * @author ARCANEDEV */ class TranslationRedirect extends Middleware diff --git a/src/Providers/DeferredServicesProvider.php b/src/Providers/DeferredServicesProvider.php index a56a3a9..57878ee 100644 --- a/src/Providers/DeferredServicesProvider.php +++ b/src/Providers/DeferredServicesProvider.php @@ -4,12 +4,10 @@ namespace Arcanedev\Localization\Providers; -use Arcanedev\Localization\Contracts\{ - LocalesManager as LocalesManagerContract, - Localization as LocalizationContract, - Negotiator as NegotiatorContract, - RouteTranslator as RouteTranslatorContract -}; +use Arcanedev\Localization\Contracts\LocalesManager as LocalesManagerContract; +use Arcanedev\Localization\Contracts\Localization as LocalizationContract; +use Arcanedev\Localization\Contracts\Negotiator as NegotiatorContract; +use Arcanedev\Localization\Contracts\RouteTranslator as RouteTranslatorContract; use Arcanedev\Localization\Localization; use Arcanedev\Localization\Utilities\{LocalesManager, Negotiator, RouteTranslator}; use Arcanedev\Support\Providers\ServiceProvider; @@ -18,7 +16,6 @@ /** * Class DeferredServicesProvider * - * @package Arcanedev\Localization\Providers * @author ARCANEDEV */ class DeferredServicesProvider extends ServiceProvider implements DeferrableProvider diff --git a/src/Providers/RoutingServiceProvider.php b/src/Providers/RoutingServiceProvider.php index 30c8f32..d719409 100644 --- a/src/Providers/RoutingServiceProvider.php +++ b/src/Providers/RoutingServiceProvider.php @@ -13,7 +13,6 @@ /** * Class RoutingServiceProvider * - * @package Arcanedev\Localization\Providers * @author ARCANEDEV */ class RoutingServiceProvider extends ServiceProvider diff --git a/src/Routing/Router.php b/src/Routing/Router.php index 2221e73..fcb7bed 100644 --- a/src/Routing/Router.php +++ b/src/Routing/Router.php @@ -9,7 +9,6 @@ /** * Class Router * - * @package Arcanedev\Localization\Routing * @author ARCANEDEV * * @mixin \Illuminate\Routing\Router diff --git a/src/Traits/HasTranslations.php b/src/Traits/HasTranslations.php index 376761e..9c0c44a 100644 --- a/src/Traits/HasTranslations.php +++ b/src/Traits/HasTranslations.php @@ -11,7 +11,6 @@ /** * Trait HasTranslations * - * @package Arcanedev\Localization\Traits * @author ARCANEDEV * * @property array attributes diff --git a/src/Utilities/LocalesManager.php b/src/Utilities/LocalesManager.php index dadde2e..9a79589 100644 --- a/src/Utilities/LocalesManager.php +++ b/src/Utilities/LocalesManager.php @@ -5,8 +5,7 @@ namespace Arcanedev\Localization\Utilities; use Arcanedev\Localization\Contracts\LocalesManager as LocalesManagerContract; -use Arcanedev\Localization\Entities\Locale; -use Arcanedev\Localization\Entities\LocaleCollection; +use Arcanedev\Localization\Entities\{Locale, LocaleCollection}; use Arcanedev\Localization\Exceptions\UndefinedSupportedLocalesException; use Arcanedev\Localization\Exceptions\UnsupportedLocaleException; use Illuminate\Contracts\Foundation\Application as ApplicationContract; @@ -14,7 +13,6 @@ /** * Class LocalesManager * - * @package Arcanedev\Localization * @author ARCANEDEV */ class LocalesManager implements LocalesManagerContract diff --git a/src/Utilities/Negotiator.php b/src/Utilities/Negotiator.php index 2a3705c..c0f1385 100644 --- a/src/Utilities/Negotiator.php +++ b/src/Utilities/Negotiator.php @@ -11,7 +11,6 @@ /** * Class Negotiator * - * @package Arcanedev\Localization\Utilities * @author ARCANEDEV * * Negotiates language with the user's browser through the Accept-Language HTTP header or the user's host address. diff --git a/src/Utilities/RouteTranslator.php b/src/Utilities/RouteTranslator.php index 5b7b573..e63c084 100644 --- a/src/Utilities/RouteTranslator.php +++ b/src/Utilities/RouteTranslator.php @@ -12,7 +12,6 @@ /** * Class RouteTranslator * - * @package Arcanedev\Localization\Utilities * @author ARCANEDEV */ class RouteTranslator implements RouteTranslatorContract diff --git a/src/Utilities/Url.php b/src/Utilities/Url.php index 7e8eaa4..5a88401 100644 --- a/src/Utilities/Url.php +++ b/src/Utilities/Url.php @@ -11,7 +11,6 @@ /** * Class Url * - * @package Arcanedev\Localization\Utilities * @author ARCANEDEV */ class Url implements UrlContract diff --git a/tests/Entities/LocaleCollectionTest.php b/tests/Entities/LocaleCollectionTest.php index 087b90c..5f7979b 100644 --- a/tests/Entities/LocaleCollectionTest.php +++ b/tests/Entities/LocaleCollectionTest.php @@ -10,7 +10,6 @@ /** * Class LocaleCollectionTest * - * @package Arcanedev\Localization\Tests\Entities * @author ARCANEDEV */ class LocaleCollectionTest extends TestCase diff --git a/tests/Entities/LocaleTest.php b/tests/Entities/LocaleTest.php index 0349d10..6350b95 100644 --- a/tests/Entities/LocaleTest.php +++ b/tests/Entities/LocaleTest.php @@ -11,7 +11,6 @@ /** * Class LocaleTest * - * @package Arcanedev\Localization\Tests\Entities * @author ARCANEDEV */ class LocaleTest extends TestCase diff --git a/tests/LocalizationServiceProviderTest.php b/tests/LocalizationServiceProviderTest.php index 364e1ed..e26438c 100644 --- a/tests/LocalizationServiceProviderTest.php +++ b/tests/LocalizationServiceProviderTest.php @@ -9,7 +9,6 @@ /** * Class LocalizationServiceProviderTest * - * @package Arcanedev\Localization\Tests * @author ARCANEDEV */ class LocalizationServiceProviderTest extends TestCase diff --git a/tests/LocalizationTest.php b/tests/LocalizationTest.php index 0ada930..f9fbbc4 100644 --- a/tests/LocalizationTest.php +++ b/tests/LocalizationTest.php @@ -10,7 +10,6 @@ /** * Class LocalizationTest * - * @package Arcanedev\Localization\Tests * @author ARCANEDEV */ class LocalizationTest extends TestCase diff --git a/tests/Middleware/LocaleCookieRedirectTest.php b/tests/Middleware/LocaleCookieRedirectTest.php index 75c629a..51cf9a7 100644 --- a/tests/Middleware/LocaleCookieRedirectTest.php +++ b/tests/Middleware/LocaleCookieRedirectTest.php @@ -9,9 +9,8 @@ use Illuminate\Http\Response; /** - * Class LocaleSessionRedirectTest + * Class LocaleCookieRedirectTest * - * @package Arcanedev\Localization\Tests\Middleware * @author ARCANEDEV */ class LocaleCookieRedirectTest extends TestCase diff --git a/tests/Middleware/LocaleSessionRedirectTest.php b/tests/Middleware/LocaleSessionRedirectTest.php index 90a126b..58b433c 100644 --- a/tests/Middleware/LocaleSessionRedirectTest.php +++ b/tests/Middleware/LocaleSessionRedirectTest.php @@ -11,7 +11,6 @@ /** * Class LocaleSessionRedirectTest * - * @package Arcanedev\Localization\Tests\Middleware * @author ARCANEDEV */ class LocaleSessionRedirectTest extends TestCase diff --git a/tests/Providers/DeferredServicesProviderTest.php b/tests/Providers/DeferredServicesProviderTest.php index d575c94..2918d65 100644 --- a/tests/Providers/DeferredServicesProviderTest.php +++ b/tests/Providers/DeferredServicesProviderTest.php @@ -10,7 +10,6 @@ /** * Class DeferredServicesProviderTest * - * @package Arcanedev\Localization\Tests\Providers * @author ARCANEDEV */ class DeferredServicesProviderTest extends TestCase diff --git a/tests/Routing/RouterTest.php b/tests/Routing/RouterTest.php index 84aa1b6..b570d41 100644 --- a/tests/Routing/RouterTest.php +++ b/tests/Routing/RouterTest.php @@ -10,7 +10,6 @@ /** * Class RouterTest * - * @package Arcanedev\Localization\Tests\Routing * @author ARCANEDEV */ class RouterTest extends TestCase diff --git a/tests/Stubs/Http/Controllers/BarController.php b/tests/Stubs/Http/Controllers/BarController.php index ae77c5e..0f68103 100644 --- a/tests/Stubs/Http/Controllers/BarController.php +++ b/tests/Stubs/Http/Controllers/BarController.php @@ -9,7 +9,6 @@ /** * Class BarController * - * @package Arcanedev\Localization\Tests\Stubs\Http\Controllers * @author ARCANEDEV */ class BarController extends Controller diff --git a/tests/Stubs/Http/Controllers/DummyController.php b/tests/Stubs/Http/Controllers/DummyController.php index e9bed50..369a11d 100644 --- a/tests/Stubs/Http/Controllers/DummyController.php +++ b/tests/Stubs/Http/Controllers/DummyController.php @@ -9,7 +9,6 @@ /** * Class DummyController * - * @package Arcanedev\Localization\Tests\Stubs\Http\Controllers * @author ARCANEDEV */ class DummyController extends Controller diff --git a/tests/Stubs/Http/Kernel.php b/tests/Stubs/Http/Kernel.php index 254c867..056efcd 100644 --- a/tests/Stubs/Http/Kernel.php +++ b/tests/Stubs/Http/Kernel.php @@ -9,7 +9,6 @@ /** * Class Kernel * - * @package Arcanedev\Localization\Tests\Stubs\Http * @author ARCANEDEV */ class Kernel extends HttpKernel diff --git a/tests/Stubs/Http/Middleware/EncryptCookies.php b/tests/Stubs/Http/Middleware/EncryptCookies.php index 300708b..712072d 100644 --- a/tests/Stubs/Http/Middleware/EncryptCookies.php +++ b/tests/Stubs/Http/Middleware/EncryptCookies.php @@ -9,7 +9,6 @@ /** * Class EncryptCookies * - * @package Arcanedev\Localization\Tests\Stubs\Http\Middleware * @author ARCANEDEV */ class EncryptCookies extends BaseEncrypter diff --git a/tests/Stubs/Http/RouteRegistrar.php b/tests/Stubs/Http/RouteRegistrar.php index 1080b37..59b90e3 100644 --- a/tests/Stubs/Http/RouteRegistrar.php +++ b/tests/Stubs/Http/RouteRegistrar.php @@ -9,7 +9,6 @@ /** * Class RouteRegistrar * - * @package Arcanedev\Localization\Tests\Stubs\Http * @author ARCANEDEV */ class RouteRegistrar diff --git a/tests/Stubs/Models/TranslatableModel.php b/tests/Stubs/Models/TranslatableModel.php index 60558bc..f8e33f9 100644 --- a/tests/Stubs/Models/TranslatableModel.php +++ b/tests/Stubs/Models/TranslatableModel.php @@ -11,7 +11,6 @@ /** * Class TranslatableModel * - * @package Arcanedev\Localization\Tests\Stubs\Models * @author ARCANEDEV * * @property int id diff --git a/tests/Stubs/User.php b/tests/Stubs/User.php index 3ff67e7..3378549 100644 --- a/tests/Stubs/User.php +++ b/tests/Stubs/User.php @@ -9,7 +9,6 @@ /** * Class User * - * @package Arcanedev\Localization\Tests\Stubs * @author ARCANEDEV */ class User implements RouteBindable diff --git a/tests/TestCase.php b/tests/TestCase.php index ca4154b..9606f58 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -9,7 +9,6 @@ /** * Class TestCase * - * @package Arcanedev\Localization\Tests * @author ARCANEDEV */ abstract class TestCase extends BaseTestCase diff --git a/tests/TranslatableModelTest.php b/tests/TranslatableModelTest.php index 201a523..baa97ca 100644 --- a/tests/TranslatableModelTest.php +++ b/tests/TranslatableModelTest.php @@ -10,7 +10,6 @@ /** * Class TranslatableModelTest * - * @package Arcanedev\Localization\Tests * @author ARCANEDEV */ class TranslatableModelTest extends TestCase diff --git a/tests/Utilities/LocalesManagerTest.php b/tests/Utilities/LocalesManagerTest.php index 92ac5a3..eb29fd5 100644 --- a/tests/Utilities/LocalesManagerTest.php +++ b/tests/Utilities/LocalesManagerTest.php @@ -11,7 +11,6 @@ /** * Class LocalesManagerTest * - * @package Arcanedev\Localization\Tests\Utilities * @author ARCANEDEV */ class LocalesManagerTest extends TestCase diff --git a/tests/Utilities/NegotiatorTest.php b/tests/Utilities/NegotiatorTest.php index e836797..d649513 100644 --- a/tests/Utilities/NegotiatorTest.php +++ b/tests/Utilities/NegotiatorTest.php @@ -11,7 +11,6 @@ /** * Class NegotiatorTest * - * @package Arcanedev\Localization\Tests\Utilities * @author ARCANEDEV */ class NegotiatorTest extends TestCase diff --git a/tests/Utilities/UrlTest.php b/tests/Utilities/UrlTest.php index 1f1dc0b..5213ec9 100644 --- a/tests/Utilities/UrlTest.php +++ b/tests/Utilities/UrlTest.php @@ -10,7 +10,6 @@ /** * Class UrlTest * - * @package Arcanedev\Localization\Tests\Utilities * @author ARCANEDEV */ class UrlTest extends TestCase