Skip to content

Fix some SensioLabs Insight violations #2068

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

Merged
merged 2 commits into from
Jul 5, 2018
Merged

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Jul 4, 2018

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

@dunglas dunglas requested a review from soyuka July 4, 2018 14:48
@teohhanhui
Copy link
Contributor

Shouldn't this have been done on 2.2, or are they new?

@dunglas
Copy link
Member Author

dunglas commented Jul 4, 2018

All those classes are new ones.

$identifiers = CompositeIdentifierParser::parse($data);
} else {
} else if (0 === $numIdentifier) {
Copy link
Member Author

Choose a reason for hiding this comment

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

elseif

{
const HAS_IDENTIFIER_DENORMALIZER = 'has_identifier_denormalizer';
const HAS_IDENTIFIER_CONVERTER = 'has_identifier_converter';
Copy link
Member Author

Choose a reason for hiding this comment

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

Could be moved to the interface right?

Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer not to so that we can remove it later

@soyuka soyuka force-pushed the insight branch 4 times, most recently from 6729457 to 898b0e6 Compare July 5, 2018 08:47
}

if (\count($keys) > 1) {
if ($numIdentifiers = \count($keys) > 1) {
Copy link
Member Author

Choose a reason for hiding this comment

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

missing parenthesis: ($numIdentifiers = \count($keys))

@soyuka soyuka force-pushed the insight branch 4 times, most recently from e055113 to 067eda1 Compare July 5, 2018 09:22
@dunglas dunglas merged commit c40320a into api-platform:master Jul 5, 2018
@dunglas dunglas deleted the insight branch July 5, 2018 13:17
@dunglas
Copy link
Member Author

dunglas commented Jul 5, 2018

Thanks @soyuka

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

Successfully merging this pull request may close these issues.

3 participants