@@ -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 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * @param string $value |
| 158 | 158 | * @param bool $overwrite |
| 159 | 159 | * |
| 160 | - * @return bool |
|
| 160 | + * @return boolean|null |
|
| 161 | 161 | **/ |
| 162 | 162 | public function updateById($id, $locale, $value, $overwrite = true) |
| 163 | 163 | { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * @param string $value |
| 174 | 174 | * @param bool $overwrite |
| 175 | 175 | * |
| 176 | - * @return bool |
|
| 176 | + * @return boolean|null |
|
| 177 | 177 | **/ |
| 178 | 178 | public function updateTranslations(Translation $line, $locale, $value, $overwrite = true) |
| 179 | 179 | { |
@@ -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'], |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | |
| 97 | 97 | $cacheKey = "translations.{$locale}.{$namespace}.{$group}"; |
| 98 | 98 | |
| 99 | - $translations = $this->cache->remember($cacheKey, 1440, function () use ($locale, $namespace, $group) { |
|
| 99 | + $translations = $this->cache->remember($cacheKey, 1440, function() use ($locale, $namespace, $group) { |
|
| 100 | 100 | return $this->loadCombinedTranslations($locale, $group, $namespace); |
| 101 | 101 | }); |
| 102 | 102 | |