Completed
Push — 4.0 ( 984e8a...f02fa4 )
by David
08:59 queued 18s
created
src/Mouf/Database/TDBM/PageIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function getCurrentPage()
114 114
     {
115
-        return floor($this->offset / $this->limit) + 1;
115
+        return floor($this->offset/$this->limit)+1;
116 116
     }
117 117
 
118 118
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      */
252 252
     public function jsonSerialize()
253 253
     {
254
-        return array_map(function (AbstractTDBMObject $item) {
254
+        return array_map(function(AbstractTDBMObject $item) {
255 255
             return $item->jsonSerialize();
256 256
         }, $this->toArray());
257 257
     }
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/AbstractTDBMObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     protected function get($var, $tableName = null)
181 181
     {
182 182
         if ($tableName === null) {
183
-            if (count($this->dbRows) > 1) {
183
+            if (count($this->dbRows)>1) {
184 184
                 throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.');
185 185
             } elseif (count($this->dbRows) === 1) {
186 186
                 $tableName = array_keys($this->dbRows)[0];
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     protected function set($var, $value, $tableName = null)
202 202
     {
203 203
         if ($tableName === null) {
204
-            if (count($this->dbRows) > 1) {
204
+            if (count($this->dbRows)>1) {
205 205
                 throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.');
206 206
             } elseif (count($this->dbRows) === 1) {
207 207
                 $tableName = array_keys($this->dbRows)[0];
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     protected function setRef($foreignKeyName, AbstractTDBMObject $bean, $tableName = null)
228 228
     {
229 229
         if ($tableName === null) {
230
-            if (count($this->dbRows) > 1) {
230
+            if (count($this->dbRows)>1) {
231 231
                 throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.');
232 232
             } elseif (count($this->dbRows) === 1) {
233 233
                 $tableName = array_keys($this->dbRows)[0];
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     protected function getRef($foreignKeyName, $tableName = null)
255 255
     {
256 256
         if ($tableName === null) {
257
-            if (count($this->dbRows) > 1) {
257
+            if (count($this->dbRows)>1) {
258 258
                 throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.');
259 259
             } elseif (count($this->dbRows) === 1) {
260 260
                 $tableName = array_keys($this->dbRows)[0];
Please login to merge, or discard this patch.