Passed
Push — master ( 02e0d1...a7b269 )
by Alexander
01:24
created
src/PHPUnitCompat/AbstractTestCase.php 1 patch
Spacing   +13 added lines, -13 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,22 +47,22 @@  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 {
54 54
 	\class_alias('\PHPUnit\Framework\TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult');
55 55
 }
56 56
 
57
-if ( class_exists('\PHPUnit_Framework_Test') ) {
57
+if (class_exists('\PHPUnit_Framework_Test')) {
58 58
 	\class_alias('\PHPUnit_Framework_Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test');
59 59
 }
60 60
 else {
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,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
 }
140 140
 
141
-if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) {
141
+if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) {
142 142
 	require_once __DIR__ . '/AbstractTestCase5.php';
143 143
 }
144 144
 else {
Please login to merge, or discard this patch.