@@ -49,7 +49,7 @@ |
||
49 | 49 | <p id="update-progress-message-error" class="hidden"></p> |
50 | 50 | <ul id="update-progress-message-warnings" class="hidden"></ul> |
51 | 51 | <p id="update-progress-message"></p> |
52 | - <a class="update-show-detailed"><?php p($l->t( 'Detailed logs' )); ?> <img src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a> |
|
52 | + <a class="update-show-detailed"><?php p($l->t('Detailed logs')); ?> <img src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a> |
|
53 | 53 | <div id="update-progress-detailed" class="hidden"></div> |
54 | 54 | </div> |
55 | 55 | </div> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // @codeCoverageIgnoreStart |
3 | -if(!isset($_)) {//also provide standalone error page |
|
3 | +if (!isset($_)) {//also provide standalone error page |
|
4 | 4 | require_once '../../lib/base.php'; |
5 | 5 | |
6 | - $tmpl = new OC_Template( '', '403', 'guest' ); |
|
6 | + $tmpl = new OC_Template('', '403', 'guest'); |
|
7 | 7 | $tmpl->printPage(); |
8 | 8 | exit; |
9 | 9 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | ?> |
12 | 12 | <ul> |
13 | 13 | <li class='error'> |
14 | - <?php p($l->t( 'Access forbidden' )); ?><br> |
|
15 | - <p class='hint'><?php if(isset($_['file'])) p($_['file'])?></p> |
|
14 | + <?php p($l->t('Access forbidden')); ?><br> |
|
15 | + <p class='hint'><?php if (isset($_['file'])) p($_['file'])?></p> |
|
16 | 16 | </li> |
17 | 17 | </ul> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | <ul> |
16 | 16 | <li><?php p($l->t('Remote Address: %s', $_['remoteAddr'])) ?></li> |
17 | 17 | <li><?php p($l->t('Request ID: %s', $_['requestID'])) ?></li> |
18 | - <?php if($_['debugMode']): ?> |
|
18 | + <?php if ($_['debugMode']): ?> |
|
19 | 19 | <li><?php p($l->t('Type: %s', $_['errorClass'])) ?></li> |
20 | 20 | <li><?php p($l->t('Code: %s', $_['errorCode'])) ?></li> |
21 | 21 | <li><?php p($l->t('Message: %s', $_['errorMsg'])) ?></li> |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | <?php endif; ?> |
25 | 25 | </ul> |
26 | 26 | |
27 | - <?php if($_['debugMode']): ?> |
|
27 | + <?php if ($_['debugMode']): ?> |
|
28 | 28 | <br /> |
29 | 29 | <h2><strong><?php p($l->t('Trace')) ?></strong></h2> |
30 | 30 | <pre><?php p($_['trace']) ?></pre> |
@@ -101,6 +101,6 @@ |
||
101 | 101 | }); |
102 | 102 | |
103 | 103 | // used for heartbeat |
104 | -$this->create('heartbeat', '/heartbeat')->action(function(){ |
|
104 | +$this->create('heartbeat', '/heartbeat')->action(function() { |
|
105 | 105 | // do nothing |
106 | 106 | }); |
@@ -44,16 +44,16 @@ |
||
44 | 44 | $inApps = array(); |
45 | 45 | } |
46 | 46 | if (isset($_GET['page'])) { |
47 | - $page = (int)$_GET['page']; |
|
47 | + $page = (int) $_GET['page']; |
|
48 | 48 | } else { |
49 | 49 | $page = 1; |
50 | 50 | } |
51 | 51 | if (isset($_GET['size'])) { |
52 | - $size = (int)$_GET['size']; |
|
52 | + $size = (int) $_GET['size']; |
|
53 | 53 | } else { |
54 | 54 | $size = 30; |
55 | 55 | } |
56 | -if($query) { |
|
56 | +if ($query) { |
|
57 | 57 | $result = \OC::$server->getSearch()->searchPaged($query, $inApps, $page, $size); |
58 | 58 | OC_JSON::encodedPrint($result); |
59 | 59 | } |
@@ -137,7 +137,7 @@ |
||
137 | 137 | public function getIdentityProof($cloudId) { |
138 | 138 | $userObject = $this->userManager->get($cloudId); |
139 | 139 | |
140 | - if($userObject !== null) { |
|
140 | + if ($userObject !== null) { |
|
141 | 141 | $key = $this->keyManager->getKey($userObject); |
142 | 142 | $data = [ |
143 | 143 | 'public' => $key->getPublic(), |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | if (!($node instanceof File)) { |
178 | 178 | return new JSONResponse(['data' => ['message' => $this->l->t('Please select a file.')]]); |
179 | 179 | } |
180 | - if ($node->getSize() > 20*1024*1024) { |
|
180 | + if ($node->getSize() > 20 * 1024 * 1024) { |
|
181 | 181 | return new JSONResponse( |
182 | 182 | ['data' => ['message' => $this->l->t('File is too big')]], |
183 | 183 | Http::STATUS_BAD_REQUEST |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | is_uploaded_file($files['tmp_name'][0]) && |
206 | 206 | !\OC\Files\Filesystem::isFileBlacklisted($files['tmp_name'][0]) |
207 | 207 | ) { |
208 | - if ($files['size'][0] > 20*1024*1024) { |
|
208 | + if ($files['size'][0] > 20 * 1024 * 1024) { |
|
209 | 209 | return new JSONResponse( |
210 | 210 | ['data' => ['message' => $this->l->t('File is too big')]], |
211 | 211 | Http::STATUS_BAD_REQUEST |
@@ -60,12 +60,12 @@ discard block |
||
60 | 60 | $post['dbpass'] = $post['dbpassword']; |
61 | 61 | } |
62 | 62 | |
63 | - if(isset($post['install']) AND $post['install']=='true') { |
|
63 | + if (isset($post['install']) AND $post['install'] == 'true') { |
|
64 | 64 | // We have to launch the installation process : |
65 | 65 | $e = $this->setupHelper->install($post); |
66 | 66 | $errors = array('errors' => $e); |
67 | 67 | |
68 | - if(count($e) > 0) { |
|
68 | + if (count($e) > 0) { |
|
69 | 69 | $options = array_merge($opts, $post, $errors); |
70 | 70 | $this->display($options); |
71 | 71 | } else { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | public function finishSetup() { |
100 | - if( file_exists( $this->autoConfigFile )) { |
|
100 | + if (file_exists($this->autoConfigFile)) { |
|
101 | 101 | unlink($this->autoConfigFile); |
102 | 102 | } |
103 | 103 | \OC::$server->getIntegrityCodeChecker()->runInstanceVerification(); |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | public function loadAutoConfig($post) { |
108 | - if( file_exists($this->autoConfigFile)) { |
|
108 | + if (file_exists($this->autoConfigFile)) { |
|
109 | 109 | \OCP\Util::writeLog('core', 'Autoconfig file found, setting up ownCloud…', \OCP\Util::INFO); |
110 | 110 | $AUTOCONFIG = array(); |
111 | 111 | include $this->autoConfigFile; |
112 | - $post = array_merge ($post, $AUTOCONFIG); |
|
112 | + $post = array_merge($post, $AUTOCONFIG); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | $dbIsSet = isset($post['dbtype']); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | protected function execute(InputInterface $input, OutputInterface $output) { |
56 | 56 | $outputType = $input->getOption('output'); |
57 | 57 | if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) { |
58 | - $certificates = array_map(function (ICertificate $certificate) { |
|
58 | + $certificates = array_map(function(ICertificate $certificate) { |
|
59 | 59 | return [ |
60 | 60 | 'name' => $certificate->getName(), |
61 | 61 | 'common_name' => $certificate->getCommonName(), |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | 'Issued By' |
82 | 82 | ]); |
83 | 83 | |
84 | - $rows = array_map(function (ICertificate $certificate) { |
|
84 | + $rows = array_map(function(ICertificate $certificate) { |
|
85 | 85 | return [ |
86 | 86 | $certificate->getName(), |
87 | 87 | $certificate->getCommonName(), |