Completed
Push — master ( 94ba74...5b4930 )
by Filip
04:55
created
src/Translator.php 1 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.