Completed
Pull Request — master (#22)
by Jeroen De
01:54
created
src/Command/ValidateCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $configuration = InputHandler::handleInput($input);
51 51
         if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE) {
52
-            $output->writeln(PHP_EOL . sprintf(
52
+            $output->writeln(PHP_EOL.sprintf(
53 53
                 'Configuration file loaded: %s',
54 54
                 $configuration->getFilename()
55 55
             ));
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $suiteList = TestSuiteLoader::loadSuite($configuration);
59 59
         if (!count($suiteList)) {
60
-            $output->writeln(PHP_EOL . 'No tests found to validate.');
60
+            $output->writeln(PHP_EOL.'No tests found to validate.');
61 61
             return 0;
62 62
         }
63 63
 
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
 
75 75
             $testClass = get_class($suite);
76 76
             $testMethod = $suite->getName();
77
-            $testSignature = $testClass . '::' . $testMethod;
77
+            $testSignature = $testClass.'::'.$testMethod;
78 78
 
79 79
             if ($output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG) {
80
-                $this->writeValidity($output, 'Validating ' . $testSignature . '...');
80
+                $this->writeValidity($output, 'Validating '.$testSignature.'...');
81 81
             }
82 82
 
83 83
             $isValid = Validator::isValidMethod(
Please login to merge, or discard this patch.
src/Locator/ConfigLocator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $configurationFile = static::CONFIG_FILENAME;
18 18
         if (is_dir($configOption)) {
19
-            $configurationFile = $configOption . DIRECTORY_SEPARATOR . $configurationFile;
19
+            $configurationFile = $configOption.DIRECTORY_SEPARATOR.$configurationFile;
20 20
         }
21 21
         if (file_exists($configOption) && is_file($configOption)) {
22 22
             return realpath($configOption);
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
         if (file_exists($configurationFile)) {
25 25
             return realpath($configurationFile);
26 26
         }
27
-        if (file_exists($configurationFile . '.dist')) {
28
-            return realpath($configurationFile . '.dist');
27
+        if (file_exists($configurationFile.'.dist')) {
28
+            return realpath($configurationFile.'.dist');
29 29
         }
30 30
 
31 31
         return null;
Please login to merge, or discard this patch.
src/Loader/FileLoader.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
      */
12 12
     public static function loadFile($filename)
13 13
     {
14
-    	if ( class_exists( \PHPUnit\Util\FileLoader::class ) ) {
15
-    		// PHPUnit 7.x+
16
-			\PHPUnit\Util\FileLoader::checkAndLoad($filename);
17
-		}
18
-		else {
19
-			// PHPUnit 6.x-
20
-			\PHPUnit\Util\Fileloader::checkAndLoad($filename);
21
-		}
14
+        if ( class_exists( \PHPUnit\Util\FileLoader::class ) ) {
15
+            // PHPUnit 7.x+
16
+            \PHPUnit\Util\FileLoader::checkAndLoad($filename);
17
+        }
18
+        else {
19
+            // PHPUnit 6.x-
20
+            \PHPUnit\Util\Fileloader::checkAndLoad($filename);
21
+        }
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public static function loadFile($filename)
13 13
     {
14
-    	if ( class_exists( \PHPUnit\Util\FileLoader::class ) ) {
14
+    	if (class_exists(\PHPUnit\Util\FileLoader::class)) {
15 15
     		// PHPUnit 7.x+
16 16
 			\PHPUnit\Util\FileLoader::checkAndLoad($filename);
17 17
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
     	if ( class_exists( \PHPUnit\Util\FileLoader::class ) ) {
15 15
     		// PHPUnit 7.x+
16 16
 			\PHPUnit\Util\FileLoader::checkAndLoad($filename);
17
-		}
18
-		else {
17
+		} else {
19 18
 			// PHPUnit 6.x-
20 19
 			\PHPUnit\Util\Fileloader::checkAndLoad($filename);
21 20
 		}
Please login to merge, or discard this patch.