Completed
Push — master ( d5e2fb...c58f57 )
by Lars
02:27
created
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.
src/idiorm/orm/ORM.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -981,10 +981,10 @@  discard block
 block discarded – undo
981 981
     if ($result !== false && isset($result->$alias)) {
982 982
       if (!is_numeric($result->$alias)) {
983 983
         $return_value = $result->$alias;
984
-      } elseif ((int)$result->$alias == (float)$result->$alias) {
985
-        $return_value = (int)$result->$alias;
984
+      } elseif ((int) $result->$alias == (float) $result->$alias) {
985
+        $return_value = (int) $result->$alias;
986 986
       } else {
987
-        $return_value = (float)$result->$alias;
987
+        $return_value = (float) $result->$alias;
988 988
       }
989 989
     }
990 990
 
@@ -2471,7 +2471,7 @@  discard block
 block discarded – undo
2471 2471
         $fragment = 'LIMIT';
2472 2472
       }
2473 2473
 
2474
-      $this->_limit = (int)$this->_limit;
2474
+      $this->_limit = (int) $this->_limit;
2475 2475
 
2476 2476
       $fragment .= " {$this->_limit}";
2477 2477
     }
@@ -2490,7 +2490,7 @@  discard block
 block discarded – undo
2490 2490
         $clause = 'TO';
2491 2491
       }
2492 2492
 
2493
-      $this->_offset = (int)$this->_offset;
2493
+      $this->_offset = (int) $this->_offset;
2494 2494
 
2495 2495
       return "$clause " . $this->_offset;
2496 2496
     }
@@ -3093,8 +3093,7 @@  discard block
 block discarded – undo
3093 3093
 
3094 3094
     return static::_execute(
3095 3095
         join(" ", $query), is_array($this->id(true)) ?
3096
-        array_values($this->id(true)) :
3097
-        array($this->id(true)), $this->_connection_name
3096
+        array_values($this->id(true)) : array($this->id(true)), $this->_connection_name
3098 3097
     );
3099 3098
   }
3100 3099
 
Please login to merge, or discard this patch.