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