Skip to content

Commit d4d7277

Browse files
dependabot-preview[bot]LeSuisse
authored andcommitted
Bump doctrine/coding-standard from 7.0.2 to 8.0.0
Bumps [doctrine/coding-standard](https://github.com/doctrine/coding-standard) from 7.0.2 to 8.0.0. - [Release notes](https://github.com/doctrine/coding-standard/releases) - [Commits](doctrine/coding-standard@7.0.2...8.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]>
1 parent 37d3b1d commit d4d7277

Some content is hidden

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

48 files changed

+206
-181
lines changed

.github/workflows/CI.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
2323
git submodule sync
2424
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --depth=1
25-
- uses: shivammathur/setup-php@1.8.2
25+
- uses: shivammathur/setup-php@2.2.2
2626
with:
2727
php-version: ${{ matrix.php-versions }}
2828
extension: mbstring
@@ -43,7 +43,7 @@ jobs:
4343
name: Code quality
4444
steps:
4545
- uses: actions/checkout@v2
46-
- uses: shivammathur/setup-php@1.8.2
46+
- uses: shivammathur/setup-php@2.2.2
4747
with:
4848
php-version: '7.4'
4949
extension: mbstring

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"require-dev": {
1616
"symfony/yaml": "^4.1 || ^5.0",
17-
"doctrine/coding-standard": "^6.0 || ^7.0",
17+
"doctrine/coding-standard": "^8.0",
1818
"vimeo/psalm": "^3.0",
1919
"phpunit/phpunit": "^8.0 || ^9.0",
2020
"psalm/plugin-phpunit": "^0.5.5 || ^0.6.0 || ^0.7 || ^0.8 || ^0.9 || ^0.10"

composer.lock

+46-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Babelfish/Babelfish.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Babelfish\Strategy\Strategy;
1717
use Babelfish\Strategy\Tokenizer\Tokenizer;
1818
use Babelfish\Strategy\XML;
19+
1920
use function count;
2021

2122
class Babelfish
@@ -28,7 +29,7 @@ public function __construct(Strategy ...$strategies)
2829
$this->strategies = $strategies;
2930
}
3031

31-
public static function getWithDefaultStrategies() : self
32+
public static function getWithDefaultStrategies(): self
3233
{
3334
$only_keep_language_already_candidate_filter = new OnlyKeepLanguageAlreadyCandidatesFilter();
3435

@@ -43,7 +44,7 @@ public static function getWithDefaultStrategies() : self
4344
);
4445
}
4546

46-
public function getLanguage(SourceFile $file) : ?Language
47+
public function getLanguage(SourceFile $file): ?Language
4748
{
4849
$candidates = [];
4950
foreach ($this->strategies as $strategy) {

src/Babelfish/File/ContentFile.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public function __construct(string $name, string $content)
1919
$this->content = $content;
2020
}
2121

22-
public function getName() : string
22+
public function getName(): string
2323
{
2424
return $this->name;
2525
}
2626

2727
/**
2828
* @return string[]
2929
*/
30-
public function getLines() : array
30+
public function getLines(): array
3131
{
3232
return explode("\n", $this->content);
3333
}

src/Babelfish/File/SourceFile.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
interface SourceFile
88
{
9-
public function getName() : string;
9+
public function getName(): string;
1010

1111
/**
1212
* @return string[]
1313
*/
14-
public function getLines() : array;
14+
public function getLines(): array;
1515
}

src/Babelfish/Internal/DataDumper.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Babelfish\Internal;
66

77
use RuntimeException;
8+
89
use function dirname;
910
use function escapeshellarg;
1011
use function exec;
@@ -25,7 +26,7 @@ public function __construct(Dump ...$dumps)
2526
$this->dumps = $dumps;
2627
}
2728

28-
public function dump(string $linguist_repo_path) : void
29+
public function dump(string $linguist_repo_path): void
2930
{
3031
$commit_reference = $this->getCommitReference($linguist_repo_path);
3132

@@ -40,7 +41,7 @@ public function dump(string $linguist_repo_path) : void
4041
/**
4142
* @param mixed[] $exported_values
4243
*/
43-
private function save(array $exported_values, string $output_file, string $linguist_commit_reference) : void
44+
private function save(array $exported_values, string $output_file, string $linguist_commit_reference): void
4445
{
4546
$marshalled_value = var_export($exported_values, true);
4647

@@ -65,7 +66,7 @@ private function save(array $exported_values, string $output_file, string $lingu
6566
}
6667
}
6768

68-
private function getCommitReference(string $linguist_repo_path) : string
69+
private function getCommitReference(string $linguist_repo_path): string
6970
{
7071
$commit_reference = exec('git -C ' . escapeshellarg($linguist_repo_path) . ' rev-parse HEAD');
7172

src/Babelfish/Internal/Dump.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public function __construct(string $output_path, Generator $generator)
1919
$this->generator = $generator;
2020
}
2121

22-
public function getOutputPath() : string
22+
public function getOutputPath(): string
2323
{
2424
return $this->output_path;
2525
}
2626

27-
public function getGenerator() : Generator
27+
public function getGenerator(): Generator
2828
{
2929
return $this->generator;
3030
}

src/Babelfish/Internal/Generator/Alias.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Babelfish\Internal\Generator;
66

77
use Babelfish\Internal\Parser\Parser;
8+
89
use function str_replace;
910
use function strtolower;
1011

@@ -28,7 +29,7 @@ public function __construct(string $linguist_file, Parser $parser)
2829
*
2930
* @psalm-return array<string|string>
3031
*/
31-
public function generate(string $linguist_repo_path) : array
32+
public function generate(string $linguist_repo_path): array
3233
{
3334
/** @psalm-var array<string, array{aliases?: string[]}> $languages */
3435
$languages = $this->parser->getParsedContent(
@@ -51,7 +52,7 @@ public function generate(string $linguist_repo_path) : array
5152
return $exported_aliases;
5253
}
5354

54-
private function formatKey(string $alias) : string
55+
private function formatKey(string $alias): string
5556
{
5657
return str_replace(' ', '-', strtolower($alias));
5758
}

src/Babelfish/Internal/Generator/ClassifierSample.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use RecursiveDirectoryIterator;
1111
use RecursiveIteratorIterator;
1212
use SplFileInfo;
13+
1314
use function basename;
1415
use function dirname;
1516

@@ -20,7 +21,7 @@ final class ClassifierSample implements Generator
2021
/**
2122
* @return mixed[]
2223
*/
23-
public function generate(string $linguist_repository_path) : array
24+
public function generate(string $linguist_repository_path): array
2425
{
2526
$samples = [];
2627

0 commit comments

Comments
 (0)