@@ -96,7 +96,7 @@ public static function getSubscribedEvents()
96
96
*/
97
97
public function onDependenciesChangedEvent ()
98
98
{
99
- if ($ this ->isPHPCodeSnifferInstalled () === true ) {
99
+ if ($ this ->isPHPCodeSnifferInstalled () === true ) {
100
100
$ installPathCleaned = $ this ->cleanInstalledPaths ();
101
101
$ installPathUpdated = $ this ->updateInstalledPaths ();
102
102
@@ -115,18 +115,19 @@ public function onDependenciesChangedEvent()
115
115
*/
116
116
private function loadInstalledPaths ()
117
117
{
118
-
119
- $ output = $ this ->processBuilder
120
- ->setArguments (['--config-show ' , 'installed_paths ' ])
121
- ->getProcess ()
122
- ->mustRun ()
123
- ->getOutput ();
124
-
125
- $ phpcsInstalledPaths = str_replace ('installed_paths: ' , '' , $ output );
126
- $ phpcsInstalledPaths = trim ($ phpcsInstalledPaths );
127
-
128
- if ($ phpcsInstalledPaths !== '' ) {
129
- $ this ->installedPaths = explode (', ' , $ phpcsInstalledPaths );
118
+ if ($ this ->isPHPCodeSnifferInstalled () === true ) {
119
+ $ output = $ this ->processBuilder
120
+ ->setArguments (['--config-show ' , 'installed_paths ' ])
121
+ ->getProcess ()
122
+ ->mustRun ()
123
+ ->getOutput ();
124
+
125
+ $ phpcsInstalledPaths = str_replace ('installed_paths: ' , '' , $ output );
126
+ $ phpcsInstalledPaths = trim ($ phpcsInstalledPaths );
127
+
128
+ if ($ phpcsInstalledPaths !== '' ) {
129
+ $ this ->installedPaths = explode (', ' , $ phpcsInstalledPaths );
130
+ }
130
131
}
131
132
}
132
133
0 commit comments