Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Apr 9, 2019
1 parent acdee77 commit 4b4aaa1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
disabled:
- concat_without_spaces
preset: psr2

enabled:
- concat_with_spaces
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[![Version](https://poser.pugx.org/akaunting/language/v/stable.svg)](https://github.com/akaunting/language/releases)
[![Downloads](https://poser.pugx.org/akaunting/language/d/total.svg)](https://github.com/akaunting/language)
[![Quality](https://scrutinizer-ci.com/g/akaunting/language/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/akaunting/language)
[![StyleCI](https://styleci.io/repos/102290249/shield?style=flat&branch=master)](https://styleci.io/repos/102290249)
[![Quality](https://scrutinizer-ci.com/g/akaunting/language/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/akaunting/language)
[![License](https://poser.pugx.org/akaunting/language/license.svg)](LICENSE.md)

This package allows switching locale easily on Laravel projects. It's so simple to use, once it's installed, your App locale will change only by passing routes into SetLanguage middleware.
Expand Down
10 changes: 5 additions & 5 deletions src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public function boot(Router $router)
}

$this->publishes([
__DIR__.'/Config/language.php' => config_path('language.php'),
__DIR__.'/Migrations/2020_01_01_000000_add_locale_column.php' => database_path('migrations/2020_01_01_000000_add_locale_column.php'),
__DIR__.'/Resources/views/flag.blade.php' => resource_path('views/vendor/language/flag.blade.php'),
__DIR__.'/Resources/views/flags.blade.php' => resource_path('views/vendor/language/flags.blade.php'),
__DIR__ . '/Config/language.php' => config_path('language.php'),
__DIR__ . '/Migrations/2020_01_01_000000_add_locale_column.php' => database_path('migrations/2020_01_01_000000_add_locale_column.php'),
__DIR__ . '/Resources/views/flag.blade.php' => resource_path('views/vendor/language/flag.blade.php'),
__DIR__ . '/Resources/views/flags.blade.php' => resource_path('views/vendor/language/flags.blade.php'),
], 'language');

$router->aliasMiddleware('language', config('language.middleware'));
Expand All @@ -44,6 +44,6 @@ public function boot(Router $router)
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/Config/language.php', 'language');
$this->mergeConfigFrom(__DIR__ . '/Config/language.php', 'language');
}
}

0 comments on commit 4b4aaa1

Please sign in to comment.