Skip to content

Commit 58204bb

Browse files
committed
Clean composer.json
1 parent b4b8b09 commit 58204bb

15 files changed

+335
-2357
lines changed

.twig_cs.dist.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
declare(strict_types=1);
44

5-
use FriendsOfTwig\Twigcs;
5+
use FriendsOfTwig\Twigcs\Finder\TemplateFinder;
6+
use FriendsOfTwig\Twigcs\Config\Config;
7+
use Glpi\Tools\GlpiTwigRuleset;
68

7-
$finder = Twigcs\Finder\TemplateFinder::create()
9+
$finder = TemplateFinder::create()
810
->in(__DIR__ . '/templates')->in(__DIR__ . '/templates/components')
911
->name('*.html.twig')
1012
->ignoreVCSIgnored(true);
1113

12-
return Twigcs\Config\Config::create()
14+
return Config::create()
1315
->setFinder($finder)
14-
->setRuleSet(\Glpi\Tools\GlpiTwigRuleset::class)
16+
->setRuleSet(GlpiTwigRuleset::class)
1517
;

ajax/targets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
case 'Profile':
5555
Profile::dropdown(['name' => 'items_id',
56-
'toadd' => [-1 => __('All', 'news')],
56+
'toadd' => [-1 => __s('All', 'news')],
5757
]);
5858
break;
5959
}

composer.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@
33
"php": ">=8.2"
44
},
55
"require-dev": {
6-
"friendsofphp/php-cs-fixer": "^3.86",
7-
"friendsoftwig/twigcs": "^6.1",
8-
"glpi-project/tools": "^0.8.0",
9-
"php-parallel-lint/php-parallel-lint": "^1.4",
10-
"phpstan/extension-installer": "^1.4",
11-
"phpstan/phpstan": "^2.1",
12-
"phpstan/phpstan-deprecation-rules": "^2.0"
6+
"glpi-project/tools": "^0.8.0"
137
},
148
"config": {
159
"optimize-autoloader": true,
1610
"platform": {
1711
"php": "8.2.99"
1812
},
19-
"sort-packages": true,
20-
"allow-plugins": {
21-
"phpstan/extension-installer": true
22-
}
13+
"sort-packages": true
2314
},
2415
"autoload-dev": {
2516
"psr-4": {

0 commit comments

Comments
 (0)