Completed
Branch master (f893e4)
by Alexpts
06:07
created
Category
src/PTS/Tools/CollectionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Tools;
4 4
 
5 5
 interface CollectionInterface
Please login to merge, or discard this patch.
src/PTS/Tools/DuplicateKeyException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Tools;
4 4
 
5 5
 class DuplicateKeyException extends \Exception {}
Please login to merge, or discard this patch.
src/PTS/Tools/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Tools;
4 4
 
5 5
 class Collection implements CollectionInterface
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function addItem(string $name, $item, int $priority = 50)
20 20
     {
21 21
         if ($this->has($name)) {
22
-            throw new DuplicateKeyException('Item with name ' . $name . ' already defined');
22
+            throw new DuplicateKeyException('Item with name '.$name.' already defined');
23 23
         }
24 24
 
25 25
         $this->items[$priority][$name] = $item;
Please login to merge, or discard this patch.