Skip to content
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

Scrutinizer clear code #5911

Merged
merged 9 commits into from
Jul 5, 2016

Conversation

ReenExe
Copy link
Contributor

@ReenExe ReenExe commented Jul 2, 2016

only UnitOfWork

@@ -1155,9 +1155,9 @@ private function getCommitOrder(array $entityChangeSet = null)
}

$joinColumns = reset($assoc['joinColumns']);
$isNullable = isset($joinColumns['nullable']) ? $joinColumns['nullable'] : false;
$weight = (int)empty($joinColumns['nullable']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider inlining this into $calc->addDependency(, since the variable isn't used anywhere else.

Copy link
Contributor Author

@ReenExe ReenExe Jul 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ocramius, ok (i think about code as comment)
Done, wait for build

@Ocramius
Copy link
Member

Ocramius commented Jul 5, 2016

@ReenExe thanks!

Note: please be more specific with commit messages in further PRs - the current commit messages don't really explain what/why something was done :-)

@Ocramius Ocramius added this to the 2.6.0 milestone Jul 5, 2016
@Ocramius Ocramius self-assigned this Jul 5, 2016
@Ocramius Ocramius merged commit 27e9b49 into doctrine:master Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants