Test Failed
Push — master ( f249c9...357877 )
by Ricardo
05:06
created
src/TranslationServiceProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@  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
         $this->registerCacheRepository();
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function register()
60 60
     {
61
-        $this->mergeConfigFrom(__DIR__ . '/../config/translator.php', 'translator');
62
-        $this->mergeConfigFrom(__DIR__ . '/../config/translation.php', 'translation');
61
+        $this->mergeConfigFrom(__DIR__.'/../config/translator.php', 'translator');
62
+        $this->mergeConfigFrom(__DIR__.'/../config/translation.php', 'translation');
63 63
 
64 64
         parent::register();
65 65
 
66 66
         // Bind translation to the IoC.
67
-        $this->app->bind('translation', function (Application $app) {
67
+        $this->app->bind('translation', function(Application $app) {
68 68
             return new Translation($app);
69 69
         });
70 70
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         /**
75 75
          * Provider Antigo
76 76
          */
77
-        Blade::directive('t', function ($args) {
77
+        Blade::directive('t', function($args) {
78 78
             return "<?php echo App::make('translation')->translate{$args}; ?>";
79 79
         });
80 80
 
@@ -110,20 +110,20 @@  discard block
 block discarded – undo
110 110
     protected function registerLoader()
111 111
     {
112 112
         $app = $this->app;
113
-        $this->app->singleton('translation.loader', function ($app) {
113
+        $this->app->singleton('translation.loader', function($app) {
114 114
             $defaultLocale = $app['config']->get('app.locale');
115 115
             $loader        = null;
116 116
             $source        = $app['config']->get('translator.source');
117 117
 
118 118
             switch ($source) {
119 119
                 case 'mixed':
120
-                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath() . '/resources/lang');
120
+                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath().'/resources/lang');
121 121
                     $fileLoader        = new FileLoader($defaultLocale, $laravelFileLoader);
122 122
                     $databaseLoader    = new DatabaseLoader($defaultLocale, $app->make(TranslationRepository::class));
123 123
                     $loader            = new MixedLoader($defaultLocale, $fileLoader, $databaseLoader);
124 124
                     break;
125 125
                 case 'mixed_db':
126
-                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath() . '/resources/lang');
126
+                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath().'/resources/lang');
127 127
                     $fileLoader        = new FileLoader($defaultLocale, $laravelFileLoader);
128 128
                     $databaseLoader    = new DatabaseLoader($defaultLocale, $app->make(TranslationRepository::class));
129 129
                     $loader            = new MixedLoader($defaultLocale, $databaseLoader, $fileLoader);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     $loader = new DatabaseLoader($defaultLocale, $app->make(TranslationRepository::class));
133 133
                     break;
134 134
                 default:case 'files':
135
-                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath() . '/resources/lang');
135
+                    $laravelFileLoader = new LaravelFileLoader($app['files'], $app->basePath().'/resources/lang');
136 136
                     $loader            = new FileLoader($defaultLocale, $laravelFileLoader);
137 137
                     break;
138 138
             }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function registerCacheRepository()
152 152
     {
153
-        $this->app->singleton('translation.cache.repository', function ($app) {
153
+        $this->app->singleton('translation.cache.repository', function($app) {
154 154
             $cacheStore = $app['cache']->getStore();
155 155
             return CacheRepositoryFactory::make($cacheStore, $app['config']->get('translator.cache.suffix'));
156 156
         });
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $defaultLocale         = $app['config']->get('app.locale');
168 168
         $languageRepository    = $app->make(LanguageRepository::class);
169 169
         $translationRepository = $app->make(TranslationRepository::class);
170
-        $translationsPath      = $app->basePath() . '/resources/lang';
170
+        $translationsPath      = $app->basePath().'/resources/lang';
171 171
         $command               = new FileLoaderCommand($languageRepository, $translationRepository, $app['files'], $translationsPath, $defaultLocale);
172 172
 
173 173
         $this->app['command.translator:load'] = $command;
Please login to merge, or discard this patch.