-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix annotations in file view #13320
Fix annotations in file view #13320
Conversation
@@ -435,11 +439,18 @@ public function unlink($path) { | |||
|
|||
/** | |||
* @param string $directory | |||
* @param bool $empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@icewind1991: Where is empty actually used in that method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't find a call that uses it, so I guess it could be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find it too.
Looks good 👍 |
Refer to this link for build results (access rights to CI server needed): |
/** | ||
* @param string $path1 | ||
* @param string $path2 | ||
* @return bool|mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mixed includes bool already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually suspect that the mixed is not going to happen very often but the called functions return null at some point (or possibly other values) – I'd think this makes it cleaner to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well okay then
I dropped the useless parameter. |
👍 |
Refer to this link for build results (access rights to CI server needed): |
cbb22ab
to
0a400b4
Compare
A new inspection was created. |
I just dropped the parameter in the PHPDoc too. |
still 👍 from me |
Fix annotations in file view
@icewind1991