Passed
Pull Request — master (#1)
by Dmytro
04:37
created
framework/db/DBQuery.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         if (DBQueryType::isValidQueryType($type)) {
78 78
             $this->type = $type;
79 79
         } else {
80
-            throw new DBCoreException("Invalid SQL query type '".$type."'");
80
+            throw new DBCoreException("Invalid SQL query type '" . $type . "'");
81 81
         }
82 82
     }
83 83
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         OutputStream::start();
116 116
         if (!empty($query)) {
117 117
             if (empty($types) && empty($params)) {
118
-                OutputStream::message(OutputStream::MSG_INFO, 'Q: '.$query);
118
+                OutputStream::message(OutputStream::MSG_INFO, 'Q: ' . $query);
119 119
             } else {
120 120
                 if (strlen($types) === count($params)) {
121 121
                     $query = preg_replace('/\s+/', ' ', $query);
@@ -125,17 +125,17 @@  discard block
 block discarded – undo
125 125
                     for ($i = 0; $i < strlen($types); $i++) {
126 126
                         $query = preg_replace("/\?/", DBField::sqlValue($types[$i], $params[$i]), $query, 1);
127 127
 
128
-                        $paramsStr[] = $types[$i].': '.DBField::sqlValue($types[$i], $params[$i]);
128
+                        $paramsStr[] = $types[$i] . ': ' . DBField::sqlValue($types[$i], $params[$i]);
129 129
                     }
130 130
 
131
-                    OutputStream::message(OutputStream::MSG_INFO, 'Q: '.$query);
132
-                    OutputStream::message(OutputStream::MSG_INFO, 'P: '.$preparedQuery);
131
+                    OutputStream::message(OutputStream::MSG_INFO, 'Q: ' . $query);
132
+                    OutputStream::message(OutputStream::MSG_INFO, 'P: ' . $preparedQuery);
133 133
 
134
-                    OutputStream::message(OutputStream::MSG_INFO, 'A: ['.implode(', ', $paramsStr).']');
134
+                    OutputStream::message(OutputStream::MSG_INFO, 'A: [' . implode(', ', $paramsStr) . ']');
135 135
                 } else {
136 136
                     OutputStream::message(OutputStream::MSG_ERROR, 'Number of types is not equal parameters number.');
137
-                    OutputStream::message(OutputStream::MSG_INFO, 'T: '.$types);
138
-                    OutputStream::message(OutputStream::MSG_INFO, 'A: ['.implode(', ', $params).']');
137
+                    OutputStream::message(OutputStream::MSG_INFO, 'T: ' . $types);
138
+                    OutputStream::message(OutputStream::MSG_INFO, 'A: [' . implode(', ', $params) . ']');
139 139
                 }
140 140
             }
141 141
         } else {
Please login to merge, or discard this patch.
framework/tools/logging/LogDBObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $time = time();
42 42
         }
43 43
 
44
-        $query = 'INSERT INTO '.self::TABLE_NAME.' (type, message, count, last_seen) VALUES (?, ?, 1, ?)
44
+        $query = 'INSERT INTO ' . self::TABLE_NAME . ' (type, message, count, last_seen) VALUES (?, ?, 1, ?)
45 45
                   ON DUPLICATE KEY UPDATE count = count + 1, last_seen = ?';
46 46
         try {
47 47
             return DBCore::doUpdateQuery($query, 'ssss', [
Please login to merge, or discard this patch.
framework/tools/logging/Logger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,10 +162,10 @@
 block discarded – undo
162 162
 
163 163
                 return;
164 164
             case self::TO_FILE:
165
-                $message = "({$type}) ".$message;
165
+                $message = "({$type}) " . $message;
166 166
 
167 167
                 if (strpos($message, '{{time}}') === false) {
168
-                    $message = '{{time}} '.$message;
168
+                    $message = '{{time}} ' . $message;
169 169
                 }
170 170
                 if (is_null($time)) {
171 171
                     $time = time();
Please login to merge, or discard this patch.