Completed
Push — master ( f82559...44e56a )
by Lars
02:27
created
src/idiorm/orm/ORM.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -970,10 +970,10 @@  discard block
 block discarded – undo
970 970
     if ($result !== false && isset($result->$alias)) {
971 971
       if (!is_numeric($result->$alias)) {
972 972
         $return_value = $result->$alias;
973
-      } elseif ((int)$result->$alias == (float)$result->$alias) {
974
-        $return_value = (int)$result->$alias;
973
+      } elseif ((int) $result->$alias == (float) $result->$alias) {
974
+        $return_value = (int) $result->$alias;
975 975
       } else {
976
-        $return_value = (float)$result->$alias;
976
+        $return_value = (float) $result->$alias;
977 977
       }
978 978
     }
979 979
 
@@ -3052,8 +3052,7 @@  discard block
 block discarded – undo
3052 3052
 
3053 3053
     return self::_execute(
3054 3054
         join(" ", $query), is_array($this->id(true)) ?
3055
-        array_values($this->id(true)) :
3056
-        array($this->id(true)), $this->_connection_name
3055
+        array_values($this->id(true)) : array($this->id(true)), $this->_connection_name
3057 3056
     );
3058 3057
   }
3059 3058
 
Please login to merge, or discard this patch.
src/idiorm/orm/IdiormString.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
    */
63 63
   public function __construct($subject)
64 64
   {
65
-    $this->subject = (string)$subject;
65
+    $this->subject = (string) $subject;
66 66
   }
67 67
 
68 68
   /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 | ([^\'"\\\\]+)             # or $2: an unquoted chunk (no escapes).
118 118
                 /sx';
119 119
 
120
-    return (string)preg_replace_callback($re_parse, array($this, '_str_replace_outside_quotes_cb'), $this->subject);
120
+    return (string) preg_replace_callback($re_parse, array($this, '_str_replace_outside_quotes_cb'), $this->subject);
121 121
   }
122 122
 
123 123
   /**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     // Process only unquoted chunks (in group $2).
142
-    return (string)preg_replace('/' . preg_quote($this->search, '/') . '/', $this->replace, $matches[2]);
142
+    return (string) preg_replace('/' . preg_quote($this->search, '/') . '/', $this->replace, $matches[2]);
143 143
   }
144 144
 
145 145
 }
Please login to merge, or discard this patch.