Test Failed
Push — master ( f752c1...bd86f1 )
by Ricardo
03:26
created
src/TranslationServiceProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -40,15 +40,15 @@  discard block
 block discarded – undo
40 40
     public function boot()
41 41
     {
42 42
         $this->publishes([
43
-            __DIR__ . '/../config/translator.php' => config_path('translator.php'),
44
-            __DIR__ . '/../config/translation.php' => config_path('translation.php'),
43
+            __DIR__.'/../config/translator.php' => config_path('translator.php'),
44
+            __DIR__.'/../config/translation.php' => config_path('translation.php'),
45 45
         ]);
46
-        $this->loadMigrationsFrom(__DIR__ . '/../database/migrations/');
46
+        $this->loadMigrationsFrom(__DIR__.'/../database/migrations/');
47 47
 
48 48
         /**
49 49
          * Provider Antigo
50 50
          */
51
-        Blade::directive('t', function ($args) {
51
+        Blade::directive('t', function($args) {
52 52
             return "<?php echo App::make('translation')->translate{$args}; ?>";
53 53
         });
54 54
     }
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function register()
62 62
     {
63
-        $this->mergeConfigFrom(__DIR__ . '/../config/translator.php', 'translator');
64
-        $this->mergeConfigFrom(__DIR__ . '/../config/translation.php', 'translation');
63
+        $this->mergeConfigFrom(__DIR__.'/../config/translator.php', 'translator');
64
+        $this->mergeConfigFrom(__DIR__.'/../config/translation.php', 'translation');
65 65
 
66 66
         parent::register();
67 67
         $this->registerCacheRepository();
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $this->app->bind(ClientInterface::class, Client::class);
77 77
 
78 78
         // Bind translation to the IoC.
79
-        $this->app->bind('translation', function (Application $app) {
79
+        $this->app->bind('translation', function(Application $app) {
80 80
             return new Translation($app);
81 81
         });
82 82
 
@@ -105,20 +105,20 @@  discard block
 block discarded – undo
105 105
     protected function registerLoader()
106 106
     {
107 107
         $app = $this->app;
108
-        $this->app->singleton('translation.loader', function ($app) {
108
+        $this->app->singleton('translation.loader', function($app) {
109 109
             $defaultLocale = $app['config']->get('app.locale');
110 110
             $loader        = null;
111 111
             $source        = $app['config']->get('translator.source');
112 112
 
113 113
             switch ($source) {
114 114
                 case 'mixed':
115
-                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath() . '/resources/lang');
115
+                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath().'/resources/lang');
116 116
                     $fileLoader        = new FileLoader($defaultLocale, $laravelFileLoader);
117 117
                     $databaseLoader    = new DatabaseLoader($defaultLocale, $app->make(TranslationRepository::class));
118 118
                     $loader            = new MixedLoader($defaultLocale, $fileLoader, $databaseLoader);
119 119
                     break;
120 120
                 case 'mixed_db':
121
-                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath() . '/resources/lang');
121
+                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath().'/resources/lang');
122 122
                     $fileLoader        = new FileLoader($defaultLocale, $laravelFileLoader);
123 123
                     $databaseLoader    = new DatabaseLoader($defaultLocale, $app->make(TranslationRepository::class));
124 124
                     $loader            = new MixedLoader($defaultLocale, $databaseLoader, $fileLoader);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                     $loader = new DatabaseLoader($defaultLocale, $app->make(TranslationRepository::class));
128 128
                     break;
129 129
                 default:case 'files':
130
-                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath() . '/resources/lang');
130
+                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath().'/resources/lang');
131 131
                     $loader            = new FileLoader($defaultLocale, $laravelFileLoader);
132 132
                     break;
133 133
             }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function registerCacheRepository()
147 147
     {
148
-        $this->app->singleton('translation.cache.repository', function ($app) {
148
+        $this->app->singleton('translation.cache.repository', function($app) {
149 149
             $cacheStore = $app['cache']->getStore();
150 150
             return CacheRepositoryFactory::make($cacheStore, $app['config']->get('translator.cache.suffix'));
151 151
         });
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $defaultLocale         = $app['config']->get('app.locale');
163 163
         $languageRepository    = $app->make(LanguageRepository::class);
164 164
         $translationRepository = $app->make(TranslationRepository::class);
165
-        $translationsPath      = $app->basePath() . '/resources/lang';
165
+        $translationsPath      = $app->basePath().'/resources/lang';
166 166
         $command               = new FileLoaderCommand($languageRepository, $translationRepository, $app['files'], $translationsPath, $defaultLocale);
167 167
 
168 168
         $this->app['command.translator:load'] = $command;
Please login to merge, or discard this patch.