Skip to content

Commit 5469a03

Browse files
authored
Update ScriptHandler. (#8)
1 parent efe180b commit 5469a03

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.php_cs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
return PhpCsFixer\Config::create()
4+
->setRules(
5+
[
6+
'@PSR2' => true,
7+
'array_syntax' => ['syntax' => 'short'],
8+
]
9+
)
10+
->setUsingCache(false);

phpqa.yml

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ application:
1717
php-cs-fixer:
1818
enabled: true
1919
exception: false
20-
file:
21-
config-file: .php_cs
22-
single-execution: false
2320
options:
2421
level: psr2
2522
arguments:

src/Plugin/ScriptHandler.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ public static function dump(Event $event)
6666

6767
if ($configData) {
6868
file_put_contents(
69-
// $directory . '/extend.config.yml',
70-
$directory . '/extend.yml',
69+
$directory . '/extend.console.config.yml',
7170
$yaml->dump($configData, false, 0, true)
7271
);
7372
}
7473

7574
if ($servicesData) {
7675
file_put_contents(
77-
$directory . '/extend.services.yml',
76+
$directory . '/extend.console.services.yml',
7877
$yaml->dump($servicesData, false, 0, true)
7978
);
8079
}

0 commit comments

Comments
 (0)