1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Paysera\PhpStormHelper\Entity; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @api |
9
|
|
|
*/ |
10
|
|
|
class SuggestedGlobalConfiguration extends GlobalConfiguration |
11
|
|
|
{ |
12
|
6 |
|
public function __construct() |
13
|
|
|
{ |
14
|
6 |
|
parent::__construct(); |
15
|
|
|
|
16
|
|
|
$this |
17
|
6 |
|
->setExternalToolConfigurations([ |
18
|
6 |
|
(new ExternalToolConfiguration()) |
19
|
6 |
|
->setName('Fix CS (debug)') |
20
|
6 |
|
->setCommand('bin/paysera-php-cs-fixer') |
21
|
6 |
|
->setParameters('fix --diff --verbose --config=$ProjectFileDir$/.php_cs --dry-run "$FilePath$"') |
22
|
6 |
|
->setSynchronizationRequired(false) |
23
|
6 |
|
->setConsoleShownAlways(true), |
24
|
6 |
|
(new ExternalToolConfiguration()) |
25
|
6 |
|
->setName('Fix CS (safe)') |
26
|
6 |
|
->setCommand('bin/paysera-php-cs-fixer') |
27
|
6 |
|
->setParameters('fix --config=$ProjectFileDir$/.php_cs_safe "$FilePath$"'), |
28
|
6 |
|
(new ExternalToolConfiguration()) |
29
|
6 |
|
->setName('Fix CS (risky)') |
30
|
6 |
|
->setCommand('bin/paysera-php-cs-fixer') |
31
|
6 |
|
->setParameters('fix --config=$ProjectFileDir$/.php_cs_risky "$FilePath$"'), |
32
|
6 |
|
(new ExternalToolConfiguration()) |
33
|
6 |
|
->setName('Fix CS (everything)') |
34
|
6 |
|
->setCommand('bin/paysera-php-cs-fixer') |
35
|
6 |
|
->setParameters('fix --config=$ProjectFileDir$/.php_cs "$FilePath$"'), |
36
|
|
|
]) |
37
|
6 |
|
->setPlugins([ |
38
|
6 |
|
'https://plugins.jetbrains.com/files/7320/50706/PHP_Annotations-5.3.3.zip', |
39
|
|
|
'https://plugins.jetbrains.com/files/7219/60266/Symfony_Plugin-0.17.172.zip', |
40
|
|
|
'https://plugins.jetbrains.com/files/7495/48036/idea-gitignore-3.0.0.141.zip', |
41
|
|
|
'https://plugins.jetbrains.com/files/9525/49193/dotenv.jar', |
42
|
|
|
'https://plugins.jetbrains.com/files/4230/60154/bashsupport-1.7.7.zip', |
43
|
|
|
'https://plugins.jetbrains.com/files/8459/37865/raml-plugin-0.13.zip', |
44
|
|
|
'https://plugins.jetbrains.com/files/7792/35585/intellij-ansible-0.9.5.zip', |
45
|
|
|
]) |
46
|
|
|
; |
47
|
6 |
|
} |
48
|
|
|
} |
49
|
|
|
|