Completed
Push — master ( d9a631...153645 )
by Maik
07:29
created
src/Orm/Orm.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $pkColumn => $id
87 87
         ));
88 88
         
89
-        if (! $result || is_array($result)) {
89
+        if (!$result || is_array($result)) {
90 90
             throw new OrmException("More than one entity found (expected exactly one)");
91 91
         }
92 92
         
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 $placeHolder = str_replace('.', '_', $criterion);
136 136
                 $placeHolder = str_replace('OR ', 'OR_', $placeHolder);
137 137
                 $value = str_ireplace('LIKE ', '', $value);
138
-                $statement->bindValue(":" . $placeHolder, $value);
138
+                $statement->bindValue(":".$placeHolder, $value);
139 139
             }
140 140
             
141 141
             $statement->execute();
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 $results[] = self::map($result, $class, $instance);
152 152
             }
153 153
             
154
-            if (! $asList && count($results) == 1) {
154
+            if (!$asList && count($results) == 1) {
155 155
                 $results = $results[0];
156 156
             }
157 157
             
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
             
233 233
             $instance->getDbType()->lock($tableName, IType::LOCK_TYPE_WRITE, $instance);
234 234
             $statement->execute();
235
-            if (! $primaryKeyValue) {
235
+            if (!$primaryKeyValue) {
236 236
                 $pk = $connection->lastInsertId($instance->getDbType()
237 237
                     ->getSequenceNameForColumn($tableName, $primaryKeyCol, $instance));
238 238
             }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             
241 241
             unset($statement);
242 242
             
243
-            if (! $primaryKeyValue) {
243
+            if (!$primaryKeyValue) {
244 244
                 $this->setPrimaryKey($class, $entity, $pk);
245 245
             }
246 246
             
Please login to merge, or discard this patch.
src/Orm/OrmClassUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     private static function fullQualifiedName(string $ns, string $class): string
52 52
     {
53
-        if (! class_exists($class)) {
53
+        if (!class_exists($class)) {
54 54
             $class = sprintf("\\%s\\%s", $ns, $class);
55 55
         }
56 56
         return $class;
Please login to merge, or discard this patch.
src/Orm/OrmTypeUtil.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
      */
39 39
     private static function boolval($value): bool
40 40
     {
41
-        if (! function_exists('boolval')) {
42
-            return (bool) $value;
41
+        if (!function_exists('boolval')) {
42
+            return (bool)$value;
43 43
         }
44 44
         return boolval($value);
45 45
     }
Please login to merge, or discard this patch.