@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | use Icewind\Streams\CallbackWrapper; |
39 | 39 | use Icewind\Streams\RetryWrapper; |
40 | 40 | |
41 | -class FTP extends StreamWrapper{ |
|
41 | +class FTP extends StreamWrapper { |
|
42 | 42 | private $password; |
43 | 43 | private $user; |
44 | 44 | private $host; |
@@ -47,17 +47,17 @@ discard block |
||
47 | 47 | |
48 | 48 | public function __construct($params) { |
49 | 49 | if (isset($params['host']) && isset($params['user']) && isset($params['password'])) { |
50 | - $this->host=$params['host']; |
|
51 | - $this->user=$params['user']; |
|
52 | - $this->password=$params['password']; |
|
50 | + $this->host = $params['host']; |
|
51 | + $this->user = $params['user']; |
|
52 | + $this->password = $params['password']; |
|
53 | 53 | if (isset($params['secure'])) { |
54 | 54 | $this->secure = $params['secure']; |
55 | 55 | } else { |
56 | 56 | $this->secure = false; |
57 | 57 | } |
58 | - $this->root=isset($params['root'])?$params['root']:'/'; |
|
59 | - if (! $this->root || $this->root[0]!=='/') { |
|
60 | - $this->root='/'.$this->root; |
|
58 | + $this->root = isset($params['root']) ? $params['root'] : '/'; |
|
59 | + if (!$this->root || $this->root[0] !== '/') { |
|
60 | + $this->root = '/'.$this->root; |
|
61 | 61 | } |
62 | 62 | if (substr($this->root, -1) !== '/') { |
63 | 63 | $this->root .= '/'; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | public function getId() { |
72 | - return 'ftp::' . $this->user . '@' . $this->host . '/' . $this->root; |
|
72 | + return 'ftp::'.$this->user.'@'.$this->host.'/'.$this->root; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | * @return string |
79 | 79 | */ |
80 | 80 | public function constructUrl($path) { |
81 | - $url='ftp'; |
|
81 | + $url = 'ftp'; |
|
82 | 82 | if ($this->secure) { |
83 | - $url.='s'; |
|
83 | + $url .= 's'; |
|
84 | 84 | } |
85 | - $url.='://'.urlencode($this->user).':'.urlencode($this->password).'@'.$this->host.$this->root.$path; |
|
85 | + $url .= '://'.urlencode($this->user).':'.urlencode($this->password).'@'.$this->host.$this->root.$path; |
|
86 | 86 | return $url; |
87 | 87 | } |
88 | 88 | |
@@ -101,8 +101,8 @@ discard block |
||
101 | 101 | return $result; |
102 | 102 | } |
103 | 103 | } |
104 | - public function fopen($path,$mode) { |
|
105 | - switch($mode) { |
|
104 | + public function fopen($path, $mode) { |
|
105 | + switch ($mode) { |
|
106 | 106 | case 'r': |
107 | 107 | case 'rb': |
108 | 108 | case 'w': |
@@ -122,17 +122,17 @@ discard block |
||
122 | 122 | case 'c': |
123 | 123 | case 'c+': |
124 | 124 | //emulate these |
125 | - if (strrpos($path, '.')!==false) { |
|
126 | - $ext=substr($path, strrpos($path, '.')); |
|
125 | + if (strrpos($path, '.') !== false) { |
|
126 | + $ext = substr($path, strrpos($path, '.')); |
|
127 | 127 | } else { |
128 | - $ext=''; |
|
128 | + $ext = ''; |
|
129 | 129 | } |
130 | 130 | $tmpFile = \OC::$server->getTempManager()->getTemporaryFile(); |
131 | 131 | if ($this->file_exists($path)) { |
132 | 132 | $this->getFile($path, $tmpFile); |
133 | 133 | } |
134 | 134 | $handle = fopen($tmpFile, $mode); |
135 | - return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) { |
|
135 | + return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) { |
|
136 | 136 | $this->writeBack($tmpFile, $path); |
137 | 137 | }); |
138 | 138 | } |
@@ -9,12 +9,12 @@ discard block |
||
9 | 9 | <input type='hidden' id='hasOracle' value='<?php p($_['hasOracle']) ?>'> |
10 | 10 | <form action="index.php" method="post"> |
11 | 11 | <input type="hidden" name="install" value="true"> |
12 | - <?php if(count($_['errors']) > 0): ?> |
|
12 | + <?php if (count($_['errors']) > 0): ?> |
|
13 | 13 | <fieldset class="warning"> |
14 | - <legend><strong><?php p($l->t('Error'));?></strong></legend> |
|
15 | - <?php foreach($_['errors'] as $err): ?> |
|
14 | + <legend><strong><?php p($l->t('Error')); ?></strong></legend> |
|
15 | + <?php foreach ($_['errors'] as $err): ?> |
|
16 | 16 | <p> |
17 | - <?php if(is_array($err)):?> |
|
17 | + <?php if (is_array($err)):?> |
|
18 | 18 | <?php p($err['error']); ?> |
19 | 19 | <span class='hint'><?php p($err['hint']); ?></span> |
20 | 20 | <?php else: ?> |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | <?php endforeach; ?> |
25 | 25 | </fieldset> |
26 | 26 | <?php endif; ?> |
27 | - <?php if(!$_['htaccessWorking']): ?> |
|
27 | + <?php if (!$_['htaccessWorking']): ?> |
|
28 | 28 | <fieldset class="warning"> |
29 | - <legend><strong><?php p($l->t('Security warning'));?></strong></legend> |
|
30 | - <p><?php p($l->t('Your data directory and files are probably accessible from the internet because the .htaccess file does not work.'));?><br> |
|
29 | + <legend><strong><?php p($l->t('Security warning')); ?></strong></legend> |
|
30 | + <p><?php p($l->t('Your data directory and files are probably accessible from the internet because the .htaccess file does not work.')); ?><br> |
|
31 | 31 | <?php print_unescaped($l->t( |
32 | 32 | 'For information how to properly configure your server, please see the <a href="%s" target="_blank" rel="noreferrer noopener">documentation</a>.', |
33 | 33 | [link_to_docs('admin-install')] |
@@ -54,13 +54,13 @@ discard block |
||
54 | 54 | </p> |
55 | 55 | </fieldset> |
56 | 56 | |
57 | - <?php if(!$_['directoryIsSet'] or !$_['dbIsSet'] or count($_['errors']) > 0): ?> |
|
57 | + <?php if (!$_['directoryIsSet'] or !$_['dbIsSet'] or count($_['errors']) > 0): ?> |
|
58 | 58 | <fieldset id="advancedHeader"> |
59 | 59 | <legend><a id="showAdvanced" tabindex="0" href="#"><?php p($l->t('Storage & database')); ?><img src="<?php print_unescaped(image_path('', 'actions/caret-white.svg')); ?>" /></a></legend> |
60 | 60 | </fieldset> |
61 | 61 | <?php endif; ?> |
62 | 62 | |
63 | - <?php if(!$_['directoryIsSet'] or count($_['errors']) > 0): ?> |
|
63 | + <?php if (!$_['directoryIsSet'] or count($_['errors']) > 0): ?> |
|
64 | 64 | <fieldset id="datadirField"> |
65 | 65 | <div id="datadirContent"> |
66 | 66 | <label for="directory"><?php p($l->t('Data folder')); ?></label> |
@@ -72,14 +72,14 @@ discard block |
||
72 | 72 | </fieldset> |
73 | 73 | <?php endif; ?> |
74 | 74 | |
75 | - <?php if(!$_['dbIsSet'] or count($_['errors']) > 0): ?> |
|
75 | + <?php if (!$_['dbIsSet'] or count($_['errors']) > 0): ?> |
|
76 | 76 | <fieldset id='databaseBackend'> |
77 | - <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) |
|
78 | - $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite?> |
|
77 | + <?php if ($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) |
|
78 | + $hasOtherDB = true; else $hasOtherDB = false; //other than SQLite?> |
|
79 | 79 | <legend><?php p($l->t('Configure the database')); ?></legend> |
80 | 80 | <div id="selectDbType"> |
81 | - <?php foreach($_['databases'] as $type => $label): ?> |
|
82 | - <?php if(count($_['databases']) === 1): ?> |
|
81 | + <?php foreach ($_['databases'] as $type => $label): ?> |
|
82 | + <?php if (count($_['databases']) === 1): ?> |
|
83 | 83 | <p class="info"> |
84 | 84 | <?php p($l->t('Only %s is available.', [$label])); ?> |
85 | 85 | <?php p($l->t('Install and activate additional PHP modules to choose other database types.')); ?><br> |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | </div> |
97 | 97 | </fieldset> |
98 | 98 | |
99 | - <?php if($hasOtherDB): ?> |
|
99 | + <?php if ($hasOtherDB): ?> |
|
100 | 100 | <fieldset id='databaseField'> |
101 | 101 | <div id="use_other_db"> |
102 | 102 | <p class="grouptop"> |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | autocomplete="off" autocapitalize="none" autocorrect="off" |
124 | 124 | pattern="[0-9a-zA-Z$_-]+"> |
125 | 125 | </p> |
126 | - <?php if($_['hasOracle']): ?> |
|
126 | + <?php if ($_['hasOracle']): ?> |
|
127 | 127 | <div id="use_oracle_db"> |
128 | 128 | <p class="groupmiddle"> |
129 | 129 | <label for="dbtablespace" class="infield"><?php p($l->t('Database tablespace')); ?></label> |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | <?php endif; ?> |
150 | 150 | <?php endif; ?> |
151 | 151 | |
152 | - <?php if(!$_['dbIsSet'] or count($_['errors']) > 0): ?> |
|
152 | + <?php if (!$_['dbIsSet'] or count($_['errors']) > 0): ?> |
|
153 | 153 | <fieldset id="sqliteInformation" class="warning"> |
154 | - <legend><?php p($l->t('Performance warning'));?></legend> |
|
155 | - <p><?php p($l->t('You chose SQLite as database.'));?></p> |
|
156 | - <p><?php p($l->t('SQLite should only be used for minimal and development instances. For production we recommend a different database backend.'));?></p> |
|
154 | + <legend><?php p($l->t('Performance warning')); ?></legend> |
|
155 | + <p><?php p($l->t('You chose SQLite as database.')); ?></p> |
|
156 | + <p><?php p($l->t('SQLite should only be used for minimal and development instances. For production we recommend a different database backend.')); ?></p> |
|
157 | 157 | <p><?php p($l->t('If you use clients for file syncing, the use of SQLite is highly discouraged.')); ?></p> |
158 | 158 | </fieldset> |
159 | 159 | <?php endif ?> |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | <p class="info"> |
176 | 176 | <span class="icon-info-white"></span> |
177 | - <?php p($l->t('Need help?'));?> |
|
178 | - <a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-install')); ?>"><?php p($l->t('See the documentation'));?> ↗</a> |
|
177 | + <?php p($l->t('Need help?')); ?> |
|
178 | + <a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-install')); ?>"><?php p($l->t('See the documentation')); ?> ↗</a> |
|
179 | 179 | </p> |
180 | 180 | </form> |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <?php emit_script_loading_tags($_); ?> |
24 | 24 | <?php print_unescaped($_['headers']); ?> |
25 | 25 | </head> |
26 | - <body id="<?php p($_['bodyid']);?>"> |
|
26 | + <body id="<?php p($_['bodyid']); ?>"> |
|
27 | 27 | <?php include 'layout.noscript.warning.php'; ?> |
28 | 28 | <?php foreach ($_['initialStates'] as $app => $initialState) { ?> |
29 | 29 | <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>"> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <h1 class="hidden-visually"> |
38 | 38 | <?php p($theme->getName()); ?> |
39 | 39 | </h1> |
40 | - <?php if(\OC::$server->getConfig()->getSystemValue('installed', false) |
|
40 | + <?php if (\OC::$server->getConfig()->getSystemValue('installed', false) |
|
41 | 41 | && \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?> |
42 | 42 | <img src="<?php p($theme->getLogo()); ?>"/> |
43 | 43 | <?php endif; ?> |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <title> |
6 | 6 | <?php |
7 | - p(!empty($_['application'])?$_['application'].' - ':''); |
|
7 | + p(!empty($_['application']) ? $_['application'].' - ' : ''); |
|
8 | 8 | p($theme->getTitle()); |
9 | 9 | ?> |
10 | 10 | </title> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | <?php } ?> |
16 | 16 | <meta name="apple-mobile-web-app-capable" content="yes"> |
17 | 17 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
18 | - <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>"> |
|
18 | + <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid'] != 'files') ? $_['application'] : $theme->getTitle()); ?>"> |
|
19 | 19 | <meta name="mobile-web-app-capable" content="yes"> |
20 | 20 | <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>"> |
21 | 21 | <link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>"> |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | <?php emit_script_loading_tags($_); ?> |
27 | 27 | <?php print_unescaped($_['headers']); ?> |
28 | 28 | </head> |
29 | - <body id="<?php p($_['bodyid']);?>"> |
|
29 | + <body id="<?php p($_['bodyid']); ?>"> |
|
30 | 30 | <?php include 'layout.noscript.warning.php'; ?> |
31 | 31 | |
32 | 32 | <?php foreach ($_['initialStates'] as $app => $initialState) { ?> |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | id="nextcloud"> |
46 | 46 | <div class="logo logo-icon"> |
47 | 47 | <h1 class="hidden-visually"> |
48 | - <?php p($theme->getName()); ?> <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?> |
|
48 | + <?php p($theme->getName()); ?> <?php p(!empty($_['application']) ? $_['application'] : $l->t('Apps')); ?> |
|
49 | 49 | </h1> |
50 | 50 | </div> |
51 | 51 | </a> |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | <?php if ($_['themingInvertMenu']) { ?> |
61 | 61 | <defs><filter id="invertMenuMain-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs> |
62 | 62 | <?php } ?> |
63 | - <image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon"></image> |
|
63 | + <image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>" class="app-icon"></image> |
|
64 | 64 | </svg> |
65 | 65 | <span> |
66 | 66 | <?php p($entry['name']); ?> |
@@ -81,14 +81,14 @@ discard block |
||
81 | 81 | <div id="navigation" style="display: none;" aria-label="<?php p($l->t('More apps menu')); ?>"> |
82 | 82 | <div id="apps"> |
83 | 83 | <ul> |
84 | - <?php foreach($_['navigation'] as $entry): ?> |
|
84 | + <?php foreach ($_['navigation'] as $entry): ?> |
|
85 | 85 | <li data-id="<?php p($entry['id']); ?>"> |
86 | 86 | <a href="<?php print_unescaped($entry['href']); ?>" |
87 | - <?php if($entry['active']): ?> class="active"<?php endif; ?> |
|
87 | + <?php if ($entry['active']): ?> class="active"<?php endif; ?> |
|
88 | 88 | aria-label="<?php p($entry['name']); ?>"> |
89 | 89 | <svg width="16" height="16" viewBox="0 0 16 16" alt=""> |
90 | 90 | <defs><filter id="invertMenuMore-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs> |
91 | - <image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invertMenuMore-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon"></image> |
|
91 | + <image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invertMenuMore-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>" class="app-icon"></image> |
|
92 | 92 | </svg> |
93 | 93 | <span><?php p($entry['name']); ?></span> |
94 | 94 | </a> |
@@ -104,43 +104,43 @@ discard block |
||
104 | 104 | <div class="header-right"> |
105 | 105 | <form class="searchbox" action="#" method="post" role="search" novalidate> |
106 | 106 | <label for="searchbox" class="hidden-visually"> |
107 | - <?php p($l->t('Search'));?> |
|
107 | + <?php p($l->t('Search')); ?> |
|
108 | 108 | </label> |
109 | 109 | <input id="searchbox" type="search" name="query" |
110 | 110 | value="" required class="hidden icon-search-white icon-search-force-white" |
111 | 111 | autocomplete="off"> |
112 | - <button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button> |
|
112 | + <button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search')); ?></span></button> |
|
113 | 113 | </form> |
114 | 114 | <div id="contactsmenu"> |
115 | 115 | <div class="icon-contacts menutoggle" tabindex="0" role="button" |
116 | 116 | aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false"> |
117 | - <span class="hidden-visually"><?php p($l->t('Contacts'));?></span> |
|
117 | + <span class="hidden-visually"><?php p($l->t('Contacts')); ?></span> |
|
118 | 118 | </div> |
119 | 119 | <div id="contactsmenu-menu" class="menu" |
120 | - aria-label="<?php p($l->t('Contacts menu'));?>"></div> |
|
120 | + aria-label="<?php p($l->t('Contacts menu')); ?>"></div> |
|
121 | 121 | </div> |
122 | 122 | <div id="settings"> |
123 | 123 | <div id="expand" tabindex="0" role="button" class="menutoggle" |
124 | - aria-label="<?php p($l->t('Settings'));?>" |
|
124 | + aria-label="<?php p($l->t('Settings')); ?>" |
|
125 | 125 | aria-haspopup="true" aria-controls="expanddiv" aria-expanded="false"> |
126 | 126 | <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>"> |
127 | 127 | <?php if ($_['userAvatarSet']): ?> |
128 | 128 | <img alt="" width="32" height="32" |
129 | - src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>" |
|
130 | - srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64, 'v' => $_['userAvatarVersion']]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128, 'v' => $_['userAvatarVersion']]));?> 4x" |
|
129 | + src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']])); ?>" |
|
130 | + srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64, 'v' => $_['userAvatarVersion']])); ?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128, 'v' => $_['userAvatarVersion']])); ?> 4x" |
|
131 | 131 | > |
132 | 132 | <?php endif; ?> |
133 | 133 | </div> |
134 | 134 | <div id="expandDisplayName" class="icon-settings-white"></div> |
135 | 135 | </div> |
136 | 136 | <nav class="settings-menu" id="expanddiv" style="display:none;" |
137 | - aria-label="<?php p($l->t('Settings menu'));?>"> |
|
137 | + aria-label="<?php p($l->t('Settings menu')); ?>"> |
|
138 | 138 | <ul> |
139 | - <?php foreach($_['settingsnavigation'] as $entry):?> |
|
139 | + <?php foreach ($_['settingsnavigation'] as $entry):?> |
|
140 | 140 | <li data-id="<?php p($entry['id']); ?>"> |
141 | 141 | <a href="<?php print_unescaped($entry['href']); ?>" |
142 | - <?php if($entry["active"]): ?> class="active"<?php endif; ?>> |
|
143 | - <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"> |
|
142 | + <?php if ($entry["active"]): ?> class="active"<?php endif; ?>> |
|
143 | + <img alt="" src="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"> |
|
144 | 144 | <?php p($entry['name']) ?> |
145 | 145 | </a> |
146 | 146 | </li> |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // @codeCoverageIgnoreStart |
3 | -if(!isset($_)) {//standalone page is not supported anymore - redirect to / |
|
3 | +if (!isset($_)) {//standalone page is not supported anymore - redirect to / |
|
4 | 4 | require_once '../../lib/base.php'; |
5 | 5 | |
6 | 6 | $urlGenerator = \OC::$server->getURLGenerator(); |
7 | - header('Location: ' . $urlGenerator->getAbsoluteURL('/')); |
|
7 | + header('Location: '.$urlGenerator->getAbsoluteURL('/')); |
|
8 | 8 | exit; |
9 | 9 | } |
10 | 10 | // @codeCoverageIgnoreEnd |
@@ -12,6 +12,6 @@ discard block |
||
12 | 12 | <ul> |
13 | 13 | <li class='error'> |
14 | 14 | <?php p($l->t('Access forbidden')); ?><br> |
15 | - <p class='hint'><?php if(isset($_['message'])) p($_['message'])?></p> |
|
15 | + <p class='hint'><?php if (isset($_['message'])) p($_['message'])?></p> |
|
16 | 16 | </li> |
17 | 17 | </ul> |
@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
73 | - if(isset($post['install']) and $post['install']=='true') { |
|
73 | + if (isset($post['install']) and $post['install'] == 'true') { |
|
74 | 74 | // We have to launch the installation process : |
75 | 75 | $e = $this->setupHelper->install($post); |
76 | 76 | $errors = ['errors' => $e]; |
77 | 77 | |
78 | - if(count($e) > 0) { |
|
78 | + if (count($e) > 0) { |
|
79 | 79 | $options = array_merge($opts, $post, $errors); |
80 | 80 | $this->display($options); |
81 | 81 | } else { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | private function finishSetup(bool $installRecommended) { |
112 | - if(file_exists($this->autoConfigFile)) { |
|
112 | + if (file_exists($this->autoConfigFile)) { |
|
113 | 113 | unlink($this->autoConfigFile); |
114 | 114 | } |
115 | 115 | \OC::$server->getIntegrityCodeChecker()->runInstanceVerification(); |
@@ -123,14 +123,14 @@ discard block |
||
123 | 123 | if ($installRecommended) { |
124 | 124 | $urlGenerator = \OC::$server->getURLGenerator(); |
125 | 125 | $location = $urlGenerator->getAbsoluteURL('index.php/core/apps/recommended'); |
126 | - header('Location: ' . $location); |
|
126 | + header('Location: '.$location); |
|
127 | 127 | exit(); |
128 | 128 | } |
129 | 129 | \OC_Util::redirectToDefaultPage(); |
130 | 130 | } |
131 | 131 | |
132 | 132 | public function loadAutoConfig($post) { |
133 | - if(file_exists($this->autoConfigFile)) { |
|
133 | + if (file_exists($this->autoConfigFile)) { |
|
134 | 134 | \OCP\Util::writeLog('core', 'Autoconfig file found, setting up Nextcloud…', ILogger::INFO); |
135 | 135 | $AUTOCONFIG = []; |
136 | 136 | include $this->autoConfigFile; |