Skip to content

Commit 8b1ac29

Browse files
authored
Merge pull request #41 from sclable/chore/php-cs-fixer
chore(dependencies): update php-cs-fixer to version 3.85.1
2 parents 4fbdaba + 0732b17 commit 8b1ac29

27 files changed

+1199
-730
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
vendor/
22
build/
33
.idea/
4-
.php_cs.cache
4+
.php-cs-fixer.cache
55
.phpunit.result.cache

.php_cs renamed to .php-cs-fixer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'combine_consecutive_unsets' => true,
77
'no_useless_else' => true,
88
'no_useless_return' => true,
9-
'ordered_imports' => ['sortAlgorithm' => 'length'],
9+
'ordered_imports' => ['sort_algorithm' => 'length'],
1010
'concat_space' => [
1111
'spacing' => 'one',
1212
],
@@ -19,7 +19,9 @@
1919
'phpdoc_order' => true,
2020
'phpdoc_types_order' => true,
2121
'general_phpdoc_annotation_remove' => [
22-
'author'
22+
'annotations' => [
23+
'author',
24+
],
2325
],
2426
'void_return' => false,
2527
'single_trait_insert_per_statement' => false,
@@ -34,7 +36,7 @@
3436
],
3537
],
3638
'header_comment' => [
37-
'commentType' => 'PHPDoc',
39+
'comment_type' => 'PHPDoc',
3840
'header' => 'This file is part of the Sclable Xml Lint Package.
3941
4042
@copyright (c) ' . date('Y') . ' Sclable Business Solutions GmbH
@@ -46,7 +48,7 @@
4648
],
4749
];
4850

49-
return PhpCsFixer\Config::create()
51+
return (new PhpCsFixer\Config())
5052
->setFinder(
5153
PhpCsFixer\Finder::create()
5254
->in(__DIR__ . '/src')

src/php/bootstrap.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
22

3-
// @codingStandardsIgnoreFile
43
/**
54
* This file is part of the Sclable Xml Lint Package.
65
*
7-
* @copyright (c) 2020 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
87
*
98
* For the full copyright and license information, please view the LICENSE
109
* file that was distributed with this source code.

src/php/console/application/Application.php

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -25,12 +25,9 @@
2525
*/
2626
class Application extends \Symfony\Component\Console\Application
2727
{
28-
const VERSION = 'dev';
29-
const NAME = 'Sclable Xml Lint';
28+
public const VERSION = 'dev';
29+
public const NAME = 'Sclable Xml Lint';
3030

31-
/**
32-
* {@inheritdoc}
33-
*/
3431
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
3532
{
3633
$name = self::NAME;
@@ -39,9 +36,6 @@ public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
3936
$this->setDefaultCommand(LintCommand::COMMAND_NAME);
4037
}
4138

42-
/**
43-
* {@inheritdoc}
44-
*/
4539
protected function getDefaultCommands(): array
4640
{
4741
parent::getDefaultCommands();
@@ -53,8 +47,6 @@ protected function getDefaultCommands(): array
5347
}
5448

5549
/**
56-
* {@inheritdoc}
57-
*
5850
* @SuppressWarnings(PHPMD.Superglobals)
5951
*/
6052
public function run(?InputInterface $input = null, ?OutputInterface $output = null): int
@@ -71,9 +63,6 @@ public function run(?InputInterface $input = null, ?OutputInterface $output = nu
7163
return parent::run($input, $output);
7264
}
7365

74-
/**
75-
* {@inheritdoc}
76-
*/
7766
protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output): int
7867
{
7968
if ('version' != $command->getName()) {

src/php/console/command/Command.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -22,8 +22,6 @@ class Command extends BaseCommand
2222
private $synopsis = [];
2323

2424
/**
25-
* {@inheritdoc}
26-
*
2725
* @SuppressWarnings(PHPMD.Superglobals)
2826
*/
2927
public function getSynopsis($short = false): string

src/php/console/command/HelpCommand.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -27,9 +27,6 @@
2727
*/
2828
class HelpCommand extends \Symfony\Component\Console\Command\HelpCommand
2929
{
30-
/**
31-
* {@inheritdoc}
32-
*/
3330
protected function configure()
3431
{
3532
$this->ignoreValidationErrors();
@@ -57,9 +54,6 @@ protected function configure()
5754
);
5855
}
5956

60-
/**
61-
* {@inheritdoc}
62-
*/
6357
protected function execute(InputInterface $input, OutputInterface $output): int
6458
{
6559
$this->setCommand(

src/php/console/command/LintCommand.php

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -30,12 +30,12 @@
3030
*/
3131
class LintCommand extends Command
3232
{
33-
const COMMAND_NAME = 'lint';
34-
const ARGUMENT_FILE = 'file';
35-
const OPTION_RECURSIVE = 'recursive';
36-
const OPTION_EXCLUDE = 'exclude';
37-
const OPTION_PATTERN = 'pattern';
38-
const OPTION_NO_XSD = 'skip-xsd';
33+
public const COMMAND_NAME = 'lint';
34+
public const ARGUMENT_FILE = 'file';
35+
public const OPTION_RECURSIVE = 'recursive';
36+
public const OPTION_EXCLUDE = 'exclude';
37+
public const OPTION_PATTERN = 'pattern';
38+
public const OPTION_NO_XSD = 'skip-xsd';
3939

4040
/** @var OutputInterface */
4141
protected $output;
@@ -52,9 +52,6 @@ class LintCommand extends Command
5252
/** @var float */
5353
private $start;
5454

55-
/**
56-
* {@inheritdoc}
57-
*/
5855
protected function configure()
5956
{
6057
$this
@@ -94,9 +91,6 @@ protected function configure()
9491
;
9592
}
9693

97-
/**
98-
* {@inheritdoc}
99-
*/
10094
protected function execute(InputInterface $input, OutputInterface $output): int
10195
{
10296
$this->start = microtime(true);

src/php/data/FileReport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/php/data/ValidationProblem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/php/validator/LintValidation.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the Sclable Xml Lint Package.
55
*
6-
* @copyright (c) 2022 Sclable Business Solutions GmbH
6+
* @copyright (c) 2025 Sclable Business Solutions GmbH
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -31,9 +31,6 @@ public function __construct(LibXmlErrorFormatter $formatter)
3131
libxml_use_internal_errors(true);
3232
}
3333

34-
/**
35-
* {@inheritdoc}
36-
*/
3734
public function validateFile(FileReport $report)
3835
{
3936
$realPath = $report->getFile()->getRealPath();

0 commit comments

Comments
 (0)