1 | <?php |
||
28 | final class PhpstormProjectConfigure implements ActionInterface, VarAwareInterface |
||
29 | { |
||
30 | use VarAwareTrait, |
||
31 | FilesystemAwareTrait; |
||
32 | |||
33 | const IDEA_PATH = '.idea'; |
||
34 | const COMPOSER_PROJECT_PATH = 'composer'; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 2 | public function execute() |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 2 | public function canExecute(): bool |
|
56 | |||
57 | /** |
||
58 | * @return void |
||
59 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
60 | */ |
||
61 | 1 | private function removeComposerPluginDir() |
|
69 | |||
70 | /** |
||
71 | * @return void |
||
72 | * @throws RuntimeException |
||
73 | */ |
||
74 | 1 | private function markSourceDirectories() |
|
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | 2 | private function getIdeaDirectory(): string |
|
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | 1 | private function getProjectFile(): string |
|
121 | |||
122 | /** |
||
123 | * @param string $name Config name |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | 1 | private function getIdeaConfigFile(string $name): string |
|
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | 1 | private function getNamespace(): string |
|
139 | |||
140 | /** |
||
141 | * @param string $variable |
||
142 | * |
||
143 | * @return string |
||
144 | */ |
||
145 | 1 | private function fixNamespaceVariable(string $variable): string |
|
149 | |||
150 | /** |
||
151 | * @return string |
||
152 | */ |
||
153 | 1 | private function getTestsNamespace(): string |
|
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | 4 | public function getPriority(): int |
|
165 | } |
||
166 |