Passed
Push — master ( 61a1e1...47f1d1 )
by P.R.
01:51
created
src/Wrapper/Wrapper.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -502,9 +502,9 @@  discard block
 block discarded – undo
502 502
       $mangledName = $this->nameMangler->getParameterName($parameter['parameter_name']);
503 503
 
504 504
       $parameters[] = ['php_name'       => '$'.$mangledName,
505
-                       'description'    => $parameter['description'],
506
-                       'php_type'       => $parameter['php_type'],
507
-                       'dtd_identifier' => $parameter['dtd_identifier']];
505
+                        'description'    => $parameter['description'],
506
+                        'php_type'       => $parameter['php_type'],
507
+                        'dtd_identifier' => $parameter['dtd_identifier']];
508 508
     }
509 509
 
510 510
     $this->enhancePhpDocBlockParameters($parameters);
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
         {
534 534
           $line = array_shift($lines);
535 535
           $this->codeStore->append(sprintf($format, '@param', $parameter['php_type'], $parameter['php_name'], $line),
536
-                                   false);
536
+                                    false);
537 537
           foreach ($lines as $line)
538 538
           {
539 539
             $this->codeStore->append(sprintf($format, ' ', ' ', ' ', $line), false);
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
         else
543 543
         {
544 544
           $this->codeStore->append(sprintf($format, '@param', $parameter['php_type'], $parameter['php_name'], ''),
545
-                                   false);
545
+                                    false);
546 546
         }
547 547
 
548 548
         if ($parameter['dtd_identifier']!==null)
Please login to merge, or discard this patch.
src/MySqlDataLayer.php 1 patch
Spacing   +15 added lines, -15 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,16 +703,16 @@  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
-    return (int)$this->maxAllowedPacket;
715
+    return (int) $this->maxAllowedPacket;
716 716
   }
717 717
 
718 718
   //--------------------------------------------------------------------------------------------------------------------
@@ -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
   //--------------------------------------------------------------------------------------------------------------------
@@ -1140,7 +1140,7 @@  discard block
 block discarded – undo
1140 1140
     {
1141 1141
       $n = strlen($data);
1142 1142
       $p = 0;
1143
-      while ($p<$n)
1143
+      while ($p < $n)
1144 1144
       {
1145 1145
         $success = @$statement->send_long_data($paramNr, substr($data, $p, $this->chunkSize));
1146 1146
         if (!$success)
@@ -1183,13 +1183,13 @@  discard block
 block discarded – undo
1183 1183
     foreach ($columns as $column)
1184 1184
     {
1185 1185
       $separator .= str_repeat('-', $column['length'] + 2).'+';
1186
-      $spaces    = ($column['length'] + 2) - mb_strlen((string)$column['header']);
1186
+      $spaces = ($column['length'] + 2) - mb_strlen((string) $column['header']);
1187 1187
 
1188
-      $spacesLeft  = (int)floor($spaces / 2);
1189
-      $spacesRight = (int)ceil($spaces / 2);
1188
+      $spacesLeft  = (int) floor($spaces / 2);
1189
+      $spacesRight = (int) ceil($spaces / 2);
1190 1190
 
1191
-      $fillerLeft  = ($spacesLeft>0) ? str_repeat(' ', $spacesLeft) : '';
1192
-      $fillerRight = ($spacesRight>0) ? str_repeat(' ', $spacesRight) : '';
1191
+      $fillerLeft  = ($spacesLeft > 0) ? str_repeat(' ', $spacesLeft) : '';
1192
+      $fillerRight = ($spacesRight > 0) ? str_repeat(' ', $spacesRight) : '';
1193 1193
 
1194 1194
       $header .= $fillerLeft.$column['header'].$fillerRight.'|';
1195 1195
     }
@@ -1208,7 +1208,7 @@  discard block
 block discarded – undo
1208 1208
    */
1209 1209
   private function executeTableShowTableColumn(array $column, mixed $value): void
1210 1210
   {
1211
-    $spaces = str_repeat(' ', max($column['length'] - mb_strlen((string)$value), 0));
1211
+    $spaces = str_repeat(' ', max($column['length'] - mb_strlen((string) $value), 0));
1212 1212
 
1213 1213
     switch ($column['type'])
1214 1214
     {
Please login to merge, or discard this patch.
src/Helper/DataTypeHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 
99 99
       case 'decimal':
100 100
         $ret = $dataTypeInfo['numeric_precision'];
101
-        if ($dataTypeInfo['numeric_scale']>0)
101
+        if ($dataTypeInfo['numeric_scale'] > 0)
102 102
         {
103 103
           $ret += 1;
104 104
         }
Please login to merge, or discard this patch.
src/Helper/RoutineLoaderHelper.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -531,9 +531,9 @@
 block discarded – undo
531 531
   private function extractParameters(): void
532 532
   {
533 533
     $this->routineParameters = new RoutineParametersHelper($this->dl,
534
-                                                           $this->io,
535
-                                                           $this->docBlockReflection,
536
-                                                           $this->routineName);
534
+                                                            $this->io,
535
+                                                            $this->docBlockReflection,
536
+                                                            $this->routineName);
537 537
 
538 538
     $this->routineParameters->extractRoutineParameters();
539 539
   }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
     {
473 473
       throw new RoutineLoaderException('Tag @type not found in DocBlock.');
474 474
     }
475
-    elseif (count($tags)>1)
475
+    elseif (count($tags) > 1)
476 476
     {
477 477
       throw new RoutineLoaderException('Multiple @type tags found in DocBlock.');
478 478
     }
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
       $key1 = $this->findFirstMatchingLine('/^\s*(as|is)\s*$/i');
636 636
       $key2 = $this->findFirstMatchingLine('/^\s*begin\s*$/i');
637 637
 
638
-      if ($key1!==null && $key2!==null && $key1<$key2)
638
+      if ($key1!==null && $key2!==null && $key1 < $key2)
639 639
       {
640 640
         $this->syntax = self::PL_SQL_SYNTAX;
641 641
       }
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 
801 801
     $start = $this->findFirstMatchingLine('/^\s*\/\*\*\s*$/');
802 802
     $end   = $this->findFirstMatchingLine('/^\s*\*\/\s*$/');
803
-    if ($start!==null && $end!==null && $start<$end)
803
+    if ($start!==null && $end!==null && $start < $end)
804 804
     {
805 805
       $lines    = array_slice($this->routineSourceCodeLines, $start, $end - $start + 1);
806 806
       $docBlock = implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.
src/MySqlMetaDataLayer.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 where  TABLE_SCHEMA = %s
179 179
 and    TABLE_TYPE   = 'BASE TABLE'
180 180
 order by TABLE_NAME",
181
-                   $this->dl->quoteString($schemaName));
181
+                    $this->dl->quoteString($schemaName));
182 182
 
183 183
     return $this->executeRows($sql);
184 184
   }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 from   information_schema.TABLES
217 217
 where table_schema = database()
218 218
 and   table_name   = %s',
219
-                   $this->dl->quoteString($tableName));
219
+                    $this->dl->quoteString($tableName));
220 220
 
221 221
     return !empty($this->executeSingleton0($sql));
222 222
   }
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
                                            t2.PARAMETER_MODE  is not null
485 485
 where t1.ROUTINE_SCHEMA = database()
486 486
 and   t1.ROUTINE_NAME   = '%s'",
487
-                   $routineName);
487
+                    $routineName);
488 488
 
489 489
     return $this->executeRows($sql);
490 490
   }
@@ -546,9 +546,9 @@  discard block
 block discarded – undo
546 546
 where  TABLE_SCHEMA = ifnull(%s, database())
547 547
 and    TABLE_NAME   = %s
548 548
 and    COLUMN_NAME  = %s',
549
-                   $this->dl->quoteString($schemaName),
550
-                   $this->dl->quoteString($tableName),
551
-                   $this->dl->quoteString($columnName));
549
+                    $this->dl->quoteString($schemaName),
550
+                    $this->dl->quoteString($tableName),
551
+                    $this->dl->quoteString($columnName));
552 552
 
553 553
     return $this->executeRow1($sql);
554 554
   }
@@ -577,8 +577,8 @@  discard block
 block discarded – undo
577 577
 where  TABLE_SCHEMA = %s
578 578
 and    TABLE_NAME   = %s
579 579
 order by ORDINAL_POSITION',
580
-                   $this->dl->quoteString($schemaName),
581
-                   $this->dl->quoteString($tableName));
580
+                    $this->dl->quoteString($schemaName),
581
+                    $this->dl->quoteString($tableName));
582 582
 
583 583
     return $this->executeRows($sql);
584 584
   }
@@ -599,8 +599,8 @@  discard block
 block discarded – undo
599 599
     $sql = sprintf('
600 600
 show index from `%s`.`%s`
601 601
 where Key_name = \'PRIMARY\'',
602
-                   $schemaName,
603
-                   $tableName);
602
+                    $schemaName,
603
+                    $tableName);
604 604
 
605 605
     return $this->executeRows($sql);
606 606
   }
@@ -621,8 +621,8 @@  discard block
 block discarded – undo
621 621
     $sql = sprintf('
622 622
 show index from `%s`.`%s`
623 623
 where Non_unique = 0',
624
-                   $schemaName,
625
-                   $tableName);
624
+                    $schemaName,
625
+                    $tableName);
626 626
 
627 627
     return $this->executeRows($sql);
628 628
   }
Please login to merge, or discard this patch.