@@ -37,7 +37,7 @@ |
||
| 37 | 37 | * |
| 38 | 38 | * @param string $locale |
| 39 | 39 | * |
| 40 | - * @return YamlFileLoader |
|
| 40 | + * @return ArrayLoader |
|
| 41 | 41 | */ |
| 42 | 42 | public function setLocale($locale) |
| 43 | 43 | { |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Returns the resource tied to this Resource. |
| 65 | 65 | * |
| 66 | - * @return mixed The resource |
|
| 66 | + * @return string The resource |
|
| 67 | 67 | */ |
| 68 | 68 | public function getResource() |
| 69 | 69 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | ->defaultValue(0) |
| 43 | 43 | ->validate() |
| 44 | 44 | // priority must be less than LocaleListener priority |
| 45 | - ->ifTrue(function ($priority) { |
|
| 45 | + ->ifTrue(function($priority) { |
|
| 46 | 46 | return $priority >= Configuration::getPriorityMax(); |
| 47 | 47 | }) |
| 48 | 48 | ->thenInvalid('ConfigCacheListener priority[%s] must be less than LocaleListener priority['.Configuration::getPriorityMax().']') |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ->end() |
| 51 | 51 | ->end() |
| 52 | 52 | ->validate() |
| 53 | - ->ifTrue(function ($locale) { |
|
| 53 | + ->ifTrue(function($locale) { |
|
| 54 | 54 | return $locale['enabled'] && $locale['locales'] === array(); |
| 55 | 55 | }) |
| 56 | 56 | ->thenInvalid('yahoo_japan_config_cache.locale.locales must be configured.') |
@@ -251,7 +251,7 @@ |
||
| 251 | 251 | { |
| 252 | 252 | $finder = Finder::create() |
| 253 | 253 | ->files() |
| 254 | - ->filter(function (\SplFileInfo $file) use ($excludes) { |
|
| 254 | + ->filter(function(\SplFileInfo $file) use ($excludes) { |
|
| 255 | 255 | foreach ($excludes as $exclude) { |
| 256 | 256 | if (strpos($file->getRealPath(), $exclude) !== false) { |
| 257 | 257 | return false; |
@@ -482,7 +482,7 @@ |
||
| 482 | 482 | /** |
| 483 | 483 | * Builds a cache service ID. |
| 484 | 484 | * |
| 485 | - * @param array $suffixes ex) array("yahoo_japan_config_cache") |
|
| 485 | + * @param string[] $suffixes ex) array("yahoo_japan_config_cache") |
|
| 486 | 486 | * |
| 487 | 487 | * @return string ex) "config.yahoo_japan_config_cache" |
| 488 | 488 | */ |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Returns the resource tied to this Resource. |
| 65 | 65 | * |
| 66 | - * @return mixed The resource |
|
| 66 | + * @return string The resource |
|
| 67 | 67 | */ |
| 68 | 68 | public function getResource() |
| 69 | 69 | { |