Completed
Push — master ( 54f246...5cd377 )
by Dmytro
03:18
created
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.
framework/db/DBSelector.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function selectDBObject($debug = false) {
103 103
         $query = "SELECT * FROM " . $this->dbObject->getTableName()
104
-               . ($this->conditions != "" ? " WHERE " . $this->conditions : "")
105
-               . " LIMIT 1";
104
+                . ($this->conditions != "" ? " WHERE " . $this->conditions : "")
105
+                . " LIMIT 1";
106 106
 
107 107
         if (!$debug) {
108 108
             $stmt = DBCore::doSelectQuery($query);
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function selectDBObjects($debug = false) {
185 185
         $query = "SELECT" . ($this->unique ? " DISTINCT" : "")
186
-               . " * FROM " . $this->dbObject->getTableName();
186
+                . " * FROM " . $this->dbObject->getTableName();
187 187
 
188 188
         if ($this->conditions != "") {
189 189
             $query .= " WHERE " . $this->conditions;
Please login to merge, or discard this patch.