Passed
Push — master ( 223a25...435181 )
by Alexander
06:35 queued 05:10
created
src/PHPUnitCompat/AbstractTestCase.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use PHPUnit\Runner\Version;
15 15
 
16 16
 // PHPUnit Compat.
17
-if ( \class_exists('\PHPUnit_Framework_IncompleteTestError') ) {
17
+if (\class_exists('\PHPUnit_Framework_IncompleteTestError')) {
18 18
 	\class_alias(
19 19
 		'\PHPUnit_Framework_IncompleteTestError',
20 20
 		'\ConsoleHelpers\PHPUnitCompat\Framework\IncompleteTestError'
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
 	);
28 28
 }
29 29
 
30
-if ( class_exists('\PHPUnit_Framework_SkippedTestError') ) {
30
+if (class_exists('\PHPUnit_Framework_SkippedTestError')) {
31 31
 	\class_alias('\PHPUnit_Framework_SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError');
32 32
 }
33 33
 else {
34 34
 	\class_alias('\PHPUnit\Framework\SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError');
35 35
 }
36 36
 
37
-if ( class_exists('\PHPUnit_Framework_TestSuite_DataProvider') ) {
37
+if (class_exists('\PHPUnit_Framework_TestSuite_DataProvider')) {
38 38
 	\class_alias(
39 39
 		'\PHPUnit_Framework_TestSuite_DataProvider',
40 40
 		'\ConsoleHelpers\PHPUnitCompat\Framework\DataProviderTestSuite'
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	);
48 48
 }
49 49
 
50
-if ( class_exists('\PHPUnit_Framework_TestResult') ) {
50
+if (class_exists('\PHPUnit_Framework_TestResult')) {
51 51
 	\class_alias('\PHPUnit_Framework_TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult');
52 52
 }
53 53
 else {
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 	\class_alias('\PHPUnit\Framework\Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test');
62 62
 }*/
63 63
 
64
-if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) {
65
-	if ( \class_exists('PHPUnit\Runner\Version') ) {
64
+if (!\defined('PHPUNIT_COMPAT_RUNNER_VERSION')) {
65
+	if (\class_exists('PHPUnit\Runner\Version')) {
66 66
 		\define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id());
67 67
 	}
68 68
 	else {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 }
72 72
 
73 73
 // CodeCoverage Compat.
74
-if ( class_exists('\PHP_CodeCoverage') ) {
74
+if (class_exists('\PHP_CodeCoverage')) {
75 75
 	\class_alias('\PHP_CodeCoverage', '\ConsoleHelpers\CodeCoverageCompat\CodeCoverage');
76 76
 }
77 77
 else {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	);
82 82
 }
83 83
 
84
-if ( \interface_exists('\PHP_CodeCoverage_Driver') ) {
84
+if (\interface_exists('\PHP_CodeCoverage_Driver')) {
85 85
 	\class_alias('\PHP_CodeCoverage_Driver', '\ConsoleHelpers\CodeCoverageCompat\Driver\Driver');
86 86
 }
87 87
 else {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	);
92 92
 }
93 93
 
94
-if ( class_exists('\PHP_CodeCoverage_Filter') ) {
94
+if (class_exists('\PHP_CodeCoverage_Filter')) {
95 95
 	\class_alias('\PHP_CodeCoverage_Filter', '\ConsoleHelpers\CodeCoverageCompat\Filter');
96 96
 }
97 97
 else {
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
 	 */
122 122
 	protected function verifyMockeryExpectations()
123 123
 	{
124
-		if ( !\class_exists('Mockery') ) {
124
+		if (!\class_exists('Mockery')) {
125 125
 			return;
126 126
 		}
127 127
 
128 128
 		// Add Mockery expectations to assertion count.
129 129
 		$container = \Mockery::getContainer();
130 130
 
131
-		if ( $container !== null ) {
131
+		if ($container !== null) {
132 132
 			$this->addToAssertionCount($container->mockery_getExpectationCount());
133 133
 		}
134 134
 
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 
139 139
 }
140 140
 
141
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<') ) {
141
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<')) {
142 142
 	require_once __DIR__ . '/AbstractTestCase4.php';
143 143
 }
144
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
144
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) {
145 145
 	require_once __DIR__ . '/AbstractTestCase5.php';
146 146
 }
147
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '7.0.0', '<') ) {
147
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '7.0.0', '<')) {
148 148
 	require_once __DIR__ . '/AbstractTestCase6.php';
149 149
 }
150
-elseif ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<') ) {
150
+elseif (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '8.0.0', '<')) {
151 151
 	require_once __DIR__ . '/AbstractTestCase7.php';
152 152
 }
153 153
 else {
Please login to merge, or discard this patch.