Passed
Push — master ( bb1547...2e64cc )
by P.R.
03:46
created
src/Backend/MysqlConstantWorker.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -364,8 +364,8 @@
 block discarded – undo
364 364
           if ($n==0)
365 365
           {
366 366
             throw new RuntimeException("Illegal format at line %d in file '%s'.",
367
-                                       $lineNumber,
368
-                                       $this->constantsFilename);
367
+                                        $lineNumber,
368
+                                        $this->constantsFilename);
369 369
           }
370 370
 
371 371
           if (isset($matches[6]))
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             if ($token[0]==T_WHITESPACE)
222 222
             {
223 223
               $line2 = $token[2];
224
-              if (substr_count($token[1], "\n")>1)
224
+              if (substr_count($token[1], "\n") > 1)
225 225
               {
226 226
                 // Whitespace contains new line: end doc block without constants.
227 227
                 $step = 4;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
           {
249 249
             if ($token[0]==T_WHITESPACE)
250 250
             {
251
-              if (substr_count($token[1], "\n")<=1)
251
+              if (substr_count($token[1], "\n") <= 1)
252 252
               {
253 253
                 // Ignore whitespace.
254 254
                 $line3 = $token[2];
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
     foreach ($this->constants as $constant => $value)
431 431
     {
432 432
       $width1 = max(mb_strlen($constant), $width1);
433
-      $width2 = max(mb_strlen((string)$value), $width2);
433
+      $width2 = max(mb_strlen((string) $value), $width2);
434 434
     }
435 435
 
436 436
     $format = sprintf('  const %%-%ds = %%%dd;', $width1, $width2);
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
       foreach ($table as $column)
478 478
       {
479 479
         $width1 = max(mb_strlen($column['column_name']), $width1);
480
-        $width2 = max(mb_strlen((string)$column['length']), $width2);
480
+        $width2 = max(mb_strlen((string) $column['length']), $width2);
481 481
       }
482 482
 
483 483
       foreach ($table as $column)
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         {
487 487
           if (isset($column['constant_name']))
488 488
           {
489
-            $format  = sprintf("%%s.%%-%ds %%%dd %%s\n", $width1, $width2);
489
+            $format = sprintf("%%s.%%-%ds %%%dd %%s\n", $width1, $width2);
490 490
             $content .= sprintf($format,
491 491
                                 $column['table_name'],
492 492
                                 $column['column_name'],
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
           }
496 496
           else
497 497
           {
498
-            $format  = sprintf("%%s.%%-%ds %%%dd\n", $width1, $width2);
498
+            $format = sprintf("%%s.%%-%ds %%%dd\n", $width1, $width2);
499 499
             $content .= sprintf($format,
500 500
                                 $column['table_name'],
501 501
                                 $column['column_name'],
Please login to merge, or discard this patch.
src/Backend/MySqlRoutineLoaderWorker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     $duplicatesMethods = [];
310 310
     foreach ($this->sources as $source)
311 311
     {
312
-      if (sizeof($lookup[$source['method_name']])>1)
312
+      if (sizeof($lookup[$source['method_name']]) > 1)
313 313
       {
314 314
         $duplicatesSources[$source['path_name']]   = $source;
315 315
         $duplicatesMethods[$source['method_name']] = $lookup[$source['method_name']];
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
   {
401 401
     $this->io->writeln('');
402 402
 
403
-    usort($this->sources, function ($a, $b) {
403
+    usort($this->sources, function($a, $b) {
404 404
       return strcmp($a['routine_name'], $b['routine_name']);
405 405
     });
406 406
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 
481 481
     $size = $this->characterSets[$key]['maxlen'];
482 482
 
483
-    return (int)floor(self::MAX_COLUMN_SIZE / $size);
483
+    return (int) floor(self::MAX_COLUMN_SIZE / $size);
484 484
   }
485 485
 
486 486
   //--------------------------------------------------------------------------------------------------------------------
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
   {
515 515
     if (file_exists($this->phpStratumMetadataFilename))
516 516
     {
517
-      $this->phpStratumMetadata = (array)json_decode(file_get_contents($this->phpStratumMetadataFilename), true);
517
+      $this->phpStratumMetadata = (array) json_decode(file_get_contents($this->phpStratumMetadataFilename), true);
518 518
       if (json_last_error()!==JSON_ERROR_NONE)
519 519
       {
520 520
         throw new RuntimeException("Error decoding JSON: '%s'.", json_last_error_msg());
Please login to merge, or discard this patch.
src/Backend/MySqlRoutineWrapperGeneratorWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
   {
168 168
     $data = file_get_contents($this->metadataFilename);
169 169
 
170
-    $routines = (array)json_decode($data, true);
170
+    $routines = (array) json_decode($data, true);
171 171
     if (json_last_error()!==JSON_ERROR_NONE)
172 172
     {
173 173
       throw new RuntimeException("Error decoding JSON: '%s'.", json_last_error_msg());
Please login to merge, or discard this patch.
src/Helper/RoutineLoaderHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
     {
474 474
       throw new RoutineLoaderException('Tag @type not found in DocBlock.');
475 475
     }
476
-    elseif (count($tags)>1)
476
+    elseif (count($tags) > 1)
477 477
     {
478 478
       throw new RoutineLoaderException('Multiple @type tags found in DocBlock.');
479 479
     }
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
         $key1 = $this->findFirstMatchingLine('/^\s*(as|is)\s*$/i');
708 708
         $key2 = $this->findFirstMatchingLine('/^\s*begin\s*$/i');
709 709
 
710
-        if ($key1!==null && $key2!==null && $key1<$key2)
710
+        if ($key1!==null && $key2!==null && $key1 < $key2)
711 711
         {
712 712
           $this->syntax = self::PL_SQL_SYNTAX;
713 713
         }
@@ -856,11 +856,11 @@  discard block
 block discarded – undo
856 856
     }
857 857
 
858 858
     $start = $this->findFirstMatchingLine('/^\s*\/\*\*\s*$/');
859
-    $end   = $this->findFirstMatchingLine('/^\s*\*\/\s*$/');;
860
-    if ($start!==null && $end!==null && $start<$end)
859
+    $end   = $this->findFirstMatchingLine('/^\s*\*\/\s*$/'); ;
860
+    if ($start!==null && $end!==null && $start < $end)
861 861
     {
862 862
       $lines    = array_slice($this->routineSourceCodeLines, $start, $end - $start + 1);
863
-      $docBlock = implode(PHP_EOL, (array)$lines);
863
+      $docBlock = implode(PHP_EOL, (array) $lines);
864 864
     }
865 865
     else
866 866
     {
Please login to merge, or discard this patch.
src/Wrapper/Wrapper.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -483,9 +483,9 @@  discard block
 block discarded – undo
483 483
       $mangledName = $this->nameMangler->getParameterName($parameter['parameter_name']);
484 484
 
485 485
       $parameters[] = ['php_name'             => '$'.$mangledName,
486
-                       'description'          => $parameter['description'],
487
-                       'php_type'             => $parameter['php_type'],
488
-                       'data_type_descriptor' => $parameter['data_type_descriptor']];
486
+                        'description'          => $parameter['description'],
487
+                        'php_type'             => $parameter['php_type'],
488
+                        'data_type_descriptor' => $parameter['data_type_descriptor']];
489 489
     }
490 490
 
491 491
     $this->enhancePhpDocBlockParameters($parameters);
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
 
506 506
       // Generate phpDoc for the parameters of the wrapper method.
507 507
 
508
-       foreach ($parameters as $parameter)
508
+        foreach ($parameters as $parameter)
509 509
       {
510 510
         $format = sprintf(' * %%-%ds %%-%ds %%-%ds %%s', mb_strlen('@param'), $maxTypeLength, $maxNameLength);
511 511
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@
 block discarded – undo
506 506
       // Generate phpDoc for the parameters of the wrapper method.
507 507
 
508 508
        foreach ($parameters as $parameter)
509
-      {
509
+       {
510 510
         $format = sprintf(' * %%-%ds %%-%ds %%-%ds %%s', mb_strlen('@param'), $maxTypeLength, $maxNameLength);
511 511
 
512 512
         $lines = $parameter['description'];
Please login to merge, or discard this patch.