Completed
Push — master ( 52755b...6c4366 )
by smiley
02:13
created
vendor/phpunit/phpunit/src/TextUI/Command.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         try {
195 195
             $result = $runner->doRun($suite, $this->arguments, $exit);
196 196
         } catch (Exception $e) {
197
-            print $e->getMessage() . PHP_EOL;
197
+            print $e->getMessage().PHP_EOL;
198 198
         }
199 199
 
200 200
         $return = TestRunner::FAILURE_EXIT;
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
                 case '--generate-configuration':
381 381
                     $this->printVersionString();
382 382
 
383
-                    print 'Generating phpunit.xml in ' . \getcwd() . PHP_EOL . PHP_EOL;
383
+                    print 'Generating phpunit.xml in '.\getcwd().PHP_EOL.PHP_EOL;
384 384
 
385 385
                     print 'Bootstrap script (relative to path shown above; default: vendor/autoload.php): ';
386 386
                     $bootstrapScript = \trim(\fgets(STDIN));
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
                         )
416 416
                     );
417 417
 
418
-                    print PHP_EOL . 'Generated phpunit.xml in ' . \getcwd() . PHP_EOL;
418
+                    print PHP_EOL.'Generated phpunit.xml in '.\getcwd().PHP_EOL;
419 419
 
420 420
                     exit(TestRunner::SUCCESS_EXIT);
421 421
 
@@ -695,8 +695,8 @@  discard block
 block discarded – undo
695 695
                     $handler = null;
696 696
                     if (isset($this->longOptions[$optionName])) {
697 697
                         $handler = $this->longOptions[$optionName];
698
-                    } elseif (isset($this->longOptions[$optionName . '='])) {
699
-                        $handler = $this->longOptions[$optionName . '='];
698
+                    } elseif (isset($this->longOptions[$optionName.'='])) {
699
+                        $handler = $this->longOptions[$optionName.'='];
700 700
                     }
701 701
 
702 702
                     if (isset($handler) && \is_callable([$this, $handler])) {
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
         if (isset($includePath)) {
734 734
             \ini_set(
735 735
                 'include_path',
736
-                $includePath . PATH_SEPARATOR . \ini_get('include_path')
736
+                $includePath.PATH_SEPARATOR.\ini_get('include_path')
737 737
             );
738 738
         }
739 739
 
@@ -743,15 +743,15 @@  discard block
 block discarded – undo
743 743
 
744 744
         if (isset($this->arguments['configuration']) &&
745 745
             \is_dir($this->arguments['configuration'])) {
746
-            $configurationFile = $this->arguments['configuration'] . '/phpunit.xml';
746
+            $configurationFile = $this->arguments['configuration'].'/phpunit.xml';
747 747
 
748 748
             if (\file_exists($configurationFile)) {
749 749
                 $this->arguments['configuration'] = \realpath(
750 750
                     $configurationFile
751 751
                 );
752
-            } elseif (\file_exists($configurationFile . '.dist')) {
752
+            } elseif (\file_exists($configurationFile.'.dist')) {
753 753
                 $this->arguments['configuration'] = \realpath(
754
-                    $configurationFile . '.dist'
754
+                    $configurationFile.'.dist'
755 755
                 );
756 756
             }
757 757
         } elseif (!isset($this->arguments['configuration']) &&
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
                     $this->arguments['configuration']
772 772
                 );
773 773
             } catch (Throwable $t) {
774
-                print $t->getMessage() . PHP_EOL;
774
+                print $t->getMessage().PHP_EOL;
775 775
                 exit(TestRunner::FAILURE_EXIT);
776 776
             }
777 777
 
@@ -1003,12 +1003,12 @@  discard block
 block discarded – undo
1003 1003
 
1004 1004
         if ($isOutdated) {
1005 1005
             \printf(
1006
-                'You are not using the latest version of PHPUnit.' . PHP_EOL .
1007
-                'The latest version is PHPUnit %s.' . PHP_EOL,
1006
+                'You are not using the latest version of PHPUnit.'.PHP_EOL.
1007
+                'The latest version is PHPUnit %s.'.PHP_EOL,
1008 1008
                 $latestVersion
1009 1009
             );
1010 1010
         } else {
1011
-            print 'You are using the latest version of PHPUnit.' . PHP_EOL;
1011
+            print 'You are using the latest version of PHPUnit.'.PHP_EOL;
1012 1012
         }
1013 1013
 
1014 1014
         exit(TestRunner::SUCCESS_EXIT);
@@ -1131,7 +1131,7 @@  discard block
 block discarded – undo
1131 1131
             return;
1132 1132
         }
1133 1133
 
1134
-        print Version::getVersionString() . PHP_EOL . PHP_EOL;
1134
+        print Version::getVersionString().PHP_EOL.PHP_EOL;
1135 1135
 
1136 1136
         $this->versionStringPrinted = true;
1137 1137
     }
@@ -1143,7 +1143,7 @@  discard block
 block discarded – undo
1143 1143
     {
1144 1144
         $this->printVersionString();
1145 1145
 
1146
-        print $message . PHP_EOL;
1146
+        print $message.PHP_EOL;
1147 1147
 
1148 1148
         exit(TestRunner::FAILURE_EXIT);
1149 1149
     }
@@ -1156,8 +1156,8 @@  discard block
 block discarded – undo
1156 1156
         $facade = new File_Iterator_Facade;
1157 1157
 
1158 1158
         foreach ($facade->getFilesAsArray($directory, '.phar') as $file) {
1159
-            if (!\file_exists('phar://' . $file . '/manifest.xml')) {
1160
-                $this->arguments['notLoadedExtensions'][] = $file . ' is not an extension for PHPUnit';
1159
+            if (!\file_exists('phar://'.$file.'/manifest.xml')) {
1160
+                $this->arguments['notLoadedExtensions'][] = $file.' is not an extension for PHPUnit';
1161 1161
 
1162 1162
                 continue;
1163 1163
             }
@@ -1165,28 +1165,28 @@  discard block
 block discarded – undo
1165 1165
             try {
1166 1166
                 $applicationName = new ApplicationName('phpunit/phpunit');
1167 1167
                 $version         = new PharIoVersion(Version::series());
1168
-                $manifest        = ManifestLoader::fromFile('phar://' . $file . '/manifest.xml');
1168
+                $manifest        = ManifestLoader::fromFile('phar://'.$file.'/manifest.xml');
1169 1169
 
1170 1170
                 if (!$manifest->isExtensionFor($applicationName)) {
1171
-                    $this->arguments['notLoadedExtensions'][] = $file . ' is not an extension for PHPUnit';
1171
+                    $this->arguments['notLoadedExtensions'][] = $file.' is not an extension for PHPUnit';
1172 1172
 
1173 1173
                     continue;
1174 1174
                 }
1175 1175
 
1176 1176
                 if (!$manifest->isExtensionFor($applicationName, $version)) {
1177
-                    $this->arguments['notLoadedExtensions'][] = $file . ' is not compatible with this version of PHPUnit';
1177
+                    $this->arguments['notLoadedExtensions'][] = $file.' is not compatible with this version of PHPUnit';
1178 1178
 
1179 1179
                     continue;
1180 1180
                 }
1181 1181
             } catch (ManifestException $e) {
1182
-                $this->arguments['notLoadedExtensions'][] = $file . ': ' . $e->getMessage();
1182
+                $this->arguments['notLoadedExtensions'][] = $file.': '.$e->getMessage();
1183 1183
 
1184 1184
                 continue;
1185 1185
             }
1186 1186
 
1187 1187
             require $file;
1188 1188
 
1189
-            $this->arguments['loadedExtensions'][] = $manifest->getName() . ' ' . $manifest->getVersion()->getVersionString();
1189
+            $this->arguments['loadedExtensions'][] = $manifest->getName().' '.$manifest->getVersion()->getVersionString();
1190 1190
         }
1191 1191
     }
1192 1192
 
@@ -1194,14 +1194,14 @@  discard block
 block discarded – undo
1194 1194
     {
1195 1195
         $this->printVersionString();
1196 1196
 
1197
-        print 'Available test group(s):' . PHP_EOL;
1197
+        print 'Available test group(s):'.PHP_EOL;
1198 1198
 
1199 1199
         $groups = $suite->getGroups();
1200 1200
         \sort($groups);
1201 1201
 
1202 1202
         foreach ($groups as $group) {
1203 1203
             \printf(
1204
-                ' - %s' . PHP_EOL,
1204
+                ' - %s'.PHP_EOL,
1205 1205
                 $group
1206 1206
             );
1207 1207
         }
@@ -1217,7 +1217,7 @@  discard block
 block discarded – undo
1217 1217
     {
1218 1218
         $this->printVersionString();
1219 1219
 
1220
-        print 'Available test suite(s):' . PHP_EOL;
1220
+        print 'Available test suite(s):'.PHP_EOL;
1221 1221
 
1222 1222
         $configuration = Configuration::getInstance(
1223 1223
             $this->arguments['configuration']
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
 
1228 1228
         foreach ($suiteNames as $suiteName) {
1229 1229
             \printf(
1230
-                ' - %s' . PHP_EOL,
1230
+                ' - %s'.PHP_EOL,
1231 1231
                 $suiteName
1232 1232
             );
1233 1233
         }
@@ -1263,7 +1263,7 @@  discard block
 block discarded – undo
1263 1263
         \file_put_contents($target, $renderer->render($suite));
1264 1264
 
1265 1265
         \printf(
1266
-            'Wrote list of tests that would have been run to %s' . \PHP_EOL,
1266
+            'Wrote list of tests that would have been run to %s'.\PHP_EOL,
1267 1267
             $target
1268 1268
         );
1269 1269
 
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
         $this->write((string) $e);
281 281
 
282 282
         while ($e = $e->getPrevious()) {
283
-            $this->write("\nCaused by\n" . $e);
283
+            $this->write("\nCaused by\n".$e);
284 284
         }
285 285
     }
286 286
 
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
     protected function printHeader()
336 336
     {
337
-        $this->write("\n\n" . PHP_Timer::resourceUsage() . "\n\n");
337
+        $this->write("\n\n".PHP_Timer::resourceUsage()."\n\n");
338 338
     }
339 339
 
340 340
     /**
@@ -582,8 +582,8 @@  discard block
 block discarded – undo
582 582
 
583 583
             $this->write(
584 584
                 \sprintf(
585
-                    ' %' . $this->numTestsWidth . 'd / %' .
586
-                    $this->numTestsWidth . 'd (%3s%%)',
585
+                    ' %'.$this->numTestsWidth.'d / %'.
586
+                    $this->numTestsWidth.'d (%3s%%)',
587 587
                     $this->numTestsRun,
588 588
                     $this->numTests,
589 589
                     \floor(($this->numTestsRun / $this->numTests) * 100)
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
         $styledLines = [];
632 632
 
633 633
         foreach ($lines as $line) {
634
-            $styledLines[] = $style . \str_pad($line, $padding) . "\x1b[0m";
634
+            $styledLines[] = $style.\str_pad($line, $padding)."\x1b[0m";
635 635
         }
636 636
 
637 637
         return \implode("\n", $styledLines);
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/TestCase.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             $this->getName(false)
365 365
         );
366 366
 
367
-        return $buffer . $this->getDataSetAsString();
367
+        return $buffer.$this->getDataSetAsString();
368 368
     }
369 369
 
370 370
     /**
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     public function getName($withDataSet = true)
414 414
     {
415 415
         if ($withDataSet) {
416
-            return $this->name . $this->getDataSetAsString(false);
416
+            return $this->name.$this->getDataSetAsString(false);
417 417
         }
418 418
 
419 419
         return $this->name;
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
             return;
783 783
         }
784 784
 
785
-        $runEntireClass =  $this->runClassInSeparateProcess && !$this->runTestInSeparateProcess;
785
+        $runEntireClass = $this->runClassInSeparateProcess && !$this->runTestInSeparateProcess;
786 786
 
787 787
         if (($this->runTestInSeparateProcess === true || $this->runClassInSeparateProcess === true) &&
788 788
             $this->inIsolation !== true &&
@@ -791,11 +791,11 @@  discard block
 block discarded – undo
791 791
 
792 792
             if ($runEntireClass) {
793 793
                 $template = new Text_Template(
794
-                    __DIR__ . '/../Util/PHP/Template/TestCaseClass.tpl'
794
+                    __DIR__.'/../Util/PHP/Template/TestCaseClass.tpl'
795 795
                 );
796 796
             } else {
797 797
                 $template = new Text_Template(
798
-                    __DIR__ . '/../Util/PHP/Template/TestCaseMethod.tpl'
798
+                    __DIR__.'/../Util/PHP/Template/TestCaseMethod.tpl'
799 799
                 );
800 800
             }
801 801
 
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
             } else {
808 808
                 $constants = '';
809 809
                 if (!empty($GLOBALS['__PHPUNIT_BOOTSTRAP'])) {
810
-                    $globals = '$GLOBALS[\'__PHPUNIT_BOOTSTRAP\'] = ' . \var_export($GLOBALS['__PHPUNIT_BOOTSTRAP'], true) . ";\n";
810
+                    $globals = '$GLOBALS[\'__PHPUNIT_BOOTSTRAP\'] = '.\var_export($GLOBALS['__PHPUNIT_BOOTSTRAP'], true).";\n";
811 811
                 } else {
812 812
                     $globals = '';
813 813
                 }
@@ -847,11 +847,11 @@  discard block
 block discarded – undo
847 847
             $codeCoverageFilter = \var_export(\serialize($codeCoverageFilter), true);
848 848
             // must do these fixes because TestCaseMethod.tpl has unserialize('{data}') in it, and we can't break BC
849 849
             // the lines above used to use addcslashes() rather than var_export(), which breaks null byte escape sequences
850
-            $data               = "'." . $data . ".'";
851
-            $dataName           = "'.(" . $dataName . ").'";
852
-            $dependencyInput    = "'." . $dependencyInput . ".'";
853
-            $includePath        = "'." . $includePath . ".'";
854
-            $codeCoverageFilter = "'." . $codeCoverageFilter . ".'";
850
+            $data               = "'.".$data.".'";
851
+            $dataName           = "'.(".$dataName.").'";
852
+            $dependencyInput    = "'.".$dependencyInput.".'";
853
+            $includePath        = "'.".$includePath.".'";
854
+            $codeCoverageFilter = "'.".$codeCoverageFilter.".'";
855 855
 
856 856
             $configurationFilePath = $GLOBALS['__PHPUNIT_CONFIGURATION_FILE'] ?? '';
857 857
 
@@ -1459,8 +1459,8 @@  discard block
 block discarded – undo
1459 1459
 
1460 1460
         if ($result === false) {
1461 1461
             throw new Exception(
1462
-                'The locale functionality is not implemented on your platform, ' .
1463
-                'the specified locale does not exist or the category name is ' .
1462
+                'The locale functionality is not implemented on your platform, '.
1463
+                'the specified locale does not exist or the category name is '.
1464 1464
                 'invalid.'
1465 1465
             );
1466 1466
         }
@@ -2037,7 +2037,7 @@  discard block
 block discarded – undo
2037 2037
                 }
2038 2038
 
2039 2039
                 if (\strpos($dependency, '::') === false) {
2040
-                    $dependency = $className . '::' . $dependency;
2040
+                    $dependency = $className.'::'.$dependency;
2041 2041
                 }
2042 2042
 
2043 2043
                 if (!isset($passedKeys[$dependency])) {
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@
 block discarded – undo
81 81
         $string = TestFailure::exceptionToString($this);
82 82
 
83 83
         if ($trace = Filter::getFilteredStacktrace($this)) {
84
-            $string .= "\n" . $trace;
84
+            $string .= "\n".$trace;
85 85
         }
86 86
 
87 87
         if ($this->previous) {
88
-            $string .= "\nCaused by\n" . $this->previous;
88
+            $string .= "\nCaused by\n".$this->previous;
89 89
         }
90 90
 
91 91
         return $string;
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $string = TestFailure::exceptionToString($this);
68 68
 
69 69
         if ($trace = Filter::getFilteredStacktrace($this)) {
70
-            $string .= "\n" . $trace;
70
+            $string .= "\n".$trace;
71 71
         }
72 72
 
73 73
         return $string;
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/TestFailure.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,21 +94,21 @@
 block discarded – undo
94 94
             }
95 95
 
96 96
             if (!empty($buffer)) {
97
-                $buffer = \trim($buffer) . "\n";
97
+                $buffer = \trim($buffer)."\n";
98 98
             }
99 99
 
100 100
             return $buffer;
101 101
         }
102 102
 
103 103
         if ($e instanceof Error) {
104
-            return $e->getMessage() . "\n";
104
+            return $e->getMessage()."\n";
105 105
         }
106 106
 
107 107
         if ($e instanceof ExceptionWrapper) {
108
-            return $e->getClassName() . ': ' . $e->getMessage() . "\n";
108
+            return $e->getClassName().': '.$e->getMessage()."\n";
109 109
         }
110 110
 
111
-        return \get_class($e) . ': ' . $e->getMessage() . "\n";
111
+        return \get_class($e).': '.$e->getMessage()."\n";
112 112
     }
113 113
 
114 114
     /**
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function __construct($className, $methodName, $message = '')
51 51
     {
52 52
         $this->message = $message;
53
-        parent::__construct($className . '::' . $methodName);
53
+        parent::__construct($className.'::'.$methodName);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/TestResult.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 
411 411
         if (!$this->lastTestFailed && $test instanceof TestCase) {
412 412
             $class = \get_class($test);
413
-            $key   = $class . '::' . $test->getName();
413
+            $key   = $class.'::'.$test->getName();
414 414
 
415 415
             $this->passed[$key] = [
416 416
                 'result' => $test->getResult(),
@@ -814,8 +814,8 @@  discard block
 block discarded – undo
814 814
                 $this->addFailure(
815 815
                     $test,
816 816
                     new UnintentionallyCoveredCodeError(
817
-                        'This test executed code that is not listed as code to be covered or used:' .
818
-                        PHP_EOL . $cce->getMessage()
817
+                        'This test executed code that is not listed as code to be covered or used:'.
818
+                        PHP_EOL.$cce->getMessage()
819 819
                     ),
820 820
                     $time
821 821
                 );
@@ -823,8 +823,8 @@  discard block
 block discarded – undo
823 823
                 $this->addFailure(
824 824
                     $test,
825 825
                     new CoveredCodeNotExecutedException(
826
-                        'This test did not execute all the code that is listed as code to be covered:' .
827
-                        PHP_EOL . $cce->getMessage()
826
+                        'This test did not execute all the code that is listed as code to be covered:'.
827
+                        PHP_EOL.$cce->getMessage()
828 828
                     ),
829 829
                     $time
830 830
                 );
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     public function __construct($className, $methodName, $message = '')
53 53
     {
54 54
         $this->message = $message;
55
-        parent::__construct($className . '::' . $methodName);
55
+        parent::__construct($className.'::'.$methodName);
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.