@@ -118,9 +118,9 @@ discard block |
||
118 | 118 | * Load the lines into the database. |
119 | 119 | * |
120 | 120 | * @param $lines |
121 | - * @param $namespace |
|
122 | - * @param $group |
|
123 | - * @param $locale |
|
121 | + * @param null|string $namespace |
|
122 | + * @param string $group |
|
123 | + * @param string $locale |
|
124 | 124 | */ |
125 | 125 | protected function loadLines($lines, $namespace, $group, $locale) |
126 | 126 | { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * @param $file |
147 | 147 | * |
148 | - * @return mixed |
|
148 | + * @return string |
|
149 | 149 | */ |
150 | 150 | protected function getGroup($file) |
151 | 151 | { |
@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * Process the language lines to remove the specified locale. |
68 | 68 | * |
69 | - * @param $lines |
|
69 | + * @param \Illuminate\Database\Eloquent\Model $lines |
|
70 | 70 | */ |
71 | 71 | protected function processLines($lines) |
72 | 72 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function up() |
18 | 18 | { |
19 | - Schema::create(config('database.translations.table'), function (Blueprint $table) { |
|
19 | + Schema::create(config('database.translations.table'), function(Blueprint $table) { |
|
20 | 20 | $table->increments('id'); |
21 | 21 | $table->string('namespace')->nullable(); |
22 | 22 | $table->string('group')->nullable(); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $this->registerLoader(); |
49 | 49 | |
50 | - $this->app->singleton('translator', function ($app) { |
|
50 | + $this->app->singleton('translator', function($app) { |
|
51 | 51 | $loader = $app['translation.loader']; |
52 | 52 | |
53 | 53 | // When registering the translator component, we'll need to set the default |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function registerLoader() |
72 | 72 | { |
73 | - $this->app->singleton('translation.loader', function ($app) { |
|
73 | + $this->app->singleton('translation.loader', function($app) { |
|
74 | 74 | return new DatabaseLoader( |
75 | 75 | $app['files'], |
76 | 76 | $app['path.lang'], |
@@ -105,7 +105,7 @@ |
||
105 | 105 | if (!$this->cacheEnabled) { |
106 | 106 | $translations = $this->loadCombinedTranslations($locale, $group, $namespace); |
107 | 107 | } else { |
108 | - $translations = $this->cache->remember($cacheKey, 1440, function () use ($locale, $namespace, $group) { |
|
108 | + $translations = $this->cache->remember($cacheKey, 1440, function() use ($locale, $namespace, $group) { |
|
109 | 109 | return $this->loadCombinedTranslations($locale, $group, $namespace); |
110 | 110 | }); |
111 | 111 | } |