Skip to content

Commit ebb676d

Browse files
committed
Add strict types
1 parent ab245ca commit ebb676d

14 files changed

+31
-1
lines changed

src/Connector/NetteConnector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Connector;
46

57
use Arachne\Codeception\Http\Request as HttpRequest;

src/Console/RunTestInput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Console;
46

57
use Symfony\Component\Console\Input\ArgvInput;

src/DI/HttpExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\DI;
46

57
use Nette\DI\CompilerExtension;

src/Http/Request.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Http;
46

57
use Nette\Http\IRequest;

src/Http/Response.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Http;
46

57
use Nette\Http\Helpers;

src/Module/NetteApplicationModule.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Module;
46

57
use Arachne\Codeception\Connector\NetteConnector;

src/Module/NetteDIModule.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Module;
46

57
use Codeception\Module;
@@ -157,7 +159,9 @@ private function createContainer()
157159
private function clearTempDir(): void
158160
{
159161
$tempDir = $this->path.'/'.$this->config['tempDir'];
160-
FileSystem::delete(realpath($tempDir));
162+
if (is_dir($tempDir)) {
163+
FileSystem::delete(realpath($tempDir));
164+
}
161165
FileSystem::createDir($tempDir);
162166
}
163167

src/Tracy/Logger.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Arachne\Codeception\Tracy;
46

57
use Codeception\Event\FailEvent;

tests/_bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
require_once __DIR__.'/../vendor/autoload.php';

tests/functional/src/ApplicationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Tests\Functional;
46

57
use Codeception\Test\Unit;

tests/functional/src/DITest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Tests\Functional;
46

57
use Codeception\Test\Unit;

tests/functional/src/Fixtures/ArticlePresenter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Tests\Functional\Fixtures;
46

57
use Nette\Application\UI\Presenter;

tests/functional/src/Fixtures/RouterFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Tests\Functional\Fixtures;
46

57
use Nette\Application\IRouter;

tests/runner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use Arachne\Codeception\Console\RunTestInput;
46
use Codeception\Codecept;
57
use Codeception\Command\Run;

0 commit comments

Comments
 (0)