Passed
Push — master ( c58a59...826990 )
by Anton
02:19
created
src/Bootloader/Cycle/CycleBootloader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
     public function boot(Container $container, FinalizerInterface $finalizer, SchemaInterface $schema = null)
47 47
     {
48 48
         $finalizer->addFinalizer(function () use ($container) {
49
-            if ($container->hasInstance(ORMInterface::class)) {
49
+            if ($container->hasInstance(ORMInterface::class)){
50 50
                 $container->get(ORMInterface::class)->getHeap()->clean();
51 51
             }
52 52
         });
53 53
 
54 54
         $container->bindInjector(Select::class, SelectInjector::class);
55 55
 
56
-        if ($schema !== null) {
56
+        if ($schema !== null){
57 57
             $this->bindRepositories($container, $schema);
58 58
         }
59 59
     }
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function bindRepositories(Container $container, SchemaInterface $schema)
68 68
     {
69
-        foreach ($schema->getRoles() as $role) {
69
+        foreach ($schema->getRoles() as $role){
70 70
             $repository = $schema->define($role, SchemaInterface::REPOSITORY);
71
-            if ($repository === Select\Repository::class || $repository === null) {
71
+            if ($repository === Select\Repository::class || $repository === null){
72 72
                 // default repository can not be wired
73 73
                 continue;
74 74
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     ): ORMInterface {
105 105
         $orm = new ORM($factory, $schema);
106 106
 
107
-        if ($promiseFactory !== null) {
107
+        if ($promiseFactory !== null){
108 108
             return $orm->withPromiseFactory($promiseFactory);
109 109
         }
110 110
 
Please login to merge, or discard this patch.