Failed Conditions
Pull Request — master (#2)
by Alexander
01:30
created
src/PHPUnitCompat/AbstractTestSuite5.php 1 patch
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($runner_version, '5.0.0', '<') ) {
16
+if (version_compare($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($runner_version, '6.0.0', '<') ) {
43
+elseif (version_compare($runner_version, '6.0.0', '<')) {
44 44
 	/**
45 45
 	 * Implementation for PHPUnit 5
46 46
 	 */
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestSuite.php 1 patch
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\Runner\Version;
16 16
 
17
-if ( \class_exists('PHPUnit\Runner\Version') ) {
17
+if (\class_exists('PHPUnit\Runner\Version')) {
18 18
 	$runner_version = Version::id();
19 19
 }
20 20
 else {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 }
50 50
 
51 51
 
52
-if ( version_compare($runner_version, '6.0.0', '<') ) {
52
+if (version_compare($runner_version, '6.0.0', '<')) {
53 53
 	require_once __DIR__ . '/AbstractTestSuite5.php';
54 54
 }
55 55
 else {
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestCase.php 1 patch
Spacing   +12 added lines, -12 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,14 +80,14 @@  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 ( \class_exists('PHPUnit\Runner\Version') ) {
90
+if (\class_exists('PHPUnit\Runner\Version')) {
91 91
 	$runner_version = Version::id();
92 92
 }
93 93
 else {
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
 	 */
118 118
 	protected function verifyMockeryExpectations()
119 119
 	{
120
-		if ( !\class_exists('Mockery') ) {
120
+		if (!\class_exists('Mockery')) {
121 121
 			return;
122 122
 		}
123 123
 
124 124
 		// Add Mockery expectations to assertion count.
125 125
 		$container = \Mockery::getContainer();
126 126
 
127
-		if ( $container !== null ) {
127
+		if ($container !== null) {
128 128
 			$this->addToAssertionCount($container->mockery_getExpectationCount());
129 129
 		}
130 130
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 }
136 136
 
137
-if ( version_compare($runner_version, '6.0.0', '<') ) {
137
+if (version_compare($runner_version, '6.0.0', '<')) {
138 138
 	require_once __DIR__ . '/AbstractTestCase5.php';
139 139
 }
140 140
 else {
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestSuite7.php 1 patch
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($runner_version, '7.0.0', '<') ) {
17
+if (version_compare($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($runner_version, '8.0.0', '<') ) {
44
+elseif (version_compare($runner_version, '8.0.0', '<')) {
45 45
 	/**
46 46
 	 * Implementation for PHPUnit 7
47 47
 	 */
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestCase7.php 1 patch
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($runner_version, '7.0.0', '<') ) {
16
+if (version_compare($runner_version, '7.0.0', '<')) {
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($runner_version, '8.0.0', '<') ) {
37
+elseif (version_compare($runner_version, '8.0.0', '<')) {
38 38
 	/**
39 39
 	 * Implementation for PHPUnit 7
40 40
 	 */
Please login to merge, or discard this patch.
src/PHPUnitCompat/AbstractTestCase5.php 1 patch
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($runner_version, '5.0.0', '<') ) {
16
+if (version_compare($runner_version, '5.0.0', '<')) {
17 17
 	/**
18 18
 	 * Implementation for PHPUnit 4
19 19
 	 */
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 	}
36 36
 }
37
-elseif ( version_compare($runner_version, '6.0.0', '<') ) {
37
+elseif (version_compare($runner_version, '6.0.0', '<')) {
38 38
 	/**
39 39
 	 * Implementation for PHPUnit 5
40 40
 	 */
Please login to merge, or discard this patch.