Skip to content

Commit b46217f

Browse files
committed
putting declare strict on same line as <?php
1 parent 2934e08 commit b46217f

File tree

9 files changed

+10
-18
lines changed

9 files changed

+10
-18
lines changed

src/ResourceGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ protected function applyPsr2($fileName)
441441
file_put_contents(
442442
$fileName,
443443
str_replace(
444-
'<?php',
445-
'<?php' . PHP_EOL . 'declare(strict_types=1);',
444+
'<?php ',
445+
'<?php declare(strict_types=1);',
446446
file_get_contents(
447447
$fileName
448448
)

tests/resources/Async/Project.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource\Async;
54

tests/resources/Async/Project/Build.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource\Async\Project;
54

tests/resources/Project.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource;
54

tests/resources/Project/Build.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource\Project;
54

tests/resources/Project/BuildInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource\Project;
54

tests/resources/ProjectInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource;
54

tests/resources/Sync/Project.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource\Sync;
54

tests/resources/Sync/Project/Build.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php
2-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
32

43
namespace Example\Client\Resource\Sync\Project;
54

0 commit comments

Comments
 (0)