-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Make Update notficiations strict and fix all inspections #7930
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
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
| $result['updateVersion'] = $data['versionstring']; | ||
| $result['updaterEnabled'] = $data['autoupdater'] === '1'; | ||
| if(substr($data['web'], 0, 8) === 'https://') { | ||
| if (strpos($data['web'], 'https://') === 0) { |
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.
No \strpos ;)?
| $result = []; | ||
|
|
||
| if(isset($data['version']) && $data['version'] !== '' && $data['version'] !== []) { | ||
| if (isset($data['version']) && $data['version'] !== '' && $data['version'] !== []) { |
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.
\isset ?
rullzer
left a comment
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.
🚀
Codecov Report
@@ Coverage Diff @@
## master #7930 +/- ##
============================================
- Coverage 51.23% 51.22% -0.01%
- Complexity 24927 24928 +1
============================================
Files 1605 1605
Lines 94988 94994 +6
Branches 1376 1376
============================================
Hits 48664 48664
- Misses 46324 46330 +6
|
|
ref (#7392) |
Signed-off-by: Joas Schilling coding@schilljs.com