Completed
Push — sam-rework ( 1696e6 )
by Andrii
38:13 queued 23:11
created
src/CompositeContextContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
      */
42 42
     private function getContainers(string $context): iterable
43 43
     {
44
-        foreach($this->containers as $prefix => $containers) {
44
+        foreach ($this->containers as $prefix => $containers) {
45 45
             if (strncmp($prefix, $context, mb_strlen($prefix)) !== 0) {
46 46
                 continue;
47 47
             }
48
-            foreach($containers as $container) {
48
+            foreach ($containers as $container) {
49 49
                 yield $container;
50 50
             }
51 51
         }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $this->containers[$context] = [
77 77
                 $container
78 78
             ];
79
-            uksort($this->containers, function ($a, $b) {
79
+            uksort($this->containers, function($a, $b) {
80 80
                 return mb_strlen($b) <=> mb_strlen($a);
81 81
             });
82 82
         }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public function detach(ContainerInterface $container)
90 90
     {
91 91
         foreach ($this->containers as $prefix => $containers) {
92
-            foreach($containers as $i => $c) {
92
+            foreach ($containers as $i => $c) {
93 93
                 if ($container === $c) {
94 94
                     unset($this->containers[$prefix][$i]);
95 95
                 }
Please login to merge, or discard this patch.