@@ -23,7 +23,7 @@ |
||
23 | 23 | public function patch( |
24 | 24 | EnvironmentInterface $environment |
25 | 25 | ): void { |
26 | - if (! empty($environment->getIdeDefaultConfigFilesystem()->getRoot())) { |
|
26 | + if (!empty($environment->getIdeDefaultConfigFilesystem()->getRoot())) { |
|
27 | 27 | $this->copyDirectory( |
28 | 28 | $environment->getDefaultsFilesystem(), |
29 | 29 | $environment->getIdeDefaultConfigFilesystem(), |
@@ -108,7 +108,7 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | $phpStormDefaultPaths = array_reverse(glob("$home/.[pP]hp[sS]torm201*/config/")); |
111 | - if (! empty($phpStormDefaultPaths)) { |
|
111 | + if (!empty($phpStormDefaultPaths)) { |
|
112 | 112 | $phpStormDefaultPath = reset($phpStormDefaultPaths); |
113 | 113 | } |
114 | 114 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function __construct($root) |
27 | 27 | { |
28 | - if (! empty($root)) { |
|
28 | + if (!empty($root)) { |
|
29 | 29 | $this->root = rtrim($root, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
30 | 30 | } |
31 | 31 | } |
@@ -138,9 +138,9 @@ |
||
138 | 138 | $phpStormDefaultPaths = array_reverse(glob("$home/.[pP]hp[sS]torm201*/config/")); |
139 | 139 | $phpStormNewDefaultPaths = array_reverse(glob("$home/.config/JetBrains/[pP]hp[sS]torm201*/")); |
140 | 140 | |
141 | - if (! empty($phpStormDefaultPaths)) { |
|
141 | + if (!empty($phpStormDefaultPaths)) { |
|
142 | 142 | $phpStormDefaultPath = reset($phpStormDefaultPaths); |
143 | - } elseif(! empty($phpStormNewDefaultPaths)) { |
|
143 | + } elseif (!empty($phpStormNewDefaultPaths)) { |
|
144 | 144 | $phpStormDefaultPath = reset($phpStormNewDefaultPaths); |
145 | 145 | } |
146 | 146 |