Test Setup Failed
Branch master (33b59c)
by Avtandil
05:59
created
src/MultiLang/Console/MigrationCommand.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,6 @@
 block discarded – undo
65 65
     /**
66 66
      * Create the migration.
67 67
      *
68
-     * @param  string $name
69 68
      * @return bool
70 69
      */
71 70
     protected function createMigration($table)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                 $this->info('Migration successfully created!');
54 54
             } else {
55 55
                 $this->error(
56
-                    'Couldn\'t create migration.'.PHP_EOL.' Check the write permissions
56
+                    'Couldn\'t create migration.' . PHP_EOL . ' Check the write permissions
57 57
                     within the database/migrations directory.'
58 58
                 );
59 59
             }
Please login to merge, or discard this patch.
src/MultiLang/MultiLang.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @param  \Illuminate\Config\Repository        $config
82 82
      * @param  \Illuminate\Cache\CacheManager       $cache
83 83
      * @param  \Illuminate\Database\DatabaseManager $db
84
-     * @return void
84
+     * @return string
85 85
      */
86 86
     public function __construct(ApplicationContract $app, ConfigContract $config, CacheContract $cache, DatabaseContract $db)
87 87
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * Get texts
187 187
      *
188 188
      * @param  string   $lang
189
-     * @return string
189
+     * @return Collection
190 190
      */
191 191
     public function getTexts($lang = null)
192 192
     {
@@ -258,6 +258,9 @@  discard block
 block discarded – undo
258 258
         return $status;
259 259
     }
260 260
 
261
+    /**
262
+     * @param string|null $lang
263
+     */
261 264
     protected function loadTextsFromDatabase($lang)
262 265
     {
263 266
         $texts = $lang ? $this->db->table($this->getTableName())
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
             return false;
311 311
         }
312 312
 
313
-        $this->app->terminating(function () {
313
+        $this->app->terminating(function() {
314 314
             return $this->registerTexts();
315 315
         });
316 316
     }
Please login to merge, or discard this patch.
src/MultiLang/MultiLangServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
     /**
146 146
      * Get the services provided by the provider.
147 147
      *
148
-     * @return array
148
+     * @return string[]
149 149
      */
150 150
     public function provides()
151 151
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $this->commands(['command.multilang.migration', 'command.multilang.texts']);
42 42
 
43 43
         // Register blade directives
44
-        Blade::directive('t', function ($expression) {
44
+        Blade::directive('t', function($expression) {
45 45
 
46 46
             if (strpos($expression, ',') !== false) {
47 47
                 list($key, $default) = explode(',', str_replace(['(', ')'], '', $expression));
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $configPath = __DIR__ . '/../config/config.php';
66 66
         $this->mergeConfigFrom($configPath, 'debugbar');
67 67
 
68
-        $this->app->singleton('multilang', function ($app) {
68
+        $this->app->singleton('multilang', function($app) {
69 69
             $locale = $app->getLocale();
70 70
             $multilang = new \Longman\LaravelMultiLang\MultiLang(
71 71
                 $app,
@@ -81,13 +81,13 @@  discard block
 block discarded – undo
81 81
         $this->app->alias('multilang', 'Longman\LaravelMultiLang\MultiLang');
82 82
 
83 83
         $this->app['command.multilang.migration'] = $this->app->share(
84
-            function ($app) {
84
+            function($app) {
85 85
                 return new MigrationCommand();
86 86
             }
87 87
         );
88 88
 
89 89
         $this->app['command.multilang.texts'] = $this->app->share(
90
-            function ($app) {
90
+            function($app) {
91 91
                 return new TextsCommand();
92 92
             }
93 93
         );
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function registerBladeDirectives()
137 137
     {
138
-        \Blade::directive('t', function ($expression) {
138
+        \Blade::directive('t', function($expression) {
139 139
             return "<?php echo t({$expression}); ?>";
140 140
         });
141 141
     }
Please login to merge, or discard this patch.