Skip to content

Commit d92bd28

Browse files
authored
Merge pull request #49 from php-api-clients/dependabot/composer/api-clients/cs-fixer-config-1.1.0
Bump api-clients/cs-fixer-config from 1.0.0 to 1.1.0
2 parents 8ff0a87 + ac6fd14 commit d92bd28

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/TestCase.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@ abstract class TestCase extends PHPUnitTestCase
3232
*/
3333
private $tmpNamespace;
3434

35-
protected function setUp()
35+
protected function setUp(): void
3636
{
3737
parent::setUp();
3838

3939
$this->baseTmpDir = $this->getSysTempDir() .
4040
DIRECTORY_SEPARATOR .
4141
'p-a-c-t-' .
42-
uniqid() .
42+
\uniqid() .
4343
DIRECTORY_SEPARATOR;
4444
$this->tmpDir = $this->baseTmpDir .
45-
uniqid() .
45+
\uniqid() .
4646
DIRECTORY_SEPARATOR;
4747
;
4848

49-
mkdir($this->tmpDir, 0777, true);
50-
$this->tmpNamespace = uniqid('PACTN');
49+
\mkdir($this->tmpDir, 0777, true);
50+
$this->tmpNamespace = \uniqid('PACTN');
5151
}
5252

53-
protected function tearDown()
53+
protected function tearDown(): void
5454
{
5555
parent::tearDown();
5656
$this->rmdir($this->baseTmpDir);
@@ -76,33 +76,33 @@ public function provideTrueFalse(): array
7676
*/
7777
protected function getSysTempDir(): string
7878
{
79-
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
79+
if (\strtoupper(\substr(PHP_OS, 0, 3)) === 'WIN') {
8080
return 'C:\\t\\';
8181
}
8282

83-
return sys_get_temp_dir();
83+
return \sys_get_temp_dir();
8484
}
8585

8686
/**
8787
* @param string $dir
8888
*/
89-
protected function rmdir(string $dir)
89+
protected function rmdir(string $dir): void
9090
{
9191
$directory = new FilesystemIterator($dir);
9292

9393
foreach ($directory as $node) {
94-
if (is_dir($node->getPathname())) {
94+
if (\is_dir($node->getPathname())) {
9595
$this->rmdir($node->getPathname());
9696
continue;
9797
}
9898

99-
if (is_file($node->getPathname())) {
100-
unlink($node->getPathname());
99+
if (\is_file($node->getPathname())) {
100+
\unlink($node->getPathname());
101101
continue;
102102
}
103103
}
104104

105-
rmdir($dir);
105+
\rmdir($dir);
106106
}
107107

108108
/**
@@ -133,7 +133,7 @@ protected function getFilesInDirectory(string $path): array
133133
$directory = new RecursiveIteratorIterator($directory);
134134

135135
foreach ($directory as $node) {
136-
if (!is_file($node->getPathname())) {
136+
if (!\is_file($node->getPathname())) {
137137
continue;
138138
}
139139

tests/TestCaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ final class TestCaseTest extends TestCase
2020
*/
2121
private $previousTemporaryDirectory = '';
2222

23-
protected function setUp()
23+
protected function setUp(): void
2424
{
2525
parent::setUp();
2626
}
2727

28-
protected function tearDown()
28+
protected function tearDown(): void
2929
{
3030
parent::tearDown();
3131
}

0 commit comments

Comments
 (0)