Passed
Push — master ( f58202...b2903f )
by
unknown
03:19
created
src/DefinitionRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	 */
24 24
 	public function register(Definition $definition) {
25 25
 		if (array_key_exists($definition->getKey(), $this->definitions)) {
26
-			throw new \InvalidArgumentException('Definition already exists (Key: ' . $definition->getKey() . ').');
26
+			throw new \InvalidArgumentException('Definition already exists (Key: '.$definition->getKey().').');
27 27
 		}
28 28
 		$this->definitions[$definition->getKey()] = $definition;
29 29
 	}
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 */
36 36
 	public function get(string $key) : Definition {
37 37
 		if (!array_key_exists($key, $this->definitions)) {
38
-			throw new \InvalidArgumentException('Definition not found (Key: ' . $key . ').');
38
+			throw new \InvalidArgumentException('Definition not found (Key: '.$key.').');
39 39
 		}
40 40
 		return $this->definitions[$key];
41 41
 	}
Please login to merge, or discard this patch.