Skip to content

Commit 130ae95

Browse files
committed
declare on single line with opening PHP tag
1 parent 09b81c8 commit 130ae95

File tree

378 files changed

+378
-1134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+378
-1134
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php declare(strict_types=1);
22

3-
use function MLL\PhpCsFixerConfig\config;
4-
53
$finder = PhpCsFixer\Finder::create()
64
->notPath('vendor')
75
->in(__DIR__)
86
->name('*.php')
97
->ignoreDotFiles(true)
108
->ignoreVCS(true);
119

12-
return config($finder, [
10+
return \MLL\PhpCsFixerConfig\risky($finder, [
1311
'no_superfluous_phpdoc_tags' => [
1412
'allow_mixed' => true,
1513
],

benchmarks/BuildSchemaBench.php

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

53
namespace GraphQL\Benchmarks;
64

benchmarks/HugeSchemaBench.php

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

53
namespace GraphQL\Benchmarks;
64

benchmarks/LexerBench.php

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

53
namespace GraphQL\Benchmarks;
64

benchmarks/StarWarsBench.php

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

53
namespace GraphQL\Benchmarks;
64

benchmarks/Utils/QueryGenerator.php

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

53
namespace GraphQL\Benchmarks\Utils;
64

benchmarks/Utils/SchemaGenerator.php

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

53
namespace GraphQL\Benchmarks\Utils;
64

benchmarks/shim.php

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

53
use GraphQL\Benchmarks\HugeSchemaBench;
64
use GraphQL\Benchmarks\LexerBench;

examples/00-hello-world/graphql.php

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

53
// Run local test server
64
// php -S localhost:8080 graphql.php

examples/01-blog/Blog/AppContext.php

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

53
namespace GraphQL\Examples\Blog;
64

0 commit comments

Comments
 (0)