@@ -937,7 +937,7 @@ |
||
937 | 937 | if ($className === '') { |
938 | 938 | do { |
939 | 939 | $className = $prefix . $type . '_' . |
940 | - \substr(\md5(\mt_rand()), 0, 8); |
|
940 | + \substr(\md5(\mt_rand()), 0, 8); |
|
941 | 941 | } while (\class_exists($className, false)); |
942 | 942 | } |
943 | 943 |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | if (\is_array($type)) { |
96 | 96 | $type = \array_unique( |
97 | 97 | \array_map( |
98 | - function ($type) { |
|
98 | + function($type) { |
|
99 | 99 | if ($type === 'Traversable' || |
100 | 100 | $type === '\\Traversable' || |
101 | 101 | $type === '\\Iterator') { |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | */ |
667 | 667 | private function generateMock($type, $explicitMethods, $mockClassName, $callOriginalClone, $callAutoload, $cloneArguments, $callOriginalMethods) |
668 | 668 | { |
669 | - $classTemplate = $this->getTemplate('mocked_class.tpl'); |
|
669 | + $classTemplate = $this->getTemplate('mocked_class.tpl'); |
|
670 | 670 | |
671 | 671 | $additionalInterfaces = []; |
672 | 672 | $cloneTemplate = ''; |
@@ -763,7 +763,7 @@ discard block |
||
763 | 763 | } catch (\ReflectionException $e) { |
764 | 764 | throw new RuntimeException( |
765 | 765 | $e->getMessage(), |
766 | - (int) $e->getCode(), |
|
766 | + (int)$e->getCode(), |
|
767 | 767 | $e |
768 | 768 | ); |
769 | 769 | } |
@@ -777,7 +777,7 @@ discard block |
||
777 | 777 | } catch (\ReflectionException $e) { |
778 | 778 | throw new RuntimeException( |
779 | 779 | $e->getMessage(), |
780 | - (int) $e->getCode(), |
|
780 | + (int)$e->getCode(), |
|
781 | 781 | $e |
782 | 782 | ); |
783 | 783 | } |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | 'configurable' => '[' . \implode( |
892 | 892 | ', ', |
893 | 893 | \array_map( |
894 | - function ($m) { |
|
894 | + function($m) { |
|
895 | 895 | return '\'' . $m . '\''; |
896 | 896 | }, |
897 | 897 | $configurable |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | |
129 | 129 | if ($this->afterMatchBuilderId !== null) { |
130 | 130 | $builder = $invocation->getObject() |
131 | - ->__phpunit_getInvocationMocker() |
|
132 | - ->lookupId($this->afterMatchBuilderId); |
|
131 | + ->__phpunit_getInvocationMocker() |
|
132 | + ->lookupId($this->afterMatchBuilderId); |
|
133 | 133 | |
134 | 134 | if (!$builder) { |
135 | 135 | throw new RuntimeException( |
@@ -183,8 +183,8 @@ discard block |
||
183 | 183 | { |
184 | 184 | if ($this->afterMatchBuilderId !== null) { |
185 | 185 | $builder = $invocation->getObject() |
186 | - ->__phpunit_getInvocationMocker() |
|
187 | - ->lookupId($this->afterMatchBuilderId); |
|
186 | + ->__phpunit_getInvocationMocker() |
|
187 | + ->lookupId($this->afterMatchBuilderId); |
|
188 | 188 | |
189 | 189 | if (!$builder) { |
190 | 190 | throw new RuntimeException( |
@@ -331,7 +331,7 @@ |
||
331 | 331 | } catch (\ReflectionException $e) { |
332 | 332 | throw new RuntimeException( |
333 | 333 | $e->getMessage(), |
334 | - (int) $e->getCode(), |
|
334 | + (int)$e->getCode(), |
|
335 | 335 | $e |
336 | 336 | ); |
337 | 337 | } |
@@ -153,6 +153,6 @@ |
||
153 | 153 | throw $this->parameterVerificationResult; |
154 | 154 | } |
155 | 155 | |
156 | - return (bool) $this->parameterVerificationResult; |
|
156 | + return (bool)$this->parameterVerificationResult; |
|
157 | 157 | } |
158 | 158 | } |
@@ -47,6 +47,6 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | return 'return result of user defined callback ' . $this->callback . |
50 | - ' with the passed arguments'; |
|
50 | + ' with the passed arguments'; |
|
51 | 51 | } |
52 | 52 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | { |
38 | 38 | // PDOException::getCode() is a string. |
39 | 39 | // @see https://php.net/manual/en/class.pdoexception.php#95812 |
40 | - parent::__construct($t->getMessage(), (int) $t->getCode()); |
|
40 | + parent::__construct($t->getMessage(), (int)$t->getCode()); |
|
41 | 41 | $this->setOriginalException($t); |
42 | 42 | } |
43 | 43 |
@@ -1833,7 +1833,7 @@ discard block |
||
1833 | 1833 | $this->output = \ob_get_contents(); |
1834 | 1834 | |
1835 | 1835 | if ($this->outputCallback !== false) { |
1836 | - $this->output = (string) \call_user_func($this->outputCallback, $this->output); |
|
1836 | + $this->output = (string)\call_user_func($this->outputCallback, $this->output); |
|
1837 | 1837 | } |
1838 | 1838 | |
1839 | 1839 | \ob_end_clean(); |
@@ -1921,7 +1921,7 @@ discard block |
||
1921 | 1921 | return new Snapshot( |
1922 | 1922 | $blacklist, |
1923 | 1923 | $backupGlobals, |
1924 | - (bool) $this->backupStaticAttributes, |
|
1924 | + (bool)$this->backupStaticAttributes, |
|
1925 | 1925 | false, |
1926 | 1926 | false, |
1927 | 1927 | false, |
@@ -128,6 +128,6 @@ |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | // Keep BC even if we know that array would not be the expected one |
131 | - return (array) $other; |
|
131 | + return (array)$other; |
|
132 | 132 | } |
133 | 133 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | protected function matches($other): bool |
41 | 41 | { |
42 | - return (string) $other->getCode() === (string) $this->expectedCode; |
|
42 | + return (string)$other->getCode() === (string)$this->expectedCode; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |