From ded27dfb3d145035754e3172d6b9bb97176e8108 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Tue, 15 Sep 2020 09:44:54 +0100 Subject: [PATCH] Adding Laravel 8 support --- .github/workflows/run-tests.yml | 10 ++-- .scrutinizer.yml | 2 +- README.md | 6 +-- _docs/0-Home.md | 2 +- _docs/1-Installation-and-Setup.md | 52 +++++++++++-------- _docs/2-Configuration.md | 7 ++- composer.json | 25 ++++++--- config/laravel-lang.php | 6 +-- phpunit.xml.dist | 35 ++++++------- src/Commands/AbstractCommand.php | 3 +- src/Commands/CheckCommand.php | 1 - src/Commands/PublishCommand.php | 1 - src/Contracts/Entities/Locale.php | 1 - src/Contracts/TransChecker.php | 1 - src/Contracts/TransManager.php | 1 - src/Contracts/TransPublisher.php | 1 - src/Entities/Locale.php | 1 - src/Entities/LocaleCollection.php | 1 - src/Exceptions/LangPublishException.php | 1 - src/Exceptions/LaravelLangException.php | 5 +- src/FileLoader.php | 1 - src/LaravelLang.php | 3 +- src/LaravelLangServiceProvider.php | 1 - src/Providers/DeferredServicesProvider.php | 11 ++-- src/Providers/TranslationServiceProvider.php | 1 - src/TransChecker.php | 10 ++-- src/TransManager.php | 1 - src/TransPublisher.php | 1 - tests/Commands/CheckCommandTest.php | 1 - tests/Commands/PublishCommandTest.php | 1 - tests/LaravelLangServiceProviderTest.php | 1 - .../Providers/DeferredServiceProviderTest.php | 1 - tests/TestCase.php | 5 +- tests/TransCheckerTest.php | 1 - tests/TransManagerTest.php | 1 - tests/TransPublisherTest.php | 1 - tests/TranslatorTest.php | 3 +- 37 files changed, 95 insertions(+), 111 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index bb77b26..d1ead4b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,27 +9,27 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4] + php: [7.3, 7.4] dependency-version: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} 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-6.x-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + key: dependencies-laravel-8-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv - coverage: xdebug + coverage: pcov - name: Install dependencies run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 8a9285f..69d4755 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -22,7 +22,7 @@ checks: tools: external_code_coverage: timeout: 600 - runs: 6 + runs: 4 php_code_sniffer: enabled: true config: diff --git a/README.md b/README.md index 8e15f86..2879dd3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ *By [ARCANEDEV©](http://www.arcanedev.net/)* -Translations manager and checker for Laravel based on [caouecs/Laravel-lang](https://github.com/caouecs/Laravel-lang) translations. +Translations manager and checker for Laravel based on [laravel-Lang/lang](https://github.com/Laravel-Lang/lang) translations. Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelLang/releases), [license](LICENSE.md), and [contribution guidelines](CONTRIBUTING.md). @@ -21,7 +21,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelLang/r * Easy setup & configuration. * Missing translations Checker. * Translations Publisher. - * Laravel `5.x` to `7.x` are supported. + * Laravel `5.x` to `8.x` are supported. * Well documented & IDE Friendly. * Well tested with maximum code quality. * Made with :heart: & :coffee:. @@ -50,7 +50,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail. - [All Contributors][link-contributors] [badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-lang.svg?style=flat-square -[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%207.x-orange.svg?style=flat-square +[badge_laravel]: https://img.shields.io/badge/Laravel-5.x%20to%208.x-orange.svg?style=flat-square [badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/LaravelLang/run-tests?style=flat-square [badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LaravelLang.svg?style=flat-square [badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/LaravelLang.svg?style=flat-square diff --git a/_docs/0-Home.md b/_docs/0-Home.md index d70d8e3..530aeeb 100644 --- a/_docs/0-Home.md +++ b/_docs/0-Home.md @@ -7,7 +7,7 @@ Translations manager and checker for Laravel based on [caouecs/Laravel-lang](htt * Easy setup & configuration. * Missing translations Checker. * Translations Publisher. - * Laravel `5.x` to `7.x` are supported. + * Laravel `5.x` to `8.x` are supported. * Well documented & IDE Friendly. * Well tested with maximum code quality. * Made with :heart: & :coffee:. diff --git a/_docs/1-Installation-and-Setup.md b/_docs/1-Installation-and-Setup.md index c1bc58c..3a0cdc5 100644 --- a/_docs/1-Installation-and-Setup.md +++ b/_docs/1-Installation-and-Setup.md @@ -8,29 +8,35 @@ ## Version Compatibility -| LaravelLang | Laravel | -|:---------------------------------------|:-------------------------------------------------------------------------------------------------------------------| -| ![LaravelLang v8.x][laravel_lang_8_x] | ![Laravel v7.x][laravel_7_x] | -| ![LaravelLang v7.x][laravel_lang_7_x] | ![Laravel v6.x][laravel_6_x] | -| ![LaravelLang v6.x][laravel_lang_6_x] | ![Laravel v5.8][laravel_5_8] | -| ![LaravelLang v5.x][laravel_lang_5_x] | ![Laravel v5.7][laravel_5_7] | -| ![LaravelLang v4.x][laravel_lang_4_x] | ![Laravel v5.6][laravel_5_6] | -| ![LaravelLang v3.x][laravel_lang_3_x] | ![Laravel v5.5][laravel_5_5] | -| ![LaravelLang v2.x][laravel_lang_2_x] | ![Laravel v5.4][laravel_5_4] | -| ![LaravelLang v1.x][laravel_lang_1_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.x" -[laravel_6_x]: https://img.shields.io/badge/v6.x-supported-brightgreen.svg?style=flat-square "Laravel v6.x" -[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 | LaravelLang | +|:-----------------------------|:--------------------------------------| +| ![Laravel v8.x][laravel_8_x] | ![LaravelLang v9.x][laravel_lang_9_x] | +| ![Laravel v7.x][laravel_7_x] | ![LaravelLang v8.x][laravel_lang_8_x] | +| ![Laravel v6.x][laravel_6_x] | ![LaravelLang v7.x][laravel_lang_7_x] | +| ![Laravel v5.8][laravel_5_8] | ![LaravelLang v6.x][laravel_lang_6_x] | +| ![Laravel v5.7][laravel_5_7] | ![LaravelLang v5.x][laravel_lang_5_x] | +| ![Laravel v5.6][laravel_5_6] | ![LaravelLang v4.x][laravel_lang_4_x] | +| ![Laravel v5.5][laravel_5_5] | ![LaravelLang v3.x][laravel_lang_3_x] | +| ![Laravel v5.4][laravel_5_4] | ![LaravelLang v2.x][laravel_lang_2_x] | +| ![Laravel v5.3][laravel_5_3] | ![LaravelLang v1.x][laravel_lang_1_x] | +| ![Laravel v5.2][laravel_5_2] | ![LaravelLang v1.x][laravel_lang_1_x] | +| ![Laravel v5.1][laravel_5_1] | ![LaravelLang v1.x][laravel_lang_1_x] | +| ![Laravel v5.0][laravel_5_0] | ![LaravelLang v1.x][laravel_lang_1_x] | + +[laravel_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "Laravel v8.x" +[laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.x" +[laravel_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "Laravel v6.x" +[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" + +[laravel_lang_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "LaravelLang v9.x" [laravel_lang_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "LaravelLang v8.x" [laravel_lang_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "LaravelLang v7.x" [laravel_lang_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "LaravelLang v6.x" diff --git a/_docs/2-Configuration.md b/_docs/2-Configuration.md index 1b42546..c3578d6 100644 --- a/_docs/2-Configuration.md +++ b/_docs/2-Configuration.md @@ -19,8 +19,11 @@ return [ | ----------------------------------------------------------------- */ - /** @link https://github.com/caouecs/Laravel-lang */ - 'vendor' => base_path('vendor/caouecs/laravel-lang/src'), + /** @link https://github.com/Laravel-Lang/lang */ + 'vendor' => [ + 'php' => base_path('vendor/laravel-lang/lang/src'), + 'json' => base_path('vendor/laravel-lang/lang/json'), + ], /* ----------------------------------------------------------------- | Supported locales diff --git a/composer.json b/composer.json index 514cd65..c270ba6 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,13 @@ "type": "library", "license": "MIT", "require": { - "php": "^7.2.5", - "arcanedev/support": "^7.1.2", - "caouecs/laravel-lang": "^7.0.1" + "php": "^7.3", + "arcanedev/support": "^8.0", + "laravel-lang/lang": "^7.0.1" }, "require-dev": { - "orchestra/testbench": "^5.0", - "phpunit/phpunit": "^8.5", - "mockery/mockery": "^1.3.1" + "orchestra/testbench": "^6.0", + "phpunit/phpunit": "^9.3" }, "autoload": { "psr-4": { @@ -35,7 +34,14 @@ "Arcanedev\\LaravelLang\\Tests\\": "tests/" } }, + "scripts": { + "test": "phpunit", + "coverage": "phpunit --coverage-html build/coverage/html" + }, "extra": { + "branch-alias": { + "dev-develop": "9.x-dev" + }, "laravel": { "providers": [ "Arcanedev\\LaravelLang\\LaravelLangServiceProvider", @@ -43,5 +49,10 @@ "Arcanedev\\LaravelLang\\Providers\\TranslationServiceProvider" ] } - } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev", + "prefer-stable": true } diff --git a/config/laravel-lang.php b/config/laravel-lang.php index b4a4b7c..b36f17a 100644 --- a/config/laravel-lang.php +++ b/config/laravel-lang.php @@ -7,10 +7,10 @@ | ----------------------------------------------------------------- */ - /** @link https://github.com/caouecs/Laravel-lang */ + /** @link https://github.com/Laravel-Lang/lang */ 'vendor' => [ - 'php' => base_path('vendor/caouecs/laravel-lang/src'), - 'json' => base_path('vendor/caouecs/laravel-lang/json'), + 'php' => base_path('vendor/laravel-lang/lang/src'), + 'json' => base_path('vendor/laravel-lang/lang/json'), ], /* ----------------------------------------------------------------- diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e838c23..e2eb78b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,27 +1,22 @@ - +> - ./tests/ + ./tests - - - ./src/ - - - - - - - + + + ./src + + + + + + + diff --git a/src/Commands/AbstractCommand.php b/src/Commands/AbstractCommand.php index 7cf882d..5032261 100644 --- a/src/Commands/AbstractCommand.php +++ b/src/Commands/AbstractCommand.php @@ -8,9 +8,8 @@ use Arcanedev\Support\Console\Command as BaseCommand; /** - * Class Command + * Class AbstractCommand * - * @package Arcanedev\LaravelLang\Bases * @author ARCANEDEV */ abstract class AbstractCommand extends BaseCommand diff --git a/src/Commands/CheckCommand.php b/src/Commands/CheckCommand.php index 6f99feb..bc2606c 100644 --- a/src/Commands/CheckCommand.php +++ b/src/Commands/CheckCommand.php @@ -9,7 +9,6 @@ /** * Class CheckCommand * - * @package Arcanedev\LaravelLang\Commands * @author ARCANEDEV */ class CheckCommand extends AbstractCommand diff --git a/src/Commands/PublishCommand.php b/src/Commands/PublishCommand.php index 8337884..8c015b2 100644 --- a/src/Commands/PublishCommand.php +++ b/src/Commands/PublishCommand.php @@ -9,7 +9,6 @@ /** * Class PublishCommand * - * @package Arcanedev\LaravelLang\Commands * @author ARCANEDEV */ class PublishCommand extends AbstractCommand diff --git a/src/Contracts/Entities/Locale.php b/src/Contracts/Entities/Locale.php index d36406b..749f976 100644 --- a/src/Contracts/Entities/Locale.php +++ b/src/Contracts/Entities/Locale.php @@ -7,7 +7,6 @@ /** * Interface Locale * - * @package Arcanedev\LaravelLang\Contracts\Entities * @author ARCANEDEV */ interface Locale diff --git a/src/Contracts/TransChecker.php b/src/Contracts/TransChecker.php index 2a79d4a..207da17 100644 --- a/src/Contracts/TransChecker.php +++ b/src/Contracts/TransChecker.php @@ -7,7 +7,6 @@ /** * Interface TransChecker * - * @package Arcanedev\LaravelLang\Contracts * @author ARCANEDEV */ interface TransChecker diff --git a/src/Contracts/TransManager.php b/src/Contracts/TransManager.php index 6b887eb..2c8daf5 100644 --- a/src/Contracts/TransManager.php +++ b/src/Contracts/TransManager.php @@ -9,7 +9,6 @@ /** * Interface TransManager * - * @package Arcanedev\LaravelLang\Contracts * @author ARCANEDEV */ interface TransManager diff --git a/src/Contracts/TransPublisher.php b/src/Contracts/TransPublisher.php index ef3ec97..3be6325 100644 --- a/src/Contracts/TransPublisher.php +++ b/src/Contracts/TransPublisher.php @@ -7,7 +7,6 @@ /** * Interface TransPublisher * - * @package Arcanedev\LaravelLang\Contracts * @author ARCANEDEV */ interface TransPublisher diff --git a/src/Entities/Locale.php b/src/Entities/Locale.php index 4bb709c..95a2164 100644 --- a/src/Entities/Locale.php +++ b/src/Entities/Locale.php @@ -10,7 +10,6 @@ /** * Class Locale * - * @package Arcanedev\LaravelLang\Entities * @author ARCANEDEV */ class Locale implements LocaleContract diff --git a/src/Entities/LocaleCollection.php b/src/Entities/LocaleCollection.php index f112fe6..8effcbd 100644 --- a/src/Entities/LocaleCollection.php +++ b/src/Entities/LocaleCollection.php @@ -10,7 +10,6 @@ /** * Class LocaleCollection * - * @package Arcanedev\LaravelLang\Entities * @author ARCANEDEV */ class LocaleCollection extends Collection diff --git a/src/Exceptions/LangPublishException.php b/src/Exceptions/LangPublishException.php index cfb01a4..5eb335a 100644 --- a/src/Exceptions/LangPublishException.php +++ b/src/Exceptions/LangPublishException.php @@ -7,7 +7,6 @@ /** * Class LangPublishException * - * @package Arcanedev\LaravelLang\Exceptions * @author ARCANEDEV */ class LangPublishException extends LaravelLangException {} diff --git a/src/Exceptions/LaravelLangException.php b/src/Exceptions/LaravelLangException.php index f363ead..21c5bac 100644 --- a/src/Exceptions/LaravelLangException.php +++ b/src/Exceptions/LaravelLangException.php @@ -4,10 +4,11 @@ namespace Arcanedev\LaravelLang\Exceptions; +use Exception; + /** * Class LaravelLangException * - * @package Arcanedev\LaravelLang\Exceptions * @author ARCANEDEV */ -class LaravelLangException extends \Exception {} +class LaravelLangException extends Exception {} diff --git a/src/FileLoader.php b/src/FileLoader.php index a59a624..80411aa 100644 --- a/src/FileLoader.php +++ b/src/FileLoader.php @@ -10,7 +10,6 @@ /** * Class FileLoader * - * @package Arcanedev\LaravelLang * @author ARCANEDEV */ class FileLoader extends IlluminateFileLoader diff --git a/src/LaravelLang.php b/src/LaravelLang.php index 56afc30..dda4088 100644 --- a/src/LaravelLang.php +++ b/src/LaravelLang.php @@ -7,7 +7,6 @@ /** * Class LaravelLang * - * @package Arcanedev\LaravelLang * @author ARCANEDEV */ class LaravelLang @@ -17,5 +16,5 @@ class LaravelLang | ----------------------------------------------------------------- */ - const VERSION = '8.2.0'; + const VERSION = '9.0.0'; } diff --git a/src/LaravelLangServiceProvider.php b/src/LaravelLangServiceProvider.php index 9a365ea..bd7f033 100644 --- a/src/LaravelLangServiceProvider.php +++ b/src/LaravelLangServiceProvider.php @@ -9,7 +9,6 @@ /** * Class LaravelLangServiceProvider * - * @package Arcanedev\LaravelLang * @author ARCANEDEV */ class LaravelLangServiceProvider extends ServiceProvider diff --git a/src/Providers/DeferredServicesProvider.php b/src/Providers/DeferredServicesProvider.php index a6718b7..f09fffa 100644 --- a/src/Providers/DeferredServicesProvider.php +++ b/src/Providers/DeferredServicesProvider.php @@ -6,19 +6,16 @@ use Illuminate\Support\Collection; use Arcanedev\LaravelLang\{TransChecker, TransManager, TransPublisher}; -use Arcanedev\LaravelLang\Contracts\{ - TransChecker as TransCheckerContract, - TransManager as TransManagerContract, - TransPublisher as TransPublisherContract -}; +use Arcanedev\LaravelLang\Contracts\TransChecker as TransCheckerContract; +use Arcanedev\LaravelLang\Contracts\TransManager as TransManagerContract; +use Arcanedev\LaravelLang\Contracts\TransPublisher as TransPublisherContract; use Arcanedev\Support\Providers\ServiceProvider; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Foundation\Application; /** - * Class DeferredServiceProvider + * Class DeferredServicesProvider * - * @package Arcanedev\LaravelLang\Providers * @author ARCANEDEV */ class DeferredServicesProvider extends ServiceProvider implements DeferrableProvider diff --git a/src/Providers/TranslationServiceProvider.php b/src/Providers/TranslationServiceProvider.php index 8935f3a..154b72a 100644 --- a/src/Providers/TranslationServiceProvider.php +++ b/src/Providers/TranslationServiceProvider.php @@ -11,7 +11,6 @@ /** * Class TranslationServiceProvider * - * @package Arcanedev\LaravelLang\Providers * @author ARCANEDEV */ class TranslationServiceProvider extends ServiceProvider diff --git a/src/TransChecker.php b/src/TransChecker.php index 9f6950e..e88add9 100644 --- a/src/TransChecker.php +++ b/src/TransChecker.php @@ -4,18 +4,14 @@ namespace Arcanedev\LaravelLang; -use Arcanedev\LaravelLang\Contracts\{ - TransChecker as TransCheckerInterface, - TransManager as TransManagerInterface -}; -use Illuminate\Support\Arr; -use Illuminate\Support\Str; +use Arcanedev\LaravelLang\Contracts\TransChecker as TransCheckerInterface; +use Arcanedev\LaravelLang\Contracts\TransManager as TransManagerInterface; +use Illuminate\Support\{Arr, Str}; use Illuminate\Translation\Translator; /** * Class TransChecker * - * @package Arcanedev\LaravelLang * @author ARCANEDEV */ class TransChecker implements TransCheckerInterface diff --git a/src/TransManager.php b/src/TransManager.php index b5493fa..f54d4ba 100644 --- a/src/TransManager.php +++ b/src/TransManager.php @@ -12,7 +12,6 @@ /** * Class TransManager * - * @package Arcanedev\LaravelLang * @author ARCANEDEV */ class TransManager implements TransManagerContract diff --git a/src/TransPublisher.php b/src/TransPublisher.php index 0836fe0..29d53f1 100644 --- a/src/TransPublisher.php +++ b/src/TransPublisher.php @@ -14,7 +14,6 @@ /** * Class TransPublisher * - * @package Arcanedev\LaravelLang * @author ARCANEDEV */ class TransPublisher implements TransPublisherContract diff --git a/tests/Commands/CheckCommandTest.php b/tests/Commands/CheckCommandTest.php index 347c5b3..e2505a8 100644 --- a/tests/Commands/CheckCommandTest.php +++ b/tests/Commands/CheckCommandTest.php @@ -10,7 +10,6 @@ /** * Class CheckCommandTest * - * @package Arcanedev\LaravelLang\Tests\Commands * @author ARCANEDEV */ class CheckCommandTest extends TestCase diff --git a/tests/Commands/PublishCommandTest.php b/tests/Commands/PublishCommandTest.php index de4819f..4ec6343 100644 --- a/tests/Commands/PublishCommandTest.php +++ b/tests/Commands/PublishCommandTest.php @@ -9,7 +9,6 @@ /** * Class PublishCommandTest * - * @package Arcanedev\LaravelLang\Tests\Commands * @author ARCANEDEV */ class PublishCommandTest extends TestCase diff --git a/tests/LaravelLangServiceProviderTest.php b/tests/LaravelLangServiceProviderTest.php index db5c2ee..bbc0b22 100644 --- a/tests/LaravelLangServiceProviderTest.php +++ b/tests/LaravelLangServiceProviderTest.php @@ -9,7 +9,6 @@ /** * Class LaravelLangServiceProviderTest * - * @package Arcanedev\LaravelLang\Tests * @author ARCANEDEV */ class LaravelLangServiceProviderTest extends TestCase diff --git a/tests/Providers/DeferredServiceProviderTest.php b/tests/Providers/DeferredServiceProviderTest.php index 87a5397..c9084cc 100644 --- a/tests/Providers/DeferredServiceProviderTest.php +++ b/tests/Providers/DeferredServiceProviderTest.php @@ -10,7 +10,6 @@ /** * Class DeferredServiceProviderTest * - * @package Arcanedev\LaravelLang\Tests\Providers * @author ARCANEDEV */ class DeferredServiceProviderTest extends TestCase diff --git a/tests/TestCase.php b/tests/TestCase.php index bbd348b..1a5d344 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -9,7 +9,6 @@ /** * Class TestCase * - * @package Arcanedev\LaravelLang\Tests * @author ARCANEDEV */ abstract class TestCase extends BaseTestCase @@ -66,8 +65,8 @@ protected function getEnvironmentSetUp($app): void $config->set('laravel-lang', [ 'vendor' => [ - 'php' => realpath($basePath . '/vendor/caouecs/laravel-lang/src'), - 'json' => realpath($basePath . '/vendor/caouecs/laravel-lang/json'), + 'php' => realpath($basePath . '/vendor/laravel-lang/lang/src'), + 'json' => realpath($basePath . '/vendor/laravel-lang/lang/json'), ], 'locales' => ['es', 'fr'], diff --git a/tests/TransCheckerTest.php b/tests/TransCheckerTest.php index 9d83916..2c84b7c 100644 --- a/tests/TransCheckerTest.php +++ b/tests/TransCheckerTest.php @@ -9,7 +9,6 @@ /** * Class TransCheckerTest * - * @package Arcanedev\LaravelLang\Tests * @author ARCANEDEV */ class TransCheckerTest extends TestCase diff --git a/tests/TransManagerTest.php b/tests/TransManagerTest.php index bec5817..ec745b2 100644 --- a/tests/TransManagerTest.php +++ b/tests/TransManagerTest.php @@ -9,7 +9,6 @@ /** * Class TransManagerTest * - * @package Arcanedev\LaravelLang\Tests * @author ARCANEDEV */ class TransManagerTest extends TestCase diff --git a/tests/TransPublisherTest.php b/tests/TransPublisherTest.php index 0f9244c..993772d 100644 --- a/tests/TransPublisherTest.php +++ b/tests/TransPublisherTest.php @@ -9,7 +9,6 @@ /** * Class TransPublisherTest * - * @package Arcanedev\LaravelLang\Tests\Services * @author ARCANEDEV */ class TransPublisherTest extends TestCase diff --git a/tests/TranslatorTest.php b/tests/TranslatorTest.php index 3a3279b..a5339fa 100644 --- a/tests/TranslatorTest.php +++ b/tests/TranslatorTest.php @@ -7,9 +7,8 @@ use Illuminate\Translation\Translator; /** - * Class Test + * Class TranslatorTest * - * @package Arcanedev\LaravelLang\Tests * @author ARCANEDEV */ class TranslatorTest extends TestCase