Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

count() usage optimization #315

Merged
merged 2 commits into from
May 29, 2018
Merged

Conversation

samsonasik
Copy link
Contributor

  • Is this related to quality assurance?

if (count($pkc->getColumns()) == 1) {
$pkck = $pkc->getColumns();
$pkck = $pkck->getColumns();
if (count($pkc) == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

We can use === here now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done ;)

@ezimuel ezimuel merged commit 7736d5b into zendframework:master May 29, 2018
@samsonasik samsonasik deleted the count-op branch May 29, 2018 12:23
@ezimuel
Copy link
Contributor

ezimuel commented May 29, 2018

@samsonasik Thanks for your contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants