Skip to content

Commit

Permalink
Improved code style
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-wieschollek committed Jun 4, 2018
1 parent 4413f2e commit abfee00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/Helper/HandbookRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class HandbookRenderer {
*/
_renderLink(href, title, text, wrap, baseUrl, documentUrl) {
let target = '_blank',
url = new URL(href, href.substr(0,1) === '#' ? documentUrl:baseUrl);
url = new URL(href, href.substr(0, 1) === '#' ? documentUrl:baseUrl);

href = url.href;
if(url.href.indexOf(documentUrl) !== -1 && url.hash.length) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Controller/AdminSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ protected function setNightlyStatus($enabled): void {
if($enabled) {
if(!in_array(Application::APP_NAME, $nightlyApps)) $nightlyApps[] = Application::APP_NAME;
} else {
$i = array_search(Application::APP_NAME, $nightlyApps);
if($i !== FALSE) unset($nightlyApps[$i]);
$index = array_search(Application::APP_NAME, $nightlyApps);
if($index !== FALSE) unset($nightlyApps[$index]);
}

$this->config->setSystemValue('allowNightlyUpdates', $nightlyApps);
Expand Down

0 comments on commit abfee00

Please sign in to comment.