Passed
Push — main ( 1a0bc1...893379 )
by Thierry
01:55
created
src/Db/Util.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,8 +168,7 @@
 block discarded – undo
168 168
         }
169 169
         if ($this->isMail($value)) {
170 170
             return '<a href="' . $this->html("mailto:$value") . '">' . $value . '</a>';
171
-        }
172
-        elseif ($this->isUrl($value)) {
171
+        } elseif ($this->isUrl($value)) {
173 172
             // IE 11 and all modern browsers hide referrer
174 173
             return '<a href="' . $this->html($value) . '"' . $this->blankTarget() . '>' . $value . '</a>';
175 174
         }
Please login to merge, or discard this patch.
src/Db/Traits/SelectUtilTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $col = $value['col'];
226 226
         $prefix = '';
227 227
         if ($op === 'FIND_IN_SET') {
228
-            $prefix = $op .'(' . $this->driver->quote($value['val']) . ', ';
228
+            $prefix = $op . '(' . $this->driver->quote($value['val']) . ', ';
229 229
         }
230 230
         $condition = $this->getWhereCondition($value, $fields);
231 231
         if ($col !== '') {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      */
255 255
     private function getMatchExpression(IndexEntity $index, int $i): string
256 256
     {
257
-        $columns = array_map(function ($column) {
257
+        $columns = array_map(function($column) {
258 258
             return $this->driver->escapeId($column);
259 259
         }, $index->columns);
260 260
         $match = $this->driver->quote($this->input->values['fulltext'][$i]);
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
             }
282 282
         }
283 283
         foreach ((array) $this->input->values['where'] as $key => $value) {
284
-            if (($value['col'] !== '' ||  $value['val'] !== '') &&
284
+            if (($value['col'] !== '' || $value['val'] !== '') &&
285 285
                 in_array($value['op'], $this->driver->operators())) {
286 286
                 $expressions[] = $this->getSelectExpression($value, $fields);
287 287
             }
Please login to merge, or discard this patch.