Skip to content

Commit

Permalink
fix classes names
Browse files Browse the repository at this point in the history
  • Loading branch information
medilies committed Oct 8, 2022
1 parent 426334a commit f7c023d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/elaborate-code/laravel-json-tongue/run-tests?label=tests)](https://github.com/elaborate-code/laravel-json-tongue/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/elaborate-code/laravel-json-tongue/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/elaborate-code/laravel-json-tongue/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/elaborate-code/laravel-json-tongue.svg?style=flat-square)](https://packagist.org/packages/elaborate-code/laravel-json-tongue)
![Production ready](https://img.shields.io/badge/Production%20ready-no-red)
![maintained](https://img.shields.io/maintenance/yes/2022)
![Production ready](https://img.shields.io/badge/Production%20ready-no-red)

This package is built on top of [PHP JSON tongue](https://github.com/elaborate-code/php-json-tongue) to enable the usage of multiple JSON files per locale on Laravel.

Expand Down Expand Up @@ -53,7 +53,9 @@ Options:
| ------------- | ------------------------------------------------------------------------------------- |
| `-F\|--force` | Removes JSON files that already exist in the root of the `lang` folder without asking |

> JSON files that already exist in the root of the `lang` folder, can be old JSON files previously generated by the command, or files that you previously created manually and populated manually. ⚠️ In the second case be careful before instructing the command to remove existing JSON files!
> JSON files that already exist in the root of the `lang` folder, can be old JSON files previously generated by the command, or files that you have created manually and populated manually.
>
> ⚠️ In the second case be careful before instructing the command to remove existing JSON files!
#### Example

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/JsonTongueMergeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class JsonTongueMergeCommand extends Command
public $signature = 'json-tongue:merge
{--F|force : Remove existing JSON files}';

public $description = 'Merge JSON files';
public $description = 'Copy and merge JSON files from locale folders';

public function handle(): int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
use Illuminate\Support\Facades\Facade;

/**
* @see \ElaborateCode\LaravelJsonTongue\JsonTongue
* @see \ElaborateCode\LaravelJsonTongue\LaravelJsonTongue
*/
class JsonTongue extends Facade
{
protected static function getFacadeAccessor()
{
return \ElaborateCode\LaravelJsonTongue\JsonTongue::class;
return \ElaborateCode\LaravelJsonTongue\LaravelJsonTongue::class;
}
}
2 changes: 1 addition & 1 deletion src/JsonTongue.php → src/LaravelJsonTongue.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace ElaborateCode\LaravelJsonTongue;

class JsonTongue
class LaravelJsonTongue
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

class JsonTongueServiceProvider extends PackageServiceProvider
class LaravelJsonTongueServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ElaborateCode\LaravelJsonTongue\Tests;

use ElaborateCode\LaravelJsonTongue\JsonTongueServiceProvider;
use ElaborateCode\LaravelJsonTongue\LaravelJsonTongueServiceProvider;
use ElaborateCode\LaravelJsonTongue\Tests\FakeLaravel\Providers\TestLangProvider;
use Orchestra\Testbench\TestCase as Orchestra;

Expand All @@ -23,7 +23,7 @@ protected function setUp(): void
protected function getPackageProviders($app)
{
return [
JsonTongueServiceProvider::class,
LaravelJsonTongueServiceProvider::class,
TestLangProvider::class,
];
}
Expand Down

0 comments on commit f7c023d

Please sign in to comment.