Skip to content

Conversation

@hjuarez20
Copy link
Contributor

No description provided.

throw new \InvalidArgumentException(
sprintf(
'Path "%s" is invalid. You need to provide a valid path.',
$parameters["path"]
Copy link

@ao2 ao2 Nov 21, 2017

Choose a reason for hiding this comment

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

Is parameters["path"] always set? Wouldn't it be safer to use dirname($target) here too? Maybe putting that in a variable at the start of the function, since it's used multiple times.

Copy link
Member

Choose a reason for hiding this comment

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

@harold20 did you see this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I already committed that recommendation @jmolivas and thanks @ao2. I had not seen that.

@ao2
Copy link

ao2 commented Nov 24, 2017

Thanks.

JFYI, on temporary git branches it is usually considered acceptable to rebase, fixup and push --force to have a cleaner history.

Not a big deal for drupal-console as I've seen @jmolivas take care of that, just a general remark.

@jmolivas jmolivas merged commit 90bdec7 into hechoendrupal:master Dec 5, 2017
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