Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added deprecation to cwd not existing Fixes #18249 #23708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ran fabbot
  • Loading branch information
alexbowers committed Oct 5, 2017
commit f46239db35080cabfd187b946a96eae1cc1423e3
8 changes: 4 additions & 4 deletions 8 src/Symfony/Component/Process/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ public function isRunning()
*/
public function isStarted()
{
return $this->status != self::STATUS_READY;
return self::STATUS_READY != $this->status;
}

/**
Expand All @@ -851,7 +851,7 @@ public function isTerminated()
{
$this->updateStatus(false);

return $this->status == self::STATUS_TERMINATED;
return self::STATUS_TERMINATED == $this->status;
}

/**
Expand Down Expand Up @@ -1330,7 +1330,7 @@ public function areEnvironmentVariablesInherited()
*/
public function checkTimeout()
{
if ($this->status !== self::STATUS_STARTED) {
if (self::STATUS_STARTED !== $this->status) {
return;
}

Expand Down Expand Up @@ -1521,7 +1521,7 @@ private function readPipes($blocking, $close)
$callback = $this->callback;
foreach ($result as $type => $data) {
if (3 !== $type) {
$callback($type === self::STDOUT ? self::OUT : self::ERR, $data);
$callback(self::STDOUT === $type ? self::OUT : self::ERR, $data);
} elseif (!isset($this->fallbackStatus['signaled'])) {
$this->fallbackStatus['exitcode'] = (int) $data;
}
Expand Down
6 changes: 3 additions & 3 deletions 6 src/Symfony/Component/Process/Tests/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function testInvalidCwdOnWindows()
// Check that it works fine if the CWD exists
$cmd = new Process('echo test', __DIR__);
$cmd->run();
} catch(\Exception $e) {
} catch (\Exception $e) {
$this->fail($e);
}

Expand Down Expand Up @@ -353,7 +353,7 @@ public function testCallbackIsExecutedForOutput()

$called = false;
$p->run(function ($type, $buffer) use (&$called) {
$called = $buffer === 'foo';
$called = 'foo' === $buffer;
});

$this->assertTrue($called, 'The callback should be executed with the output');
Expand All @@ -366,7 +366,7 @@ public function testCallbackIsExecutedForOutputWheneverOutputIsDisabled()

$called = false;
$p->run(function ($type, $buffer) use (&$called) {
$called = $buffer === 'foo';
$called = 'foo' === $buffer;
});

$this->assertTrue($called, 'The callback should be executed with the output');
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.