Skip to content

Commit

Permalink
putting declare strict on same line as <?php
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jul 12, 2016
1 parent 2934e08 commit b46217f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/ResourceGenerator.php
Expand Up @@ -441,8 +441,8 @@ protected function applyPsr2($fileName)
file_put_contents(
$fileName,
str_replace(
'<?php',
'<?php' . PHP_EOL . 'declare(strict_types=1);',
'<?php ',
'<?php declare(strict_types=1);',
file_get_contents(
$fileName
)
Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Async/Project.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource\Async;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Async/Project/Build.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource\Async\Project;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Project.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Project/Build.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource\Project;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Project/BuildInterface.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource\Project;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/ProjectInterface.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Sync/Project.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource\Sync;

Expand Down
3 changes: 1 addition & 2 deletions tests/resources/Sync/Project/Build.php
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
<?php declare(strict_types=1);

namespace Example\Client\Resource\Sync\Project;

Expand Down

0 comments on commit b46217f

Please sign in to comment.