Passed
Push — master ( 2f1f5f...dd46fb )
by Aleksei
06:02 queued 21s
created
src/Core/src/Internal/Introspector.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $scope = self::getAccessor($container)->scope;
30 30
         $result = [];
31
-        do {
31
+        do
32
+        {
32 33
             $result[] = $scope->getScopeName();
33 34
             $scope = $scope->getParentScope();
34 35
         } while ($scope !== null);
@@ -41,13 +42,15 @@  discard block
 block discarded – undo
41 42
      */
42 43
     public static function getAccessor(?ContainerInterface $container = null): Accessor
43 44
     {
44
-        if ($container !== null && !$container instanceof Container) {
45
+        if ($container !== null && !$container instanceof Container)
46
+        {
45 47
             throw new \InvalidArgumentException('Container must be an instance of ' . Container::class);
46 48
         }
47 49
 
48 50
         $container ??= ContainerScope::getContainer();
49 51
 
50
-        if (!$container instanceof Container) {
52
+        if (!$container instanceof Container)
53
+        {
51 54
             throw new \RuntimeException('Container is not available.');
52 55
         }
53 56
 
Please login to merge, or discard this patch.