@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | } |
348 | 348 | } |
349 | 349 | |
350 | - return $message . $e->getMessage(); |
|
350 | + return $message.$e->getMessage(); |
|
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
@@ -362,15 +362,15 @@ discard block |
||
362 | 362 | $e->getPreviousWrapped() : $e->getPrevious(); |
363 | 363 | |
364 | 364 | while ($previous) { |
365 | - $stackTrace .= "\nCaused by\n" . |
|
366 | - TestFailure::exceptionToString($previous) . "\n" . |
|
365 | + $stackTrace .= "\nCaused by\n". |
|
366 | + TestFailure::exceptionToString($previous)."\n". |
|
367 | 367 | Filter::getFilteredStacktrace($previous); |
368 | 368 | |
369 | 369 | $previous = $previous instanceof ExceptionWrapper ? |
370 | 370 | $previous->getPreviousWrapped() : $previous->getPrevious(); |
371 | 371 | } |
372 | 372 | |
373 | - return ' ' . \str_replace("\n", "\n ", $stackTrace); |
|
373 | + return ' '.\str_replace("\n", "\n ", $stackTrace); |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | /** |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | protected function startClass($name) |
23 | 23 | { |
24 | - $this->write($this->currentTestClassPrettified . "\n"); |
|
24 | + $this->write($this->currentTestClassPrettified."\n"); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->write(' [ ] '); |
39 | 39 | } |
40 | 40 | |
41 | - $this->write($name . "\n"); |
|
41 | + $this->write($name."\n"); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -181,7 +181,7 @@ |
||
181 | 181 | |
182 | 182 | $groups = \array_filter( |
183 | 183 | $test->getGroups(), |
184 | - function ($group) { |
|
184 | + function($group) { |
|
185 | 185 | if ($group == 'small' || $group == 'medium' || $group == 'large') { |
186 | 186 | return false; |
187 | 187 | } |
@@ -100,7 +100,7 @@ |
||
100 | 100 | |
101 | 101 | for ($i = 0; $i < $max; $i++) { |
102 | 102 | if ($i > 0 && \ord($name[$i]) >= 65 && \ord($name[$i]) <= 90) { |
103 | - $buffer .= ' ' . \strtolower($name[$i]); |
|
103 | + $buffer .= ' '.\strtolower($name[$i]); |
|
104 | 104 | } else { |
105 | 105 | $isNumeric = \is_numeric($name[$i]); |
106 | 106 |
@@ -282,7 +282,7 @@ |
||
282 | 282 | } |
283 | 283 | |
284 | 284 | if ($test->usesDataProvider()) { |
285 | - $this->currentTestMethodPrettified .= ' ' . $test->dataDescription(); |
|
285 | + $this->currentTestMethodPrettified .= ' '.$test->dataDescription(); |
|
286 | 286 | } |
287 | 287 | } |
288 | 288 |
@@ -316,11 +316,11 @@ discard block |
||
316 | 316 | 'exclude' => [] |
317 | 317 | ]; |
318 | 318 | |
319 | - foreach ($this->xpath->query($root . '/include/group') as $group) { |
|
319 | + foreach ($this->xpath->query($root.'/include/group') as $group) { |
|
320 | 320 | $groups['include'][] = (string) $group->textContent; |
321 | 321 | } |
322 | 322 | |
323 | - foreach ($this->xpath->query($root . '/exclude/group') as $group) { |
|
323 | + foreach ($this->xpath->query($root.'/exclude/group') as $group) { |
|
324 | 324 | $groups['exclude'][] = (string) $group->textContent; |
325 | 325 | } |
326 | 326 | |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | } |
478 | 478 | |
479 | 479 | foreach (['var', 'env', 'post', 'get', 'cookie', 'server', 'files', 'request'] as $array) { |
480 | - foreach ($this->xpath->query('php/' . $array) as $var) { |
|
480 | + foreach ($this->xpath->query('php/'.$array) as $var) { |
|
481 | 481 | $name = (string) $var->getAttribute('name'); |
482 | 482 | $value = (string) $var->getAttribute('value'); |
483 | 483 | $verbatim = false; |
@@ -514,8 +514,8 @@ discard block |
||
514 | 514 | if (!empty($configuration['include_path'])) { |
515 | 515 | \ini_set( |
516 | 516 | 'include_path', |
517 | - \implode(PATH_SEPARATOR, $configuration['include_path']) . |
|
518 | - PATH_SEPARATOR . |
|
517 | + \implode(PATH_SEPARATOR, $configuration['include_path']). |
|
518 | + PATH_SEPARATOR. |
|
519 | 519 | \ini_get('include_path') |
520 | 520 | ); |
521 | 521 | } |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | break; |
553 | 553 | |
554 | 554 | default: |
555 | - $target = &$GLOBALS['_' . \strtoupper($array)]; |
|
555 | + $target = &$GLOBALS['_'.\strtoupper($array)]; |
|
556 | 556 | |
557 | 557 | break; |
558 | 558 | } |
@@ -1193,7 +1193,7 @@ discard block |
||
1193 | 1193 | return $path; |
1194 | 1194 | } |
1195 | 1195 | |
1196 | - $file = \dirname($this->filename) . DIRECTORY_SEPARATOR . $path; |
|
1196 | + $file = \dirname($this->filename).DIRECTORY_SEPARATOR.$path; |
|
1197 | 1197 | |
1198 | 1198 | if ($useIncludePath && !\file_exists($file)) { |
1199 | 1199 | $includePathFile = \stream_resolve_include_path($path); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of PHPUnit. |
4 | 4 | * |
@@ -106,7 +106,7 @@ |
||
106 | 106 | if (DIRECTORY_SEPARATOR === '\\') { |
107 | 107 | // tempnam() prefix is limited to first 3 chars. |
108 | 108 | // @see http://php.net/manual/en/function.tempnam.php |
109 | - self::$directories[] = \sys_get_temp_dir() . '\\PHP'; |
|
109 | + self::$directories[] = \sys_get_temp_dir().'\\PHP'; |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | if (!\is_string($actual)) { |
54 | - throw new Exception('Could not load XML from ' . \gettype($actual)); |
|
54 | + throw new Exception('Could not load XML from '.\gettype($actual)); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | if ($actual === '') { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | foreach (\libxml_get_errors() as $error) { |
90 | - $message .= "\n" . $error->message; |
|
90 | + $message .= "\n".$error->message; |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | \libxml_use_internal_errors($internal); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | \sprintf( |
104 | 104 | 'Could not load "%s".%s', |
105 | 105 | $filename, |
106 | - $message != '' ? "\n" . $message : '' |
|
106 | + $message != '' ? "\n".$message : '' |
|
107 | 107 | ) |
108 | 108 | ); |
109 | 109 | } |