Passed
Push — master ( f71b04...7dcb0c )
by P.R.
12:30
created
src/Wrapper/MysqlWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
       }
235 235
     }
236 236
 
237
-    if ($blobArgumentIndex>0)
237
+    if ($blobArgumentIndex > 0)
238 238
     {
239 239
       $context->codeStore->append('');
240 240
     }
Please login to merge, or discard this patch.
src/Loader/MySqlRoutineLoader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
     if (!empty($context->oldRdbmsMetadata))
217 217
     {
218 218
       $this->dl->dropRoutine($context->oldRdbmsMetadata['routine_type'],
219
-                             $context->oldRdbmsMetadata['routine_name']);
219
+                              $context->oldRdbmsMetadata['routine_name']);
220 220
     }
221 221
   }
222 222
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@
 block discarded – undo
364 364
       $key1 = $this->findFirstMatchingLine($context, '/^\s*(as|is)\s*$/i');
365 365
       $key2 = $this->findFirstMatchingLine($context, '/^\s*begin\s*$/i');
366 366
 
367
-      if ($key1!==null && $key2!==null && $key1<$key2)
367
+      if ($key1!==null && $key2!==null && $key1 < $key2)
368 368
       {
369 369
         $this->syntax = self::PL_SQL_SYNTAX;
370 370
       }
Please login to merge, or discard this patch.
src/MySqlDataLayer.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -326,11 +326,11 @@  discard block
 block discarded – undo
326 326
           $line = '';
327 327
           foreach ($row as $i => $field)
328 328
           {
329
-            if ($i>0)
329
+            if ($i > 0)
330 330
             {
331 331
               $line .= ' ';
332 332
             }
333
-            $line .= str_pad((string)$field, $fields[$i]->max_length);
333
+            $line .= str_pad((string) $field, $fields[$i]->max_length);
334 334
           }
335 335
           echo date('Y-m-d H:i:s'), ' ', $line, "\n";
336 336
           $n++;
@@ -703,13 +703,13 @@  discard block
 block discarded – undo
703 703
       $query            = "show variables like 'max_allowed_packet'";
704 704
       $maxAllowedPacket = $this->executeRow1($query);
705 705
 
706
-      $this->maxAllowedPacket = (int)$maxAllowedPacket['Value'];
706
+      $this->maxAllowedPacket = (int) $maxAllowedPacket['Value'];
707 707
 
708 708
       // Note: When setting $chunkSize equal to $maxAllowedPacket it is not possible to transmit a LOB
709 709
       // with size $maxAllowedPacket bytes (but only $maxAllowedPacket - 8 bytes). But when setting the size of
710 710
       // $chunkSize less than $maxAllowedPacket than it is possible to transmit a LOB with size
711 711
       // $maxAllowedPacket bytes.
712
-      $this->chunkSize = (int)min($this->maxAllowedPacket - 8, 1024 * 1024);
712
+      $this->chunkSize = (int) min($this->maxAllowedPacket - 8, 1024 * 1024);
713 713
     }
714 714
 
715 715
     return $this->maxAllowedPacket;
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
    *
792 792
    * @return string
793 793
    */
794
-  public function quoteDecimal(int|float|string|null $value): string
794
+  public function quoteDecimal(int | float | string | null $value): string
795 795
   {
796 796
     if ($value===null || $value==='')
797 797
     {
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 
801 801
     if (is_int($value) || is_float($value))
802 802
     {
803
-      return (string)$value;
803
+      return (string) $value;
804 804
     }
805 805
 
806 806
     return "'".$this->mysqli->real_escape_string($value)."'";
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
       return 'null';
822 822
     }
823 823
 
824
-    return (string)$value;
824
+    return (string) $value;
825 825
   }
826 826
 
827 827
   //--------------------------------------------------------------------------------------------------------------------
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
       return 'null';
840 840
     }
841 841
 
842
-    return (string)$value;
842
+    return (string) $value;
843 843
   }
844 844
 
845 845
   //--------------------------------------------------------------------------------------------------------------------
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
    *
857 857
    * @throws LogicException
858 858
    */
859
-  public function quoteListOfInt(array|string|null $list, string $delimiter, string $enclosure, string $escape): string
859
+  public function quoteListOfInt(array | string | null $list, string $delimiter, string $enclosure, string $escape): string
860 860
   {
861 861
     if ($list===null || $list==='' || $list===[])
862 862
     {
@@ -1130,7 +1130,7 @@  discard block
 block discarded – undo
1130 1130
     {
1131 1131
       $n = strlen($data);
1132 1132
       $p = 0;
1133
-      while ($p<$n)
1133
+      while ($p < $n)
1134 1134
       {
1135 1135
         $success = @$statement->send_long_data($paramNr, substr($data, $p, $this->chunkSize));
1136 1136
         if (!$success)
@@ -1173,13 +1173,13 @@  discard block
 block discarded – undo
1173 1173
     foreach ($columns as $column)
1174 1174
     {
1175 1175
       $separator .= str_repeat('-', $column['length'] + 2).'+';
1176
-      $spaces    = ($column['length'] + 2) - mb_strlen((string)$column['header']);
1176
+      $spaces = ($column['length'] + 2) - mb_strlen((string) $column['header']);
1177 1177
 
1178
-      $spacesLeft  = (int)floor($spaces / 2);
1179
-      $spacesRight = (int)ceil($spaces / 2);
1178
+      $spacesLeft  = (int) floor($spaces / 2);
1179
+      $spacesRight = (int) ceil($spaces / 2);
1180 1180
 
1181
-      $fillerLeft  = ($spacesLeft>0) ? str_repeat(' ', $spacesLeft) : '';
1182
-      $fillerRight = ($spacesRight>0) ? str_repeat(' ', $spacesRight) : '';
1181
+      $fillerLeft  = ($spacesLeft > 0) ? str_repeat(' ', $spacesLeft) : '';
1182
+      $fillerRight = ($spacesRight > 0) ? str_repeat(' ', $spacesRight) : '';
1183 1183
 
1184 1184
       $header .= $fillerLeft.$column['header'].$fillerRight.'|';
1185 1185
     }
@@ -1198,7 +1198,7 @@  discard block
 block discarded – undo
1198 1198
    */
1199 1199
   private function executeTableShowTableColumn(array $column, mixed $value): void
1200 1200
   {
1201
-    $spaces = str_repeat(' ', max($column['length'] - mb_strlen((string)$value), 0));
1201
+    $spaces = str_repeat(' ', max($column['length'] - mb_strlen((string) $value), 0));
1202 1202
 
1203 1203
     switch ($column['type'])
1204 1204
     {
Please login to merge, or discard this patch.
src/Backend/MySqlRoutineLoaderWorker.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -283,9 +283,9 @@
 block discarded – undo
283 283
           if ($max!==null)
284 284
           {
285 285
             $value = sprintf('%s(%d) character set %s',
286
-                             $column['data_type'],
287
-                             $max,
288
-                             $column['character_set_name']);
286
+                              $column['data_type'],
287
+                              $max,
288
+                              $column['character_set_name']);
289 289
           }
290 290
           else
291 291
           {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
 
239 239
     $size = $this->characterSets[$key]['maxlen'];
240 240
 
241
-    return (int)floor(self::MAX_COLUMN_SIZE / $size);
241
+    return (int) floor(self::MAX_COLUMN_SIZE / $size);
242 242
   }
243 243
 
244 244
   //--------------------------------------------------------------------------------------------------------------------
Please login to merge, or discard this patch.