File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ public function __construct($filename, $cli = null)
113113 */
114114 protected function isOsWin ()
115115 {
116- return false !== \stripos (PHP_OS , 'WIN ' );
116+ return false !== \stripos (\ PHP_OS , 'Win ' );
117117 }
118118
119119
@@ -122,7 +122,7 @@ protected function isOsWin()
122122 */
123123 protected function isOsBsd ()
124124 {
125- return false !== \stripos (PHP_OS , 'BSD ' ) || false !== \stripos (PHP_OS , 'Darwin ' );
125+ return false !== \stripos (\ PHP_OS , 'BSD ' ) || false !== \stripos (\ PHP_OS , 'Darwin ' );
126126 }
127127
128128
@@ -133,7 +133,8 @@ protected function getAutoCli()
133133 {
134134 if ($ this ->isOsBsd ()) {
135135 return $ this ->cliBsd ;
136- } elseif ($ this ->isOsWin ()) {
136+ }
137+ if ($ this ->isOsWin ()) {
137138 return $ this ->cliWindows ;
138139 }
139140
@@ -449,7 +450,7 @@ public function getEntries()
449450 $ processBuilder = $ this ->decorateCmdExtract ($ processBuilder );
450451
451452 $ process = $ this ->execute ($ processBuilder );
452- $ out = \explode (PHP_EOL , $ process ->getOutput ());
453+ $ out = \explode (\ PHP_EOL , $ process ->getOutput ());
453454
454455 $ list = [];
455456 $ parser = new Parser ($ out );
You can’t perform that action at this time.
0 commit comments