Completed
Pull Request — master (#137)
by Jáchym
08:11
created
src/Kdyby/Translation/Phrase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 	public function translate(Translator $translator, $count = NULL, array $parameters = [], $domain = NULL, $locale = NULL)
78 78
 	{
79 79
 		if (!is_string($this->message)) {
80
-			throw new InvalidStateException("Message is not a string, type " . gettype($this->message) . ' given.');
80
+			throw new InvalidStateException("Message is not a string, type ".gettype($this->message).' given.');
81 81
 		}
82 82
 
83 83
 		$count = $count !== NULL ? $count : $this->count;
Please login to merge, or discard this patch.
src/Kdyby/Translation/Extractors/LatteExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			}
69 69
 
70 70
 			if ($token->name === '/_' || ($token->name === '_' && $token->closing === TRUE)) {
71
-				$catalogue->set(($this->prefix ? $this->prefix . '.' : '') . $buffer, $buffer);
71
+				$catalogue->set(($this->prefix ? $this->prefix.'.' : '').$buffer, $buffer);
72 72
 				$buffer = NULL;
73 73
 
74 74
 			} elseif ($token->name === '_' && empty($token->value)) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 					$message = substr(trim($message), 1, -1);
84 84
 				}
85 85
 
86
-				$catalogue->set(($this->prefix ? $this->prefix . '.' : '') . $message, $message);
86
+				$catalogue->set(($this->prefix ? $this->prefix.'.' : '').$message, $message);
87 87
 			}
88 88
 		}
89 89
 	}
Please login to merge, or discard this patch.