@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\Files_Sharing\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\Files_Sharing\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |
@@ -45,12 +45,12 @@ discard block |
||
| 45 | 45 | * @param string $opts, additional optional options |
| 46 | 46 | */ |
| 47 | 47 | function emit_css_tag($href, $opts = '') { |
| 48 | - $s='<link rel="stylesheet"'; |
|
| 48 | + $s = '<link rel="stylesheet"'; |
|
| 49 | 49 | if (!empty($href)) { |
| 50 | - $s.=' href="' . $href .'"'; |
|
| 50 | + $s .= ' href="'.$href.'"'; |
|
| 51 | 51 | } |
| 52 | 52 | if (!empty($opts)) { |
| 53 | - $s.=' '.$opts; |
|
| 53 | + $s .= ' '.$opts; |
|
| 54 | 54 | } |
| 55 | 55 | print_unescaped($s.">\n"); |
| 56 | 56 | } |
@@ -60,10 +60,10 @@ discard block |
||
| 60 | 60 | * @param array $obj all the script information from template |
| 61 | 61 | */ |
| 62 | 62 | function emit_css_loading_tags($obj) { |
| 63 | - foreach($obj['cssfiles'] as $css) { |
|
| 63 | + foreach ($obj['cssfiles'] as $css) { |
|
| 64 | 64 | emit_css_tag($css); |
| 65 | 65 | } |
| 66 | - foreach($obj['printcssfiles'] as $css) { |
|
| 66 | + foreach ($obj['printcssfiles'] as $css) { |
|
| 67 | 67 | emit_css_tag($css, 'media="print"'); |
| 68 | 68 | } |
| 69 | 69 | } |
@@ -73,20 +73,20 @@ discard block |
||
| 73 | 73 | * @param string $src the source URL, ignored when empty |
| 74 | 74 | * @param string $script_content the inline script content, ignored when empty |
| 75 | 75 | */ |
| 76 | -function emit_script_tag($src, $script_content='') { |
|
| 77 | - $defer_str=' defer'; |
|
| 78 | - $s='<script nonce="' . \OC::$server->getContentSecurityPolicyNonceManager()->getNonce() . '"'; |
|
| 76 | +function emit_script_tag($src, $script_content = '') { |
|
| 77 | + $defer_str = ' defer'; |
|
| 78 | + $s = '<script nonce="'.\OC::$server->getContentSecurityPolicyNonceManager()->getNonce().'"'; |
|
| 79 | 79 | if (!empty($src)) { |
| 80 | 80 | // emit script tag for deferred loading from $src |
| 81 | - $s.=$defer_str.' src="' . $src .'">'; |
|
| 81 | + $s .= $defer_str.' src="'.$src.'">'; |
|
| 82 | 82 | } else if (!empty($script_content)) { |
| 83 | 83 | // emit script tag for inline script from $script_content without defer (see MDN) |
| 84 | - $s.=">\n".$script_content."\n"; |
|
| 84 | + $s .= ">\n".$script_content."\n"; |
|
| 85 | 85 | } else { |
| 86 | 86 | // no $src nor $src_content, really useless empty tag |
| 87 | - $s.='>'; |
|
| 87 | + $s .= '>'; |
|
| 88 | 88 | } |
| 89 | - $s.='</script>'; |
|
| 89 | + $s .= '</script>'; |
|
| 90 | 90 | print_unescaped($s."\n"); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @param array $obj all the script information from template |
| 96 | 96 | */ |
| 97 | 97 | function emit_script_loading_tags($obj) { |
| 98 | - foreach($obj['jsfiles'] as $jsfile) { |
|
| 98 | + foreach ($obj['jsfiles'] as $jsfile) { |
|
| 99 | 99 | emit_script_tag($jsfile, ''); |
| 100 | 100 | } |
| 101 | 101 | if (!empty($obj['inline_ocjs'])) { |
@@ -119,8 +119,8 @@ discard block |
||
| 119 | 119 | * if an array is given it will add all scripts |
| 120 | 120 | */ |
| 121 | 121 | function script($app, $file = null) { |
| 122 | - if(is_array($file)) { |
|
| 123 | - foreach($file as $f) { |
|
| 122 | + if (is_array($file)) { |
|
| 123 | + foreach ($file as $f) { |
|
| 124 | 124 | OC_Util::addScript($app, $f); |
| 125 | 125 | } |
| 126 | 126 | } else { |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | * if an array is given it will add all scripts |
| 136 | 136 | */ |
| 137 | 137 | function vendor_script($app, $file = null) { |
| 138 | - if(is_array($file)) { |
|
| 139 | - foreach($file as $f) { |
|
| 138 | + if (is_array($file)) { |
|
| 139 | + foreach ($file as $f) { |
|
| 140 | 140 | OC_Util::addVendorScript($app, $f); |
| 141 | 141 | } |
| 142 | 142 | } else { |
@@ -151,8 +151,8 @@ discard block |
||
| 151 | 151 | * if an array is given it will add all styles |
| 152 | 152 | */ |
| 153 | 153 | function style($app, $file = null) { |
| 154 | - if(is_array($file)) { |
|
| 155 | - foreach($file as $f) { |
|
| 154 | + if (is_array($file)) { |
|
| 155 | + foreach ($file as $f) { |
|
| 156 | 156 | OC_Util::addStyle($app, $f); |
| 157 | 157 | } |
| 158 | 158 | } else { |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | * if an array is given it will add all styles |
| 168 | 168 | */ |
| 169 | 169 | function vendor_style($app, $file = null) { |
| 170 | - if(is_array($file)) { |
|
| 171 | - foreach($file as $f) { |
|
| 170 | + if (is_array($file)) { |
|
| 171 | + foreach ($file as $f) { |
|
| 172 | 172 | OC_Util::addVendorStyle($app, $f); |
| 173 | 173 | } |
| 174 | 174 | } else { |
@@ -192,13 +192,13 @@ discard block |
||
| 192 | 192 | * if an array is given it will add all components |
| 193 | 193 | */ |
| 194 | 194 | function component($app, $file) { |
| 195 | - if(is_array($file)) { |
|
| 196 | - foreach($file as $f) { |
|
| 197 | - $url = link_to($app, 'component/' . $f . '.html'); |
|
| 195 | + if (is_array($file)) { |
|
| 196 | + foreach ($file as $f) { |
|
| 197 | + $url = link_to($app, 'component/'.$f.'.html'); |
|
| 198 | 198 | OC_Util::addHeader('link', array('rel' => 'import', 'href' => $url)); |
| 199 | 199 | } |
| 200 | 200 | } else { |
| 201 | - $url = link_to($app, 'component/' . $file . '.html'); |
|
| 201 | + $url = link_to($app, 'component/'.$file.'.html'); |
|
| 202 | 202 | OC_Util::addHeader('link', array('rel' => 'import', 'href' => $url)); |
| 203 | 203 | } |
| 204 | 204 | } |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * For further information have a look at \OCP\IURLGenerator::linkTo |
| 214 | 214 | */ |
| 215 | -function link_to( $app, $file, $args = array() ) { |
|
| 215 | +function link_to($app, $file, $args = array()) { |
|
| 216 | 216 | return \OC::$server->getURLGenerator()->linkTo($app, $file, $args); |
| 217 | 217 | } |
| 218 | 218 | |
@@ -232,8 +232,8 @@ discard block |
||
| 232 | 232 | * |
| 233 | 233 | * For further information have a look at \OCP\IURLGenerator::imagePath |
| 234 | 234 | */ |
| 235 | -function image_path( $app, $image ) { |
|
| 236 | - return \OC::$server->getURLGenerator()->imagePath( $app, $image ); |
|
| 235 | +function image_path($app, $image) { |
|
| 236 | + return \OC::$server->getURLGenerator()->imagePath($app, $image); |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
@@ -241,8 +241,8 @@ discard block |
||
| 241 | 241 | * @param string $mimetype mimetype |
| 242 | 242 | * @return string link to the image |
| 243 | 243 | */ |
| 244 | -function mimetype_icon( $mimetype ) { |
|
| 245 | - return \OC::$server->getMimeTypeDetector()->mimeTypeIcon( $mimetype ); |
|
| 244 | +function mimetype_icon($mimetype) { |
|
| 245 | + return \OC::$server->getMimeTypeDetector()->mimeTypeIcon($mimetype); |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | /** |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @param string $path path of file |
| 252 | 252 | * @return string link to the preview |
| 253 | 253 | */ |
| 254 | -function preview_icon( $path ) { |
|
| 254 | +function preview_icon($path) { |
|
| 255 | 255 | return \OC::$server->getURLGenerator()->linkToRoute('core.Preview.getPreview', ['x' => 32, 'y' => 32, 'file' => $path]); |
| 256 | 256 | } |
| 257 | 257 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * @param string $token |
| 261 | 261 | * @return string |
| 262 | 262 | */ |
| 263 | -function publicPreview_icon ( $path, $token ) { |
|
| 263 | +function publicPreview_icon($path, $token) { |
|
| 264 | 264 | return \OC::$server->getURLGenerator()->linkToRoute('files_sharing.PublicPreview.getPreview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); |
| 265 | 265 | } |
| 266 | 266 | |
@@ -271,8 +271,8 @@ discard block |
||
| 271 | 271 | * |
| 272 | 272 | * For further information have a look at OC_Helper::humanFileSize |
| 273 | 273 | */ |
| 274 | -function human_file_size( $bytes ) { |
|
| 275 | - return OC_Helper::humanFileSize( $bytes ); |
|
| 274 | +function human_file_size($bytes) { |
|
| 275 | + return OC_Helper::humanFileSize($bytes); |
|
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | /** |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | * @param int $timestamp UNIX timestamp to strip |
| 281 | 281 | * @return int timestamp without time value |
| 282 | 282 | */ |
| 283 | -function strip_time($timestamp){ |
|
| 283 | +function strip_time($timestamp) { |
|
| 284 | 284 | $date = new \DateTime("@{$timestamp}"); |
| 285 | 285 | $date->setTime(0, 0, 0); |
| 286 | 286 | return intval($date->format('U')); |
@@ -298,15 +298,15 @@ discard block |
||
| 298 | 298 | /** @var \OC\DateTimeFormatter $formatter */ |
| 299 | 299 | $formatter = \OC::$server->query('DateTimeFormatter'); |
| 300 | 300 | |
| 301 | - if ($dateOnly){ |
|
| 301 | + if ($dateOnly) { |
|
| 302 | 302 | return $formatter->formatDateSpan($timestamp, $fromTime); |
| 303 | 303 | } |
| 304 | 304 | return $formatter->formatTimeSpan($timestamp, $fromTime); |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | -function html_select_options($options, $selected, $params=array()) { |
|
| 307 | +function html_select_options($options, $selected, $params = array()) { |
|
| 308 | 308 | if (!is_array($selected)) { |
| 309 | - $selected=array($selected); |
|
| 309 | + $selected = array($selected); |
|
| 310 | 310 | } |
| 311 | 311 | if (isset($params['combine']) && $params['combine']) { |
| 312 | 312 | $options = array_combine($options, $options); |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $label_name = $params['label']; |
| 320 | 320 | } |
| 321 | 321 | $html = ''; |
| 322 | - foreach($options as $value => $label) { |
|
| 322 | + foreach ($options as $value => $label) { |
|
| 323 | 323 | if ($value_name && is_array($label)) { |
| 324 | 324 | $value = $label[$value_name]; |
| 325 | 325 | } |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | $label = $label[$label_name]; |
| 328 | 328 | } |
| 329 | 329 | $select = in_array($value, $selected) ? ' selected="selected"' : ''; |
| 330 | - $html .= '<option value="' . \OCP\Util::sanitizeHTML($value) . '"' . $select . '>' . \OCP\Util::sanitizeHTML($label) . '</option>'."\n"; |
|
| 330 | + $html .= '<option value="'.\OCP\Util::sanitizeHTML($value).'"'.$select.'>'.\OCP\Util::sanitizeHTML($label).'</option>'."\n"; |
|
| 331 | 331 | } |
| 332 | 332 | return $html; |
| 333 | 333 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | </th> |
| 30 | 30 | <th id='headerName' class="hidden column-name"> |
| 31 | 31 | <div id="headerName-container"> |
| 32 | - <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a> |
|
| 32 | + <a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a> |
|
| 33 | 33 | <span id="selectedActionsList" class='selectedActions'> |
| 34 | 34 | <a href="" class="undelete"> |
| 35 | 35 | <span class="icon icon-history"></span> |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | </div> |
| 40 | 40 | </th> |
| 41 | 41 | <th id="headerDate" class="hidden column-mtime"> |
| 42 | - <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Deleted' )); ?></span><span class="sort-indicator"></span></a> |
|
| 42 | + <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Deleted')); ?></span><span class="sort-indicator"></span></a> |
|
| 43 | 43 | <span class="selectedActions"> |
| 44 | 44 | <a href="" class="delete-selected"> |
| 45 | 45 | <span><?php p($l->t('Delete'))?></span> |
@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | </li> |
| 27 | 27 | |
| 28 | 28 | <!-- The Admin Group --> |
| 29 | - <?php foreach($_["adminGroup"] as $adminGroup): ?> |
|
| 30 | - <li data-gid="admin" data-usercount="<?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup"> |
|
| 29 | + <?php foreach ($_["adminGroup"] as $adminGroup): ?> |
|
| 30 | + <li data-gid="admin" data-usercount="<?php if ($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup"> |
|
| 31 | 31 | <a href="#"><span class="groupname"><?php p($l->t('Admins')); ?></span></a> |
| 32 | 32 | <div class="app-navigation-entry-utils"> |
| 33 | 33 | <ul> |
| 34 | - <li class="app-navigation-entry-utils-counter"><?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></li> |
|
| 34 | + <li class="app-navigation-entry-utils-counter"><?php if ($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></li> |
|
| 35 | 35 | </ul> |
| 36 | 36 | </div> |
| 37 | 37 | </li> |
@@ -39,25 +39,25 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | <!-- Disabled Users --> |
| 41 | 41 | <?php $disabledUsersGroup = $_["disabledUsersGroup"] ?> |
| 42 | - <li data-gid="_disabledUsers" data-usercount="<?php if($disabledUsersGroup['usercount'] > 0) { p($disabledUsersGroup['usercount']); } ?>" class="isgroup"> |
|
| 42 | + <li data-gid="_disabledUsers" data-usercount="<?php if ($disabledUsersGroup['usercount'] > 0) { p($disabledUsersGroup['usercount']); } ?>" class="isgroup"> |
|
| 43 | 43 | <a href="#"><span class="groupname"><?php p($l->t('Disabled')); ?></span></a> |
| 44 | 44 | <div class="app-navigation-entry-utils"> |
| 45 | 45 | <ul> |
| 46 | - <li class="app-navigation-entry-utils-counter"><?php if($disabledUsersGroup['usercount'] > 0) { p($disabledUsersGroup['usercount']); } ?></li> |
|
| 46 | + <li class="app-navigation-entry-utils-counter"><?php if ($disabledUsersGroup['usercount'] > 0) { p($disabledUsersGroup['usercount']); } ?></li> |
|
| 47 | 47 | </ul> |
| 48 | 48 | </div> |
| 49 | 49 | </li> |
| 50 | 50 | |
| 51 | 51 | <!--List of Groups--> |
| 52 | - <?php foreach($_["groups"] as $group): ?> |
|
| 52 | + <?php foreach ($_["groups"] as $group): ?> |
|
| 53 | 53 | <li data-gid="<?php p($group['name']) ?>" data-usercount="<?php p($group['usercount']) ?>" class="isgroup"> |
| 54 | 54 | <a href="#" class="dorename"> |
| 55 | 55 | <span class="groupname"><?php p($group['name']); ?></span> |
| 56 | 56 | </a> |
| 57 | 57 | <div class="app-navigation-entry-utils"> |
| 58 | 58 | <ul> |
| 59 | - <li class="app-navigation-entry-utils-counter"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></li> |
|
| 60 | - <?php if($_['isAdmin']): ?> |
|
| 59 | + <li class="app-navigation-entry-utils-counter"><?php if ($group['usercount'] > 0) { p($group['usercount']); } ?></li> |
|
| 60 | + <?php if ($_['isAdmin']): ?> |
|
| 61 | 61 | <li class="app-navigation-entry-utils-menu-button delete"> |
| 62 | 62 | <button class="icon-delete"></button> |
| 63 | 63 | </li> |
@@ -39,16 +39,16 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | <div id="quota" class="section"> |
| 41 | 41 | <progress value="<?php p($_['usage_relative']); ?>" max="100" |
| 42 | - <?php if($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress> |
|
| 42 | + <?php if ($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress> |
|
| 43 | 43 | |
| 44 | - <div style="width:<?php p($_['usage_relative']);?>%" class="quotatext-fg"> |
|
| 44 | + <div style="width:<?php p($_['usage_relative']); ?>%" class="quotatext-fg"> |
|
| 45 | 45 | <p class="quotatext"> |
| 46 | 46 | <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?> |
| 47 | 47 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>', |
| 48 | - [$_['usage'], $_['total_space']]));?> |
|
| 48 | + [$_['usage'], $_['total_space']])); ?> |
|
| 49 | 49 | <?php else: ?> |
| 50 | 50 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)', |
| 51 | - [$_['usage'], $_['total_space'], $_['usage_relative']]));?> |
|
| 51 | + [$_['usage'], $_['total_space'], $_['usage_relative']])); ?> |
|
| 52 | 52 | <?php endif ?> |
| 53 | 53 | </p> |
| 54 | 54 | </div> |
@@ -56,10 +56,10 @@ discard block |
||
| 56 | 56 | <p class="quotatext"> |
| 57 | 57 | <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?> |
| 58 | 58 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>', |
| 59 | - [$_['usage'], $_['total_space']]));?> |
|
| 59 | + [$_['usage'], $_['total_space']])); ?> |
|
| 60 | 60 | <?php else: ?> |
| 61 | 61 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)', |
| 62 | - [$_['usage'], $_['total_space'], $_['usage_relative']]));?> |
|
| 62 | + [$_['usage'], $_['total_space'], $_['usage_relative']])); ?> |
|
| 63 | 63 | <?php endif ?> |
| 64 | 64 | </p> |
| 65 | 65 | </div> |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | </div> |
| 96 | 96 | </div> |
| 97 | 97 | <span class="icon-checkmark hidden"></span> |
| 98 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 98 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 99 | 99 | <input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>"> |
| 100 | 100 | <?php } ?> |
| 101 | 101 | </form> |
@@ -112,15 +112,15 @@ discard block |
||
| 112 | 112 | </span> |
| 113 | 113 | </h2> |
| 114 | 114 | <input type="text" id="displayname" name="displayname" |
| 115 | - <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
| 115 | + <?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
| 116 | 116 | value="<?php p($_['displayName']) ?>" |
| 117 | 117 | autocomplete="on" autocapitalize="none" autocorrect="off" /> |
| 118 | - <?php if(!$_['displayNameChangeSupported']) { ?> |
|
| 119 | - <span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span> |
|
| 118 | + <?php if (!$_['displayNameChangeSupported']) { ?> |
|
| 119 | + <span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span> |
|
| 120 | 120 | <?php } ?> |
| 121 | 121 | <span class="icon-checkmark hidden"></span> |
| 122 | 122 | <span class="icon-error hidden" ></span> |
| 123 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 123 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 124 | 124 | <input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>"> |
| 125 | 125 | <?php } ?> |
| 126 | 126 | </form> |
@@ -133,10 +133,10 @@ discard block |
||
| 133 | 133 | <span class="icon-triangle-s"></span> |
| 134 | 134 | </span> |
| 135 | 135 | </h2> |
| 136 | - <div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>"> |
|
| 136 | + <div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>"> |
|
| 137 | 137 | <img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src=" |
| 138 | 138 | <?php |
| 139 | - switch($_['emailVerification']) { |
|
| 139 | + switch ($_['emailVerification']) { |
|
| 140 | 140 | case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: |
| 141 | 141 | p(image_path('core', 'actions/verifying.svg')); |
| 142 | 142 | break; |
@@ -149,18 +149,18 @@ discard block |
||
| 149 | 149 | ?>"> |
| 150 | 150 | </div> |
| 151 | 151 | <input type="email" name="email" id="email" value="<?php p($_['email']); ?>" |
| 152 | - <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
| 152 | + <?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
| 153 | 153 | placeholder="<?php p($l->t('Your email address')); ?>" |
| 154 | 154 | autocomplete="on" autocapitalize="none" autocorrect="off" /> |
| 155 | 155 | <span class="icon-checkmark hidden"></span> |
| 156 | 156 | <span class="icon-error hidden" ></span> |
| 157 | - <?php if(!$_['displayNameChangeSupported']) { ?> |
|
| 158 | - <span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span> |
|
| 157 | + <?php if (!$_['displayNameChangeSupported']) { ?> |
|
| 158 | + <span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span> |
|
| 159 | 159 | <?php } ?> |
| 160 | - <?php if($_['displayNameChangeSupported']) { ?> |
|
| 160 | + <?php if ($_['displayNameChangeSupported']) { ?> |
|
| 161 | 161 | <em><?php p($l->t('For password reset and notifications')); ?></em> |
| 162 | 162 | <?php } ?> |
| 163 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 163 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 164 | 164 | <input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>"> |
| 165 | 165 | <?php } ?> |
| 166 | 166 | </form> |
@@ -174,12 +174,12 @@ discard block |
||
| 174 | 174 | <span class="icon-triangle-s"></span> |
| 175 | 175 | </span> |
| 176 | 176 | </h2> |
| 177 | - <input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 177 | + <input type="tel" id="phone" name="phone" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 178 | 178 | value="<?php p($_['phone']) ?>" |
| 179 | 179 | placeholder="<?php p($l->t('Your phone number')); ?>" |
| 180 | 180 | autocomplete="on" autocapitalize="none" autocorrect="off" /> |
| 181 | 181 | <span class="icon-checkmark hidden"></span> |
| 182 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 182 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 183 | 183 | <input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>"> |
| 184 | 184 | <?php } ?> |
| 185 | 185 | </form> |
@@ -194,12 +194,12 @@ discard block |
||
| 194 | 194 | <span class="icon-triangle-s"></span> |
| 195 | 195 | </span> |
| 196 | 196 | </h2> |
| 197 | - <input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 197 | + <input type="text" id="address" name="address" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 198 | 198 | placeholder="<?php p($l->t('Your postal address')); ?>" |
| 199 | 199 | value="<?php p($_['address']) ?>" |
| 200 | 200 | autocomplete="on" autocapitalize="none" autocorrect="off" /> |
| 201 | 201 | <span class="icon-checkmark hidden"></span> |
| 202 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 202 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 203 | 203 | <input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>"> |
| 204 | 204 | <?php } ?> |
| 205 | 205 | </form> |
@@ -214,11 +214,11 @@ discard block |
||
| 214 | 214 | <span class="icon-triangle-s"></span> |
| 215 | 215 | </span> |
| 216 | 216 | </h2> |
| 217 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 218 | - <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>"> |
|
| 217 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 218 | + <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>"> |
|
| 219 | 219 | <img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src=" |
| 220 | 220 | <?php |
| 221 | - switch($_['websiteVerification']) { |
|
| 221 | + switch ($_['websiteVerification']) { |
|
| 222 | 222 | case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: |
| 223 | 223 | p(image_path('core', 'actions/verifying.svg')); |
| 224 | 224 | break; |
@@ -229,13 +229,13 @@ discard block |
||
| 229 | 229 | p(image_path('core', 'actions/verify.svg')); |
| 230 | 230 | } |
| 231 | 231 | ?>" |
| 232 | - <?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
| 232 | + <?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
| 233 | 233 | > |
| 234 | 234 | <div class="verification-dialog popovermenu bubble menu"> |
| 235 | 235 | <div class="verification-dialog-content"> |
| 236 | 236 | <p class="explainVerification"></p> |
| 237 | 237 | <p class="verificationCode"></p> |
| 238 | - <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p> |
|
| 238 | + <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p> |
|
| 239 | 239 | </div> |
| 240 | 240 | </div> |
| 241 | 241 | </div> |
@@ -243,10 +243,10 @@ discard block |
||
| 243 | 243 | <input type="text" name="website" id="website" value="<?php p($_['website']); ?>" |
| 244 | 244 | placeholder="<?php p($l->t('Link https://…')); ?>" |
| 245 | 245 | autocomplete="on" autocapitalize="none" autocorrect="off" |
| 246 | - <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 246 | + <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 247 | 247 | /> |
| 248 | 248 | <span class="icon-checkmark hidden"></span> |
| 249 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 249 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 250 | 250 | <input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>"> |
| 251 | 251 | <?php } ?> |
| 252 | 252 | </form> |
@@ -261,11 +261,11 @@ discard block |
||
| 261 | 261 | <span class="icon-triangle-s"></span> |
| 262 | 262 | </span> |
| 263 | 263 | </h2> |
| 264 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 265 | - <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>"> |
|
| 264 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 265 | + <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>"> |
|
| 266 | 266 | <img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src=" |
| 267 | 267 | <?php |
| 268 | - switch($_['twitterVerification']) { |
|
| 268 | + switch ($_['twitterVerification']) { |
|
| 269 | 269 | case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: |
| 270 | 270 | p(image_path('core', 'actions/verifying.svg')); |
| 271 | 271 | break; |
@@ -276,13 +276,13 @@ discard block |
||
| 276 | 276 | p(image_path('core', 'actions/verify.svg')); |
| 277 | 277 | } |
| 278 | 278 | ?>" |
| 279 | - <?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
| 279 | + <?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
| 280 | 280 | > |
| 281 | 281 | <div class="verification-dialog popovermenu bubble menu"> |
| 282 | 282 | <div class="verification-dialog-content"> |
| 283 | 283 | <p class="explainVerification"></p> |
| 284 | 284 | <p class="verificationCode"></p> |
| 285 | - <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p> |
|
| 285 | + <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p> |
|
| 286 | 286 | </div> |
| 287 | 287 | </div> |
| 288 | 288 | </div> |
@@ -290,10 +290,10 @@ discard block |
||
| 290 | 290 | <input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>" |
| 291 | 291 | placeholder="<?php p($l->t('Twitter handle @…')); ?>" |
| 292 | 292 | autocomplete="on" autocapitalize="none" autocorrect="off" |
| 293 | - <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 293 | + <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?> |
|
| 294 | 294 | /> |
| 295 | 295 | <span class="icon-checkmark hidden"></span> |
| 296 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
| 296 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
| 297 | 297 | <input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>"> |
| 298 | 298 | <?php } ?> |
| 299 | 299 | </form> |
@@ -320,47 +320,47 @@ discard block |
||
| 320 | 320 | <?php if (isset($_['activelanguage'])) { ?> |
| 321 | 321 | <form id="language" class="section"> |
| 322 | 322 | <h2> |
| 323 | - <label for="languageinput"><?php p($l->t('Language'));?></label> |
|
| 323 | + <label for="languageinput"><?php p($l->t('Language')); ?></label> |
|
| 324 | 324 | </h2> |
| 325 | - <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>"> |
|
| 326 | - <option value="<?php p($_['activelanguage']['code']);?>"> |
|
| 327 | - <?php p($_['activelanguage']['name']);?> |
|
| 325 | + <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>"> |
|
| 326 | + <option value="<?php p($_['activelanguage']['code']); ?>"> |
|
| 327 | + <?php p($_['activelanguage']['name']); ?> |
|
| 328 | 328 | </option> |
| 329 | - <?php foreach($_['commonlanguages'] as $language):?> |
|
| 330 | - <option value="<?php p($language['code']);?>"> |
|
| 331 | - <?php p($language['name']);?> |
|
| 329 | + <?php foreach ($_['commonlanguages'] as $language):?> |
|
| 330 | + <option value="<?php p($language['code']); ?>"> |
|
| 331 | + <?php p($language['name']); ?> |
|
| 332 | 332 | </option> |
| 333 | - <?php endforeach;?> |
|
| 333 | + <?php endforeach; ?> |
|
| 334 | 334 | <optgroup label="––––––––––"></optgroup> |
| 335 | - <?php foreach($_['languages'] as $language):?> |
|
| 336 | - <option value="<?php p($language['code']);?>"> |
|
| 337 | - <?php p($language['name']);?> |
|
| 335 | + <?php foreach ($_['languages'] as $language):?> |
|
| 336 | + <option value="<?php p($language['code']); ?>"> |
|
| 337 | + <?php p($language['name']); ?> |
|
| 338 | 338 | </option> |
| 339 | - <?php endforeach;?> |
|
| 339 | + <?php endforeach; ?> |
|
| 340 | 340 | </select> |
| 341 | 341 | <a href="https://www.transifex.com/nextcloud/nextcloud/" |
| 342 | 342 | target="_blank" rel="noreferrer noopener"> |
| 343 | - <em><?php p($l->t('Help translate'));?></em> |
|
| 343 | + <em><?php p($l->t('Help translate')); ?></em> |
|
| 344 | 344 | </a> |
| 345 | 345 | </form> |
| 346 | 346 | <?php } ?> |
| 347 | 347 | </div> |
| 348 | 348 | <div class="personal-settings-setting-box personal-settings-password-box"> |
| 349 | 349 | <?php |
| 350 | - if($_['passwordChangeSupported']) { |
|
| 350 | + if ($_['passwordChangeSupported']) { |
|
| 351 | 351 | script('jquery-showpassword'); |
| 352 | 352 | ?> |
| 353 | 353 | <form id="passwordform" class="section"> |
| 354 | - <h2 class="inlineblock"><?php p($l->t('Password'));?></h2> |
|
| 354 | + <h2 class="inlineblock"><?php p($l->t('Password')); ?></h2> |
|
| 355 | 355 | <div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div> |
| 356 | 356 | |
| 357 | 357 | <label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label> |
| 358 | 358 | <input type="password" id="pass1" name="oldpassword" |
| 359 | - placeholder="<?php p($l->t('Current password'));?>" |
|
| 359 | + placeholder="<?php p($l->t('Current password')); ?>" |
|
| 360 | 360 | autocomplete="off" autocapitalize="none" autocorrect="off" /> |
| 361 | 361 | |
| 362 | 362 | <div class="personal-show-container"> |
| 363 | - <label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label> |
|
| 363 | + <label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label> |
|
| 364 | 364 | <input type="password" id="pass2" name="newpassword" |
| 365 | 365 | placeholder="<?php p($l->t('New password')); ?>" |
| 366 | 366 | data-typetoggle="#personal-show" |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\AdminAudit\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\AdminAudit\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |
@@ -6,15 +6,15 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\AdminAudit\\Actions\\Action' => $baseDir . '/../lib/Actions/Action.php', |
|
| 10 | - 'OCA\\AdminAudit\\Actions\\AppManagement' => $baseDir . '/../lib/Actions/AppManagement.php', |
|
| 11 | - 'OCA\\AdminAudit\\Actions\\Auth' => $baseDir . '/../lib/Actions/Auth.php', |
|
| 12 | - 'OCA\\AdminAudit\\Actions\\Console' => $baseDir . '/../lib/Actions/Console.php', |
|
| 13 | - 'OCA\\AdminAudit\\Actions\\Files' => $baseDir . '/../lib/Actions/Files.php', |
|
| 14 | - 'OCA\\AdminAudit\\Actions\\GroupManagement' => $baseDir . '/../lib/Actions/GroupManagement.php', |
|
| 15 | - 'OCA\\AdminAudit\\Actions\\Sharing' => $baseDir . '/../lib/Actions/Sharing.php', |
|
| 16 | - 'OCA\\AdminAudit\\Actions\\Trashbin' => $baseDir . '/../lib/Actions/Trashbin.php', |
|
| 17 | - 'OCA\\AdminAudit\\Actions\\UserManagement' => $baseDir . '/../lib/Actions/UserManagement.php', |
|
| 18 | - 'OCA\\AdminAudit\\Actions\\Versions' => $baseDir . '/../lib/Actions/Versions.php', |
|
| 19 | - 'OCA\\AdminAudit\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 9 | + 'OCA\\AdminAudit\\Actions\\Action' => $baseDir.'/../lib/Actions/Action.php', |
|
| 10 | + 'OCA\\AdminAudit\\Actions\\AppManagement' => $baseDir.'/../lib/Actions/AppManagement.php', |
|
| 11 | + 'OCA\\AdminAudit\\Actions\\Auth' => $baseDir.'/../lib/Actions/Auth.php', |
|
| 12 | + 'OCA\\AdminAudit\\Actions\\Console' => $baseDir.'/../lib/Actions/Console.php', |
|
| 13 | + 'OCA\\AdminAudit\\Actions\\Files' => $baseDir.'/../lib/Actions/Files.php', |
|
| 14 | + 'OCA\\AdminAudit\\Actions\\GroupManagement' => $baseDir.'/../lib/Actions/GroupManagement.php', |
|
| 15 | + 'OCA\\AdminAudit\\Actions\\Sharing' => $baseDir.'/../lib/Actions/Sharing.php', |
|
| 16 | + 'OCA\\AdminAudit\\Actions\\Trashbin' => $baseDir.'/../lib/Actions/Trashbin.php', |
|
| 17 | + 'OCA\\AdminAudit\\Actions\\UserManagement' => $baseDir.'/../lib/Actions/UserManagement.php', |
|
| 18 | + 'OCA\\AdminAudit\\Actions\\Versions' => $baseDir.'/../lib/Actions/Versions.php', |
|
| 19 | + 'OCA\\AdminAudit\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 20 | 20 | ); |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\DAV\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\DAV\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\Comments\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\Comments\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |