Skip to content

Conversation

@nickvergessen
Copy link
Member

Signed-off-by: Joas Schilling coding@schilljs.com

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added this to the Nextcloud 14 milestone Jan 18, 2018
$result['updateVersion'] = $data['versionstring'];
$result['updaterEnabled'] = $data['autoupdater'] === '1';
if(substr($data['web'], 0, 8) === 'https://') {
if (strpos($data['web'], 'https://') === 0) {
Copy link
Member

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'] !== []) {
Copy link
Member

Choose a reason for hiding this comment

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

\isset ?

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

🚀

@codecov
Copy link

codecov bot commented Jan 18, 2018

Codecov Report

Merging #7930 into master will decrease coverage by <.01%.
The diff coverage is 59.09%.

@@             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
Impacted Files Coverage Δ Complexity Δ
...updatenotification/lib/ResetTokenBackgroundJob.php 87.5% <ø> (ø) 3 <0> (ø) ⬇️
...pps/updatenotification/lib/AppInfo/Application.php 7.4% <ø> (ø) 10 <0> (ø) ⬇️
apps/updatenotification/templates/admin.php 0% <ø> (ø) 0 <0> (ø) ⬇️
apps/updatenotification/lib/Settings/Admin.php 77.5% <100%> (ø) 8 <7> (ø) ⬇️
...s/updatenotification/lib/Notification/Notifier.php 25% <25%> (ø) 17 <13> (ø) ⬇️
...atenotification/lib/Controller/AdminController.php 56.52% <50%> (ø) 3 <2> (ø) ⬇️
...atenotification/lib/Notification/BackgroundJob.php 63.1% <61.53%> (-3.91%) 32 <7> (+2)
apps/updatenotification/lib/UpdateChecker.php 71.42% <80%> (ø) 8 <6> (-1) ⬇️

@MorrisJobke
Copy link
Member

ref (#7392)

@MorrisJobke MorrisJobke merged commit 4836a5e into master Jan 18, 2018
@MorrisJobke MorrisJobke deleted the update-notification-strict branch January 18, 2018 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants