Passed
Push — master ( d1f166...32243d )
by Dmytro
21:08 queued 15:38
created
framework/db/DBSelector.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function selectDBObject($debug = false) {
105 105
         $query = "SELECT * FROM " . $this->dbObject->getTableName() .
106
-                  ($this->conditions != ""?" WHERE " . $this->conditions:"") . " LIMIT 1";
106
+                    ($this->conditions != ""?" WHERE " . $this->conditions:"") . " LIMIT 1";
107 107
 
108 108
         if (!$debug) {
109 109
             $stmt = DBCore::doSelectQuery($query);
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
             return $this->selectDBObject();
384 384
         }
385 385
 
386
-       /*
386
+        /*
387 387
         * Try to call parent method __call() with same params by default
388 388
         */
389 389
         $method = substr($methodName, 0, 3);
Please login to merge, or discard this patch.
framework/db/DBCore.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -598,7 +598,7 @@
 block discarded – undo
598 598
     public static function deleteDBObject($dbObject) {
599 599
         if (!empty($dbObject) && is_object($dbObject)) {
600 600
             $query = "DELETE FROM " . $dbObject->getTableName() .
601
-                     " WHERE " . $dbObject->getIdFieldName() . " = ? LIMIT 1";
601
+                        " WHERE " . $dbObject->getIdFieldName() . " = ? LIMIT 1";
602 602
             if (Tools::isInteger($dbObject->getId())) {
603 603
                 $typesString = "i";
604 604
             } else {
Please login to merge, or discard this patch.
framework/db/DBPreparedQuery.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,9 @@
 block discarded – undo
139 139
             $typeByValue = DBField::getType($value);
140 140
             if ($typeByValue != 's') {
141 141
                 if ($type != $typeByValue && !(
142
-                       ($type == 'd' && $typeByValue == 'i') || // We can put integer as double
142
+                        ($type == 'd' && $typeByValue == 'i') || // We can put integer as double
143 143
                        ($type == 's' && $typeByValue == 'i') // We can put integer as string
144
-                   )
144
+                    )
145 145
                 ) {
146 146
                     throw new DBCoreException(
147 147
                         "Invalid query parameters types string ('" . $value .
Please login to merge, or discard this patch.