Passed
Pull Request — master (#3)
by
unknown
01:41
created
src/DBD/Entity/Interfaces/EntityMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      * @param Column $column
83 83
      * @return int|string
84 84
      */
85
-    public function getVarNameByColumn(Column $column): int|string;
85
+    public function getVarNameByColumn(Column $column): int | string;
86 86
 
87 87
     /**
88 88
      * @return Column[]
Please login to merge, or discard this patch.
src/DBD/Entity/MapperAttributed.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
     public function name(): string
50 50
     {
51
-        return substr($this->entityClass, strrpos($this->entityClass, '\\') + 1). 'Map';
51
+        return substr($this->entityClass, strrpos($this->entityClass, '\\') + 1) . 'Map';
52 52
     }
53 53
 
54 54
     public function getEntityClass(): string
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -137,14 +137,11 @@
 block discarded – undo
137 137
                 foreach ($attributes as $attribute) {
138 138
                     if ($attribute->getName() === Column::class || is_subclass_of($attribute->getName(), Column::class)) {
139 139
                         $columns[$property->getName()] = $attribute->newInstance();
140
-                    }
141
-                    else if ($attribute->getName() === Constraint::class || is_subclass_of($attribute->getName(), Constraint::class)) {
140
+                    } else if ($attribute->getName() === Constraint::class || is_subclass_of($attribute->getName(), Constraint::class)) {
142 141
                         $constraints[$property->getName()] = $attribute->newInstance();
143
-                    }
144
-                    else if ($attribute->getName() === Embedded::class || is_subclass_of($attribute->getName(), Embedded::class)) {
142
+                    } else if ($attribute->getName() === Embedded::class || is_subclass_of($attribute->getName(), Embedded::class)) {
145 143
                         $embedded[$property->getName()] = $attribute->newInstance();
146
-                    }
147
-                    else if ($attribute->getName() === Complex::class || is_subclass_of($attribute->getName(), Complex::class)) {
144
+                    } else if ($attribute->getName() === Complex::class || is_subclass_of($attribute->getName(), Complex::class)) {
148 145
                         $complexes[$property->getName()] = $attribute->newInstance();
149 146
                     }
150 147
                 }
Please login to merge, or discard this patch.
src/DBD/Entity/MapperTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      * @return int|string
87 87
      * @throws EntityException
88 88
      */
89
-    public function getVarNameByColumn(Column $column): int|string
89
+    public function getVarNameByColumn(Column $column): int | string
90 90
     {
91 91
         foreach ($this->getOriginFieldNames() as $varName => $originFieldName) {
92 92
             if ($originFieldName == $column->name) {
Please login to merge, or discard this patch.