@@ -54,6 +54,6 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | return 'return result of user defined callback ' . $this->callback . |
57 | - ' with the passed arguments'; |
|
57 | + ' with the passed arguments'; |
|
58 | 58 | } |
59 | 59 | } |
@@ -63,6 +63,6 @@ |
||
63 | 63 | */ |
64 | 64 | public function matchesName(string $methodName): bool |
65 | 65 | { |
66 | - return (bool) $this->constraint->evaluate($methodName, '', true); |
|
66 | + return (bool)$this->constraint->evaluate($methodName, '', true); |
|
67 | 67 | } |
68 | 68 | } |
@@ -155,6 +155,6 @@ |
||
155 | 155 | throw $this->parameterVerificationResult; |
156 | 156 | } |
157 | 157 | |
158 | - return (bool) $this->parameterVerificationResult; |
|
158 | + return (bool)$this->parameterVerificationResult; |
|
159 | 159 | } |
160 | 160 | } |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | } catch (ReflectionException $e) { |
895 | 895 | throw new Exception( |
896 | 896 | $e->getMessage(), |
897 | - (int) $e->getCode(), |
|
897 | + (int)$e->getCode(), |
|
898 | 898 | $e |
899 | 899 | ); |
900 | 900 | } |
@@ -909,7 +909,7 @@ discard block |
||
909 | 909 | } catch (ReflectionException $e) { |
910 | 910 | throw new Exception( |
911 | 911 | $e->getMessage(), |
912 | - (int) $e->getCode(), |
|
912 | + (int)$e->getCode(), |
|
913 | 913 | $e |
914 | 914 | ); |
915 | 915 | } |
@@ -2780,7 +2780,7 @@ discard block |
||
2780 | 2780 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
2781 | 2781 | array_unshift($trace, $hint); |
2782 | 2782 | |
2783 | - throw new SyntheticSkippedError($hint['message'], 0, $hint['file'], (int) $hint['line'], $trace); |
|
2783 | + throw new SyntheticSkippedError($hint['message'], 0, $hint['file'], (int)$hint['line'], $trace); |
|
2784 | 2784 | } |
2785 | 2785 | |
2786 | 2786 | throw new SkippedTestError($message); |
@@ -2828,12 +2828,12 @@ discard block |
||
2828 | 2828 | |
2829 | 2829 | private static function isValidObjectAttributeName(string $attributeName): bool |
2830 | 2830 | { |
2831 | - return (bool) preg_match('/[^\x00-\x1f\x7f-\x9f]+/', $attributeName); |
|
2831 | + return (bool)preg_match('/[^\x00-\x1f\x7f-\x9f]+/', $attributeName); |
|
2832 | 2832 | } |
2833 | 2833 | |
2834 | 2834 | private static function isValidClassAttributeName(string $attributeName): bool |
2835 | 2835 | { |
2836 | - return (bool) preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName); |
|
2836 | + return (bool)preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName); |
|
2837 | 2837 | } |
2838 | 2838 | |
2839 | 2839 | /** |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | } catch (ReflectionException $e) { |
535 | 535 | throw new Exception( |
536 | 536 | $e->getMessage(), |
537 | - (int) $e->getCode(), |
|
537 | + (int)$e->getCode(), |
|
538 | 538 | $e |
539 | 539 | ); |
540 | 540 | } |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | } catch (ReflectionException $e) { |
757 | 757 | throw new Exception( |
758 | 758 | $e->getMessage(), |
759 | - (int) $e->getCode(), |
|
759 | + (int)$e->getCode(), |
|
760 | 760 | $e |
761 | 761 | ); |
762 | 762 | } |
@@ -1014,7 +1014,7 @@ discard block |
||
1014 | 1014 | return $this->output; |
1015 | 1015 | } |
1016 | 1016 | |
1017 | - return (string) ob_get_contents(); |
|
1017 | + return (string)ob_get_contents(); |
|
1018 | 1018 | } |
1019 | 1019 | |
1020 | 1020 | /** |
@@ -1725,7 +1725,7 @@ discard block |
||
1725 | 1725 | } catch (ReflectionException $e) { |
1726 | 1726 | throw new Exception( |
1727 | 1727 | $e->getMessage(), |
1728 | - (int) $e->getCode(), |
|
1728 | + (int)$e->getCode(), |
|
1729 | 1729 | $e |
1730 | 1730 | ); |
1731 | 1731 | } |
@@ -1733,7 +1733,7 @@ discard block |
||
1733 | 1733 | |
1734 | 1734 | $mockedMethodsThatDontExist = array_filter( |
1735 | 1735 | $methods, |
1736 | - static function (string $method) use ($reflector) { |
|
1736 | + static function(string $method) use ($reflector) { |
|
1737 | 1737 | return !$reflector->hasMethod($method); |
1738 | 1738 | } |
1739 | 1739 | ); |
@@ -2207,7 +2207,7 @@ discard block |
||
2207 | 2207 | $this->output = ob_get_contents(); |
2208 | 2208 | |
2209 | 2209 | if ($this->outputCallback !== false) { |
2210 | - $this->output = (string) call_user_func($this->outputCallback, $this->output); |
|
2210 | + $this->output = (string)call_user_func($this->outputCallback, $this->output); |
|
2211 | 2211 | } |
2212 | 2212 | |
2213 | 2213 | ob_end_clean(); |
@@ -2312,7 +2312,7 @@ discard block |
||
2312 | 2312 | return new Snapshot( |
2313 | 2313 | $excludeList, |
2314 | 2314 | $backupGlobals, |
2315 | - (bool) $this->backupStaticAttributes, |
|
2315 | + (bool)$this->backupStaticAttributes, |
|
2316 | 2316 | false, |
2317 | 2317 | false, |
2318 | 2318 | false, |
@@ -2499,7 +2499,7 @@ discard block |
||
2499 | 2499 | } catch (ReflectionException $e) { |
2500 | 2500 | throw new Exception( |
2501 | 2501 | $e->getMessage(), |
2502 | - (int) $e->getCode(), |
|
2502 | + (int)$e->getCode(), |
|
2503 | 2503 | $e |
2504 | 2504 | ); |
2505 | 2505 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | // PDOException::getCode() is a string. |
44 | 44 | // @see https://php.net/manual/en/class.pdoexception.php#95812 |
45 | - parent::__construct($t->getMessage(), (int) $t->getCode()); |
|
45 | + parent::__construct($t->getMessage(), (int)$t->getCode()); |
|
46 | 46 | |
47 | 47 | $this->setOriginalException($t); |
48 | 48 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | return array_values( |
75 | 75 | array_filter( |
76 | 76 | $dependencies, |
77 | - static function (self $d) { |
|
77 | + static function(self $d) { |
|
78 | 78 | return $d->isValid(); |
79 | 79 | } |
80 | 80 | ) |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public static function mergeUnique(array $existing, array $additional): array |
91 | 91 | { |
92 | 92 | $existingTargets = array_map( |
93 | - static function ($dependency) { |
|
93 | + static function($dependency) { |
|
94 | 94 | return $dependency->getTarget(); |
95 | 95 | }, |
96 | 96 | $existing |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | |
127 | 127 | $diff = []; |
128 | 128 | $rightTargets = array_map( |
129 | - static function ($dependency) { |
|
129 | + static function($dependency) { |
|
130 | 130 | return $dependency->getTarget(); |
131 | 131 | }, |
132 | 132 | $right |
@@ -49,7 +49,7 @@ |
||
49 | 49 | return $other->getMessage() === ''; |
50 | 50 | } |
51 | 51 | |
52 | - return strpos((string) $other->getMessage(), $this->expectedMessage) !== false; |
|
52 | + return strpos((string)$other->getMessage(), $this->expectedMessage) !== false; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |