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

[TASK] Cleanups in FalViewHelper #962

Merged
merged 2 commits into from
Dec 14, 2015
Merged

[TASK] Cleanups in FalViewHelper #962

merged 2 commits into from
Dec 14, 2015

Conversation

smichaelsen
Copy link
Contributor

Fix phpDoc annotations, yoda-style comparisons and other small
improvements.

Fix phpDoc annotations, yoda-style comparisons and other small
improvements.
} catch (ResourceDoesNotExistException $exception) {
// No handling, just omit the invalid reference uid
continue;
$images = array();
Copy link
Member

Choose a reason for hiding this comment

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

Moving declaration of $images in here may cause the variable to be undefined (or at least not an array) which would cause the final loop to break with a fatal PHP error. It should be okay to move the declaration outside of the condition so it always gets initialised but only filled if referenceUids is not empty. Sorry, missed the declaration above. Code should execute just fine, despite the slightly confusing reuse of $images variable which was there before you got here :)

NamelessCoder added a commit that referenced this pull request Dec 14, 2015
[TASK] Cleanups in FalViewHelper
@NamelessCoder NamelessCoder merged commit bedf131 into FluidTYPO3:development Dec 14, 2015
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.

2 participants