Skip to content

Commit

Permalink
Add strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Feb 8, 2017
1 parent ab245ca commit ebb676d
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Connector/NetteConnector.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Connector;

use Arachne\Codeception\Http\Request as HttpRequest;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/RunTestInput.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Console;

use Symfony\Component\Console\Input\ArgvInput;
Expand Down
2 changes: 2 additions & 0 deletions src/DI/HttpExtension.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\DI;

use Nette\DI\CompilerExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Request.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Http;

use Nette\Http\IRequest;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Response.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Http;

use Nette\Http\Helpers;
Expand Down
2 changes: 2 additions & 0 deletions src/Module/NetteApplicationModule.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Module;

use Arachne\Codeception\Connector\NetteConnector;
Expand Down
6 changes: 5 additions & 1 deletion src/Module/NetteDIModule.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Module;

use Codeception\Module;
Expand Down Expand Up @@ -157,7 +159,9 @@ private function createContainer()
private function clearTempDir(): void
{
$tempDir = $this->path.'/'.$this->config['tempDir'];
FileSystem::delete(realpath($tempDir));
if (is_dir($tempDir)) {
FileSystem::delete(realpath($tempDir));
}
FileSystem::createDir($tempDir);
}

Expand Down
2 changes: 2 additions & 0 deletions src/Tracy/Logger.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Arachne\Codeception\Tracy;

use Codeception\Event\FailEvent;
Expand Down
2 changes: 2 additions & 0 deletions tests/_bootstrap.php
@@ -1,3 +1,5 @@
<?php

declare(strict_types=1);

require_once __DIR__.'/../vendor/autoload.php';
2 changes: 2 additions & 0 deletions tests/functional/src/ApplicationTest.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\Functional;

use Codeception\Test\Unit;
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/src/DITest.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\Functional;

use Codeception\Test\Unit;
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/src/Fixtures/ArticlePresenter.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\Functional\Fixtures;

use Nette\Application\UI\Presenter;
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/src/Fixtures/RouterFactory.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\Functional\Fixtures;

use Nette\Application\IRouter;
Expand Down
2 changes: 2 additions & 0 deletions tests/runner.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Arachne\Codeception\Console\RunTestInput;
use Codeception\Codecept;
use Codeception\Command\Run;
Expand Down

0 comments on commit ebb676d

Please sign in to comment.