@@ -489,7 +489,7 @@ |
||
489 | 489 | { |
490 | 490 | $configuration = $this->getPHPConfiguration(); |
491 | 491 | |
492 | - if (! empty($configuration['include_path'])) { |
|
492 | + if (!empty($configuration['include_path'])) { |
|
493 | 493 | ini_set( |
494 | 494 | 'include_path', |
495 | 495 | implode(PATH_SEPARATOR, $configuration['include_path']) . |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public static function handleErrorOnce($severity = E_WARNING) |
97 | 97 | { |
98 | - $terminator = function () { |
|
98 | + $terminator = function() { |
|
99 | 99 | static $expired = false; |
100 | 100 | if (!$expired) { |
101 | 101 | $expired = true; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | } |
105 | 105 | }; |
106 | 106 | |
107 | - set_error_handler(function ($errno, $errstr) use ($severity) { |
|
107 | + set_error_handler(function($errno, $errstr) use ($severity) { |
|
108 | 108 | if ($errno === $severity) { |
109 | 109 | return; |
110 | 110 | } |
@@ -131,7 +131,7 @@ |
||
131 | 131 | $opt_rest = substr($long_opt, $opt_len); |
132 | 132 | |
133 | 133 | if ($opt_rest != '' && $opt[0] != '=' && $i + 1 < $count && |
134 | - $opt == substr($long_options[$i+1], 0, $opt_len)) { |
|
134 | + $opt == substr($long_options[$i + 1], 0, $opt_len)) { |
|
135 | 135 | throw new PHPUnit_Framework_Exception( |
136 | 136 | "option --$opt is ambiguous" |
137 | 137 | ); |
@@ -227,7 +227,7 @@ |
||
227 | 227 | */ |
228 | 228 | public function write($buffer) |
229 | 229 | { |
230 | - array_walk_recursive($buffer, function (&$input) { |
|
230 | + array_walk_recursive($buffer, function(&$input) { |
|
231 | 231 | if (is_string($input)) { |
232 | 232 | $input = PHPUnit_Util_String::convertToUtf8($input); |
233 | 233 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | $time |
104 | 104 | ); |
105 | 105 | } else { |
106 | - set_error_handler(function ($errno, $errstr, $errfile, $errline) { |
|
106 | + set_error_handler(function($errno, $errstr, $errfile, $errline) { |
|
107 | 107 | throw new ErrorException($errstr, $errno, $errno, $errfile, $errline); |
108 | 108 | }); |
109 | 109 | try { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | fwrite( |
94 | 94 | $pipe, |
95 | - '<?php require_once ' . var_export($this->tempFile, true) . '; ?>' |
|
95 | + '<?php require_once ' . var_export($this->tempFile, true) . '; ?>' |
|
96 | 96 | ); |
97 | 97 | } |
98 | 98 |
@@ -807,7 +807,7 @@ |
||
807 | 807 | break; |
808 | 808 | } |
809 | 809 | } // range count of children |
810 | - elseif ($childOptions['less_than'] !== null && |
|
810 | + elseif ($childOptions['less_than'] !== null && |
|
811 | 811 | $childOptions['greater_than'] !== null) { |
812 | 812 | if (count($children) >= $childOptions['less_than'] || |
813 | 813 | count($children) <= $childOptions['greater_than']) { |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | array(0, 0), |
678 | 678 | // floats |
679 | 679 | array(2.3, 2.3), |
680 | - array(1/3, 1 - 2/3), |
|
680 | + array(1 / 3, 1 - 2 / 3), |
|
681 | 681 | array(log(0), log(0)), |
682 | 682 | // arrays |
683 | 683 | array(array(), array()), |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | array('a', 'b'), |
724 | 724 | array('a', 'A'), |
725 | 725 | // https://github.com/sebastianbergmann/phpunit/issues/1023 |
726 | - array('9E6666666','9E7777777'), |
|
726 | + array('9E6666666', '9E7777777'), |
|
727 | 727 | // integers |
728 | 728 | array(1, 2), |
729 | 729 | array(2, 1), |
@@ -939,8 +939,8 @@ discard block |
||
939 | 939 | array('0', 0), |
940 | 940 | array(2.3, '2.3'), |
941 | 941 | array('2.3', 2.3), |
942 | - array((string) (1/3), 1 - 2/3), |
|
943 | - array(1/3, (string) (1 - 2/3)), |
|
942 | + array((string) (1 / 3), 1 - 2 / 3), |
|
943 | + array(1 / 3, (string) (1 - 2 / 3)), |
|
944 | 944 | array('string representation', new ClassWithToString), |
945 | 945 | array(new ClassWithToString, 'string representation'), |
946 | 946 | ); |
@@ -3115,7 +3115,7 @@ discard block |
||
3115 | 3115 | { |
3116 | 3116 | $this->assertThat( |
3117 | 3117 | null, |
3118 | - $this->callback(function ($other) { return true; }) |
|
3118 | + $this->callback(function($other) { return true; }) |
|
3119 | 3119 | ); |
3120 | 3120 | } |
3121 | 3121 |
@@ -1739,11 +1739,11 @@ discard block |
||
1739 | 1739 | */ |
1740 | 1740 | public function testConstraintCallback() |
1741 | 1741 | { |
1742 | - $closureReflect = function ($parameter) { |
|
1742 | + $closureReflect = function($parameter) { |
|
1743 | 1743 | return $parameter; |
1744 | 1744 | }; |
1745 | 1745 | |
1746 | - $closureWithoutParameter = function () { |
|
1746 | + $closureWithoutParameter = function() { |
|
1747 | 1747 | return true; |
1748 | 1748 | }; |
1749 | 1749 | |
@@ -1756,7 +1756,7 @@ discard block |
||
1756 | 1756 | |
1757 | 1757 | $callback = array($this, 'callbackReturningTrue'); |
1758 | 1758 | $constraint = PHPUnit_Framework_Assert::callback($callback); |
1759 | - $this->assertTrue($constraint->evaluate(false, '', true)); |
|
1759 | + $this->assertTrue($constraint->evaluate(false, '', true)); |
|
1760 | 1760 | |
1761 | 1761 | $callback = array('Framework_ConstraintTest', 'staticCallbackReturningTrue'); |
1762 | 1762 | $constraint = PHPUnit_Framework_Assert::callback($callback); |
@@ -1772,7 +1772,7 @@ discard block |
||
1772 | 1772 | */ |
1773 | 1773 | public function testConstraintCallbackFailure() |
1774 | 1774 | { |
1775 | - $constraint = PHPUnit_Framework_Assert::callback(function () { |
|
1775 | + $constraint = PHPUnit_Framework_Assert::callback(function() { |
|
1776 | 1776 | return false; |
1777 | 1777 | }); |
1778 | 1778 | $constraint->evaluate('This fails'); |