@@ -56,10 +56,10 @@ discard block |
||
| 56 | 56 | * Get from excluded sources. This is used here to make retrieval of these |
| 57 | 57 | * non-managed translations a lot faster by going straight to source |
| 58 | 58 | * |
| 59 | - * @param $key |
|
| 59 | + * @param string $key |
|
| 60 | 60 | * @param $replace |
| 61 | - * @param $locale |
|
| 62 | - * @param $fallback |
|
| 61 | + * @param string $locale |
|
| 62 | + * @param boolean $fallback |
|
| 63 | 63 | * @return array|null|string |
| 64 | 64 | */ |
| 65 | 65 | private function getFromExcludedSource($key, $replace, $locale, $fallback) |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Retrieve the translation from the squanto cache. |
| 74 | 74 | * |
| 75 | - * @param $key |
|
| 75 | + * @param string $key |
|
| 76 | 76 | * @param array $replace |
| 77 | - * @param null $locale |
|
| 77 | + * @param string $locale |
|
| 78 | 78 | * @return mixed|null |
| 79 | 79 | */ |
| 80 | 80 | private function getFromCache($key, array $replace = array(), $locale = null, $fallback = true) |
@@ -88,6 +88,10 @@ discard block |
||
| 88 | 88 | return ($result !== $key) ? $result : null; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | + /** |
|
| 92 | + * @param string $key |
|
| 93 | + * @param string $locale |
|
| 94 | + */ |
|
| 91 | 95 | private function getFromDatabase($key, array $replace = array(), $locale = null, $fallback = true) |
| 92 | 96 | { |
| 93 | 97 | /** |