| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 | * Save a single attribute | 
| 45 | 45 | * | 
| 46 | 46 | * @param $locale | 
| 47 | - * @param $attribute | |
| 47 | + * @param string $attribute | |
| 48 | 48 | * @param $value | 
| 49 | 49 | */ | 
| 50 | 50 | public function saveTranslation($locale, $attribute, $value) | 
| @@ -55,7 +55,7 @@ discard block | ||
| 55 | 55 | } | 
| 56 | 56 | |
| 57 | 57 | /** | 
| 58 | - * @param $attribute | |
| 58 | + * @param string $attribute | |
| 59 | 59 | * @param null $locale | 
| 60 | 60 | * @param bool $fallback | if locale not present, use fallback locale instead | 
| 61 | 61 | * @return string null | 
| @@ -90,7 +90,7 @@ | ||
| 90 | 90 | } | 
| 91 | 91 | |
| 92 | 92 | /** | 
| 93 | - * @param $action | |
| 93 | + * @param string $action | |
| 94 | 94 | * @param $locale | 
| 95 | 95 | * @param $key | 
| 96 | 96 | * @param $new_value | 
| @@ -175,6 +175,9 @@ | ||
| 175 | 175 | } | 
| 176 | 176 | |
| 177 | 177 | |
| 178 | + /** | |
| 179 | + * @param string $action | |
| 180 | + */ | |
| 178 | 181 | private function displayDetails($action) | 
| 179 | 182 |      { | 
| 180 | 183 | $stats = $this->importer->getStats(); | 
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | protected $defer = true; | 
| 17 | 17 | |
| 18 | 18 | /** | 
| 19 | - * @return array | |
| 19 | + * @return string[] | |
| 20 | 20 | */ | 
| 21 | 21 | public function provides() | 
| 22 | 22 |      { | 
| @@ -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 | /** | 
| @@ -41,6 +41,9 @@ | ||
| 41 | 41 | return $this->push($key, $value, true); | 
| 42 | 42 | } | 
| 43 | 43 | |
| 44 | + /** | |
| 45 | + * @param string $key | |
| 46 | + */ | |
| 44 | 47 | private function push($action, $value, $single = false, $key = null) | 
| 45 | 48 |      { | 
| 46 | 49 |          if ($single) { |