Passed
Push — master ( ed2578...021b18 )
by Anton
05:05
created
src/Bootloader/Cycle/SchemaBootloader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function boot(SchemaInterface $schema = null)
76 76
     {
77
-        if (!is_null($schema)) {
77
+        if (!is_null($schema)){
78 78
             $this->bootRepositories($schema);
79 79
         }
80 80
     }
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function bootRepositories(SchemaInterface $schema)
86 86
     {
87
-        foreach ($schema->getRoles() as $role) {
87
+        foreach ($schema->getRoles() as $role){
88 88
             $repository = $schema->define($role, Schema::REPOSITORY);
89
-            if ($repository === Repository::class || $repository === null) {
89
+            if ($repository === Repository::class || $repository === null){
90 90
                 // default repository can not be wired
91 91
                 continue;
92 92
             }
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
     public function getGenerators(): array
126 126
     {
127 127
         $result = [];
128
-        foreach ($this->generators as $group) {
129
-            foreach ($group as $generator) {
130
-                if (is_object($generator) && !$generator instanceof Container\Autowire) {
128
+        foreach ($this->generators as $group){
129
+            foreach ($group as $generator){
130
+                if (is_object($generator) && !$generator instanceof Container\Autowire){
131 131
                     $result[] = $generator;
132
-                } else {
132
+                }else{
133 133
                     $result[] = $this->container->get($generator);
134 134
                 }
135 135
             }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     protected function schema(MemoryInterface $memory): ?SchemaInterface
146 146
     {
147 147
         $schema = $memory->loadData('cycle');
148
-        if (is_null($schema)) {
148
+        if (is_null($schema)){
149 149
             return null;
150 150
         }
151 151
 
Please login to merge, or discard this patch.