Passed
Pull Request — master (#1)
by Dmytro
04:37
created
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.
framework/db/DBSelector.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     public function selectDBObject($debug = false)
113 113
     {
114 114
         $query = 'SELECT * FROM '.$this->dbObject->getTableName().
115
-                  ($this->conditions != '' ? ' WHERE '.$this->conditions : '').' LIMIT 1';
115
+                    ($this->conditions != '' ? ' WHERE '.$this->conditions : '').' LIMIT 1';
116 116
 
117 117
         if (!$debug) {
118 118
             $stmt = DBCore::doSelectQuery($query);
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
             return $this->selectDBObject();
412 412
         }
413 413
 
414
-       /*
414
+        /*
415 415
         * Try to call parent method __call() with same params by default
416 416
         */
417 417
         $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
@@ -639,7 +639,7 @@
 block discarded – undo
639 639
     {
640 640
         if (!empty($dbObject) && is_object($dbObject)) {
641 641
             $query = 'DELETE FROM '.$dbObject->getTableName().
642
-                     ' WHERE '.$dbObject->getIdFieldName().' = ? LIMIT 1';
642
+                        ' WHERE '.$dbObject->getIdFieldName().' = ? LIMIT 1';
643 643
             if (Tools::isInteger($dbObject->getId())) {
644 644
                 $typesString = 'i';
645 645
             } else {
Please login to merge, or discard this patch.