Skip to content

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Sep 6, 2016

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

$shortName = $resourceMetadata->getShortName();
$prefixedShortName = ($iri = $resourceMetadata->getIri()) ? $iri : '#'.$shortName;
$prefixedShortName = (null === $iri = $resourceMetadata->getIri()) ? '#'.$shortName : $iri;
Copy link
Member

Choose a reason for hiding this comment

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

parenthesis needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, or $iri will not be defined.

@dunglas dunglas merged commit 74601da into api-platform:master Sep 6, 2016
@dunglas dunglas deleted the hydra_doc_quality branch September 6, 2016 13:11
magarzon pushed a commit to magarzon/core that referenced this pull request Feb 12, 2017
Improve the quality and readability of Hydra's DocumentationNormalizer
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