Failed Conditions
Push — master ( db6d0c...694d4f )
by Alexander
27s queued 24s
created
src/PHPUnitCompat/AbstractTestSuite7.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use PHPUnit\Framework\TestResult;
15 15
 use PHPUnit\Framework\TestSuite;
16 16
 
17
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '7.0.0', '<') ) {
17
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '7.0.0', '<')) {
18 18
 	/**
19 19
 	 * Implementation for PHPUnit 6
20 20
 	 */
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 	}
43 43
 }
44
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
44
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<')) {
45 45
 	/**
46 46
 	 * Implementation for PHPUnit 7
47 47
 	 */
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
 		}
41 41
 
42 42
 	}
43
-}
44
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
43
+} elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
45 44
 	/**
46 45
 	 * Implementation for PHPUnit 7
47 46
 	 */
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
 		}
68 67
 
69 68
 	}
70
-}
71
-else {
69
+} else {
72 70
 	/**
73 71
 	 * Implementation for PHPUnit 8+
74 72
 	 */
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestCase.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 use PHPUnit\Runner\Version;
15 15
 
16
-if ( \class_exists('\PHPUnit_Framework_IncompleteTestError') ) {
16
+if (\class_exists('\PHPUnit_Framework_IncompleteTestError')) {
17 17
 	\class_alias(
18 18
 		'\PHPUnit_Framework_IncompleteTestError',
19 19
 		'\ConsoleHelpers\PHPUnitCompat\Framework\IncompleteTestError'
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
 	);
27 27
 }
28 28
 
29
-if ( class_exists('\PHPUnit_Framework_SkippedTestError') ) {
29
+if (class_exists('\PHPUnit_Framework_SkippedTestError')) {
30 30
 	\class_alias('\PHPUnit_Framework_SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError');
31 31
 }
32 32
 else {
33 33
 	\class_alias('\PHPUnit\Framework\SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError');
34 34
 }
35 35
 
36
-if ( class_exists('\PHPUnit_Framework_TestSuite_DataProvider') ) {
36
+if (class_exists('\PHPUnit_Framework_TestSuite_DataProvider')) {
37 37
 	\class_alias(
38 38
 		'\PHPUnit_Framework_TestSuite_DataProvider',
39 39
 		'\ConsoleHelpers\PHPUnitCompat\Framework\DataProviderTestSuite'
@@ -46,21 +46,21 @@  discard block
 block discarded – undo
46 46
 	);
47 47
 }
48 48
 
49
-if ( class_exists('\PHPUnit_Framework_TestResult') ) {
49
+if (class_exists('\PHPUnit_Framework_TestResult')) {
50 50
 	\class_alias('\PHPUnit_Framework_TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult');
51 51
 }
52 52
 else {
53 53
 	\class_alias('\PHPUnit\Framework\TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult');
54 54
 }
55 55
 
56
-if ( class_exists('\PHPUnit_Framework_Test') ) {
56
+if (class_exists('\PHPUnit_Framework_Test')) {
57 57
 	\class_alias('\PHPUnit_Framework_Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test');
58 58
 }
59 59
 else {
60 60
 	\class_alias('\PHPUnit\Framework\Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test');
61 61
 }
62 62
 
63
-if ( class_exists('\PHP_CodeCoverage') ) {
63
+if (class_exists('\PHP_CodeCoverage')) {
64 64
 	\class_alias('\PHP_CodeCoverage', '\aik099\SebastianBergmann\CodeCoverage\CodeCoverage');
65 65
 }
66 66
 else {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	);
71 71
 }
72 72
 
73
-if ( \interface_exists('\PHP_CodeCoverage_Driver') ) {
73
+if (\interface_exists('\PHP_CodeCoverage_Driver')) {
74 74
 	\class_alias('\PHP_CodeCoverage_Driver', '\aik099\SebastianBergmann\CodeCoverage\Driver\Driver');
75 75
 }
76 76
 else {
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
80 80
 	);
81 81
 }
82 82
 
83
-if ( class_exists('\PHP_CodeCoverage_Filter') ) {
83
+if (class_exists('\PHP_CodeCoverage_Filter')) {
84 84
 	\class_alias('\PHP_CodeCoverage_Filter', '\aik099\SebastianBergmann\CodeCoverage\Filter');
85 85
 }
86 86
 else {
87 87
 	\class_alias('\SebastianBergmann\CodeCoverage\Filter', '\aik099\SebastianBergmann\CodeCoverage\Filter');
88 88
 }
89 89
 
90
-if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) {
91
-	if ( \class_exists('PHPUnit\Runner\Version') ) {
90
+if (!\defined('PHPUNIT_COMPAT_RUNNER_VERSION')) {
91
+	if (\class_exists('PHPUnit\Runner\Version')) {
92 92
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id());
93 93
 	}
94 94
 	else {
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	protected function verifyMockeryExpectations()
121 121
 	{
122
-		if ( !\class_exists('Mockery') ) {
122
+		if (!\class_exists('Mockery')) {
123 123
 			return;
124 124
 		}
125 125
 
126 126
 		// Add Mockery expectations to assertion count.
127 127
 		$container = \Mockery::getContainer();
128 128
 
129
-		if ( $container !== null ) {
129
+		if ($container !== null) {
130 130
 			$this->addToAssertionCount($container->mockery_getExpectationCount());
131 131
 		}
132 132
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
 }
138 138
 
139
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
139
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) {
140 140
 	require_once __DIR__ . '/AbstractTestCase5.php';
141 141
 }
142 142
 else {
Please login to merge, or discard this patch.
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 		'\PHPUnit_Framework_IncompleteTestError',
19 19
 		'\ConsoleHelpers\PHPUnitCompat\Framework\IncompleteTestError'
20 20
 	);
21
-}
22
-else {
21
+} else {
23 22
 	\class_alias(
24 23
 		'\PHPUnit\Framework\IncompleteTestError',
25 24
 		'\ConsoleHelpers\PHPUnitCompat\Framework\IncompleteTestError'
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
 
29 28
 if ( class_exists('\PHPUnit_Framework_SkippedTestError') ) {
30 29
 	\class_alias('\PHPUnit_Framework_SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError');
31
-}
32
-else {
30
+} else {
33 31
 	\class_alias('\PHPUnit\Framework\SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError');
34 32
 }
35 33
 
@@ -38,8 +36,7 @@  discard block
 block discarded – undo
38 36
 		'\PHPUnit_Framework_TestSuite_DataProvider',
39 37
 		'\ConsoleHelpers\PHPUnitCompat\Framework\DataProviderTestSuite'
40 38
 	);
41
-}
42
-else {
39
+} else {
43 40
 	\class_alias(
44 41
 		'\PHPUnit\Framework\DataProviderTestSuite',
45 42
 		'\ConsoleHelpers\PHPUnitCompat\Framework\DataProviderTestSuite'
@@ -48,22 +45,19 @@  discard block
 block discarded – undo
48 45
 
49 46
 if ( class_exists('\PHPUnit_Framework_TestResult') ) {
50 47
 	\class_alias('\PHPUnit_Framework_TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult');
51
-}
52
-else {
48
+} else {
53 49
 	\class_alias('\PHPUnit\Framework\TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult');
54 50
 }
55 51
 
56 52
 if ( class_exists('\PHPUnit_Framework_Test') ) {
57 53
 	\class_alias('\PHPUnit_Framework_Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test');
58
-}
59
-else {
54
+} else {
60 55
 	\class_alias('\PHPUnit\Framework\Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test');
61 56
 }
62 57
 
63 58
 if ( class_exists('\PHP_CodeCoverage') ) {
64 59
 	\class_alias('\PHP_CodeCoverage', '\aik099\SebastianBergmann\CodeCoverage\CodeCoverage');
65
-}
66
-else {
60
+} else {
67 61
 	\class_alias(
68 62
 		'\SebastianBergmann\CodeCoverage\CodeCoverage',
69 63
 		'\aik099\SebastianBergmann\CodeCoverage\CodeCoverage'
@@ -72,8 +66,7 @@  discard block
 block discarded – undo
72 66
 
73 67
 if ( \interface_exists('\PHP_CodeCoverage_Driver') ) {
74 68
 	\class_alias('\PHP_CodeCoverage_Driver', '\aik099\SebastianBergmann\CodeCoverage\Driver\Driver');
75
-}
76
-else {
69
+} else {
77 70
 	\class_alias(
78 71
 		'\SebastianBergmann\CodeCoverage\Driver\Driver',
79 72
 		'\aik099\SebastianBergmann\CodeCoverage\Driver\Driver'
@@ -82,16 +75,14 @@  discard block
 block discarded – undo
82 75
 
83 76
 if ( class_exists('\PHP_CodeCoverage_Filter') ) {
84 77
 	\class_alias('\PHP_CodeCoverage_Filter', '\aik099\SebastianBergmann\CodeCoverage\Filter');
85
-}
86
-else {
78
+} else {
87 79
 	\class_alias('\SebastianBergmann\CodeCoverage\Filter', '\aik099\SebastianBergmann\CodeCoverage\Filter');
88 80
 }
89 81
 
90 82
 if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) {
91 83
 	if ( \class_exists('PHPUnit\Runner\Version') ) {
92 84
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id());
93
-	}
94
-	else {
85
+	} else {
95 86
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', \PHPUnit_Runner_Version::id());
96 87
 	}
97 88
 }
@@ -138,7 +129,6 @@  discard block
 block discarded – undo
138 129
 
139 130
 if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
140 131
 	require_once __DIR__ . '/AbstractTestCase5.php';
141
-}
142
-else {
132
+} else {
143 133
 	require_once __DIR__ . '/AbstractTestCase7.php';
144 134
 }
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestSuite.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
 use PHPUnit\Framework\TestResult;
15 15
 use PHPUnit\Runner\Version;
16 16
 
17
-if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) {
18
-	if ( \class_exists('PHPUnit\Runner\Version') ) {
17
+if (!\defined('PHPUNIT_COMPAT_RUNNER_VERSION')) {
18
+	if (\class_exists('PHPUnit\Runner\Version')) {
19 19
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id());
20 20
 	}
21 21
 	else {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 }
52 52
 
53 53
 
54
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
54
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) {
55 55
 	require_once __DIR__ . '/AbstractTestSuite5.php';
56 56
 }
57 57
 else {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) {
18 18
 	if ( \class_exists('PHPUnit\Runner\Version') ) {
19 19
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id());
20
-	}
21
-	else {
20
+	} else {
22 21
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', \PHPUnit_Runner_Version::id());
23 22
 	}
24 23
 }
@@ -53,7 +52,6 @@  discard block
 block discarded – undo
53 52
 
54 53
 if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
55 54
 	require_once __DIR__ . '/AbstractTestSuite5.php';
56
-}
57
-else {
55
+} else {
58 56
 	require_once __DIR__ . '/AbstractTestSuite7.php';
59 57
 }
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestSuite5.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 use PHPUnit\Framework\TestSuite;
15 15
 
16
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<') ) {
16
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<')) {
17 17
 	/**
18 18
 	 * Implementation for PHPUnit 4
19 19
 	 */
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 	}
42 42
 }
43
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
43
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) {
44 44
 	/**
45 45
 	 * Implementation for PHPUnit 5
46 46
 	 */
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 		}
40 40
 
41 41
 	}
42
-}
43
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
42
+} elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
44 43
 	/**
45 44
 	 * Implementation for PHPUnit 5
46 45
 	 */
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestCase5.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use PHPUnit\Framework\TestCase;
15 15
 
16 16
 // @codeCoverageIgnoreStart
17
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<') ) {
17
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<')) {
18 18
 	/**
19 19
 	 * Implementation for PHPUnit 4
20 20
 	 */
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 	}
37 37
 }
38
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
38
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) {
39 39
 	/**
40 40
 	 * Implementation for PHPUnit 5
41 41
 	 */
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 		}
40 40
 
41 41
 	}
42
-}
43
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
42
+} elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
44 43
 	/**
45 44
 	 * Implementation for PHPUnit 5
46 45
 	 */
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestCase7.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 use PHPUnit\Framework\TestCase;
15 15
 
16
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '7.0.0', '<') ) { // @codeCoverageIgnore
16
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '7.0.0', '<')) { // @codeCoverageIgnore
17 17
 	/**
18 18
 	 * Implementation for PHPUnit 6
19 19
 	 */
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 	}
36 36
 }
37
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
37
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<')) {
38 38
 	/**
39 39
 	 * Implementation for PHPUnit 7
40 40
 	 */
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
 		}
41 41
 
42 42
 	}
43
-}
44
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
43
+} elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
45 44
 	/**
46 45
 	 * Implementation for PHPUnit 7
47 46
 	 */
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
 		}
68 67
 
69 68
 	}
70
-}
71
-else {
69
+} else {
72 70
 	/**
73 71
 	 * Implementation for PHPUnit 8+
74 72
 	 */
Please login to merge, or discard this patch.