Skip to content

Commit cd23183

Browse files
committed
cosmetics
1 parent 1f01478 commit cd23183

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/Archive7z.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)