Completed
Push — master ( 94ba74...5b4930 )
by Filip
04:55
created
src/Diagnostics/Panel.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/PrefixedTranslator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Translator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Phrase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Extractors/LatteExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.