Completed
Push — master ( 1857e6...d96bec )
by Joao
03:02
created
src/Database/DBMysqlFunctions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         $sql = "concat(";
15 15
         for ($i = 0, $numArgs = func_num_args(); $i < $numArgs; $i++) {
16 16
             $var = func_get_arg($i);
17
-            $sql .= ($i == 0 ? "" : ",") . $var;
17
+            $sql .= ($i == 0 ? "" : ",").$var;
18 18
         }
19 19
         $sql .= ")";
20 20
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     function limit($sql, $start, $qty)
32 32
     {
33 33
         if (strpos($sql, ' LIMIT ') === false) {
34
-            return $sql . " LIMIT $start, $qty ";
34
+            return $sql." LIMIT $start, $qty ";
35 35
         } else {
36 36
             return $sql;
37 37
         }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     function sqlDate($fmt, $col = false)
77 77
     {
78 78
         if (!$col) $col = $this->sysTimeStamp;
79
-        $s = 'DATE_FORMAT(' . $col . ",'";
79
+        $s = 'DATE_FORMAT('.$col.",'";
80 80
         $concat = false;
81 81
         $len = strlen($fmt);
82 82
         for ($i = 0; $i < $len; $i++) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                     break;
138 138
             }
139 139
         }
140
-        $s.="')";
140
+        $s .= "')";
141 141
         if ($concat) $s = "CONCAT($s)";
142 142
         return $s;
143 143
     }
Please login to merge, or discard this patch.
src/Model/SerializerObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
                 $keyName = substr($key, strrpos($key, "\0"));
172 172
                 $propertyName = preg_replace($this->getMethodPattern(0), $this->getMethodPattern(1), $keyName);
173 173
 
174
-                if (method_exists($object, $this->getMethodGetPrefix() . $propertyName)) {
174
+                if (method_exists($object, $this->getMethodGetPrefix().$propertyName)) {
175 175
                     $result[$propertyName] = $this->buildProperty($value);
176 176
                 }
177 177
             } else {
Please login to merge, or discard this patch.
src/Model/BinderObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@
 block discarded – undo
80 80
     {
81 81
         if ($obj instanceof SingleRow) {
82 82
             $obj->setField($propName, $value);
83
-        } else if (method_exists($obj, 'set' . $propName)) {
84
-            $obj->{'set' . $propName}($value);
83
+        } else if (method_exists($obj, 'set'.$propName)) {
84
+            $obj->{'set'.$propName}($value);
85 85
         } elseif (isset($obj->{$propName}) || $obj instanceof stdClass) {
86 86
             $obj->{$propName} = $value;
87 87
         } else {
Please login to merge, or discard this patch.
src/Model/ClassAnnotations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             } else {
67 67
                 $this->propertyList = $this->getClassRefl()->getProperties(
68 68
                     ReflectionProperty::IS_PROTECTED |
69
-                    ReflectionProperty::IS_PRIVATE   |
69
+                    ReflectionProperty::IS_PRIVATE |
70 70
                     ReflectionProperty::IS_PUBLIC
71 71
                 );
72 72
             }
@@ -196,12 +196,12 @@  discard block
 block discarded – undo
196 196
         if (!$this->classNamespace) {
197 197
             $this->classNamespace = $this->getAnnotations("namespace", []);
198 198
             if (!is_array($this->classNamespace) && !empty($this->classNamespace)) {
199
-                $this->classNamespace = [ $this->classNamespace];
199
+                $this->classNamespace = [$this->classNamespace];
200 200
             }
201 201
 
202 202
             foreach ($this->classNamespace as $key => $value) {
203 203
                 $prefix = strtok($value, "!");
204
-                $uri = str_replace($prefix . "!", "", $value);
204
+                $uri = str_replace($prefix."!", "", $value);
205 205
 
206 206
                 $this->classNamespace[$key] = [
207 207
                     $this->classNamespace[$key],
Please login to merge, or discard this patch.