@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | |
245 | 245 | |
246 | 246 | /** |
247 | - * @param \Exception|\Throwable $e |
|
247 | + * @param \Exception $e |
|
248 | 248 | * @param string|NULL $domain |
249 | 249 | */ |
250 | 250 | public function choiceError($e, $domain) |
@@ -362,6 +362,8 @@ discard block |
||
362 | 362 | /** |
363 | 363 | * Returns link to editor. |
364 | 364 | * @author David Grudl |
365 | + * @param integer $line |
|
366 | + * @param string $text |
|
365 | 367 | * @return Nette\Utils\Html|string |
366 | 368 | */ |
367 | 369 | private static function editorLink($file, $line, $text = NULL) |
@@ -61,8 +61,8 @@ |
||
61 | 61 | |
62 | 62 | |
63 | 63 | /** |
64 | - * @param string|\Kdyby\Translation\Phrase $message |
|
65 | - * @param int|array|NULL $count |
|
64 | + * @param string $message |
|
65 | + * @param integer|null $count |
|
66 | 66 | * @param array|string|NULL $parameters |
67 | 67 | * @param string|NULL $domain |
68 | 68 | * @param string|NULL $locale |
@@ -136,7 +136,7 @@ |
||
136 | 136 | * Translates the given string. |
137 | 137 | * |
138 | 138 | * @param string|\Kdyby\Translation\Phrase|mixed $message The message id |
139 | - * @param int|array|NULL $count The number to use to find the indice of the message |
|
139 | + * @param integer|null $count The number to use to find the indice of the message |
|
140 | 140 | * @param string|array|NULL $parameters An array of parameters for the message |
141 | 141 | * @param string|NULL $domain The domain for the message |
142 | 142 | * @param string|NULL $locale The locale |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | $tmp = []; |
184 | 184 | foreach ($parameters as $key => $val) { |
185 | - $tmp['%' . trim($key, '%') . '%'] = $val; |
|
185 | + $tmp['%'.trim($key, '%').'%'] = $val; |
|
186 | 186 | } |
187 | 187 | $parameters = $tmp; |
188 | 188 | |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | */ |
515 | 515 | public static function buildWhitelistRegexp($whitelist) |
516 | 516 | { |
517 | - return ($whitelist !== NULL) ? '~^(' . implode('|', $whitelist) . ')~i' : NULL; |
|
517 | + return ($whitelist !== NULL) ? '~^('.implode('|', $whitelist).')~i' : NULL; |
|
518 | 518 | } |
519 | 519 | |
520 | 520 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | public function translate(Translator $translator, $count = NULL, array $parameters = [], $domain = NULL, $locale = NULL) |
94 | 94 | { |
95 | 95 | if (!is_string($this->message)) { |
96 | - throw new InvalidStateException("Message is not a string, type " . gettype($this->message) . ' given.'); |
|
96 | + throw new InvalidStateException("Message is not a string, type ".gettype($this->message).' given.'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | $count = ($count !== NULL) ? (int) $count : $this->count; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | if ($token->name === '/_' || ($token->name === '_' && $token->closing === TRUE)) { |
72 | 72 | if ($buffer !== NULL) { |
73 | - $catalogue->set(($this->prefix ? $this->prefix . '.' : '') . $buffer, $buffer); |
|
73 | + $catalogue->set(($this->prefix ? $this->prefix.'.' : '').$buffer, $buffer); |
|
74 | 74 | $buffer = NULL; |
75 | 75 | } |
76 | 76 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $message = substr(trim($message), 1, -1); |
87 | 87 | } |
88 | 88 | |
89 | - $catalogue->set(($this->prefix ? $this->prefix . '.' : '') . $message, $message); |
|
89 | + $catalogue->set(($this->prefix ? $this->prefix.'.' : '').$message, $message); |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 | } |