Skip to content

Commit a661f04

Browse files
committed
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent 9be6050 commit a661f04

File tree

79 files changed

+101
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+101
-101
lines changed

apps/dav/lib/DAV/Sharing/Backend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function getShares($resourceId) {
193193
'href' => "principal:${row['principaluri']}",
194194
'commonName' => isset($p['{DAV:}displayname']) ? $p['{DAV:}displayname'] : '',
195195
'status' => 1,
196-
'readOnly' => ((int) $row['access'] === self::ACCESS_READ),
196+
'readOnly' => (int) $row['access'] === self::ACCESS_READ,
197197
'{http://owncloud.org/ns}principal' => $row['principaluri'],
198198
'{http://owncloud.org/ns}group-share' => is_null($p)
199199
];

apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function getChildren() {
147147

148148
function childExists($tagId) {
149149
try {
150-
$result = ($this->tagMapper->haveTag([$this->objectId], $this->objectType, $tagId, true));
150+
$result = $this->tagMapper->haveTag([$this->objectId], $this->objectType, $tagId, true);
151151

152152
if ($result) {
153153
$tags = $this->tagManager->getTagsByIds([$tagId]);

apps/encryption/lib/KeyManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function validateMasterKey() {
211211
*/
212212
public function recoveryKeyExists() {
213213
$key = $this->getRecoveryKey();
214-
return (!empty($key));
214+
return !empty($key);
215215
}
216216

217217
/**

apps/files/lib/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function getNavigationManager() {
5757
public static function extendJsConfig($settings) {
5858
$appConfig = json_decode($settings['array']['oc_appconfig'], true);
5959

60-
$maxChunkSize = (int)(\OC::$server->getConfig()->getAppValue('files', 'max_chunk_size', (10 * 1024 * 1024)));
60+
$maxChunkSize = (int)\OC::$server->getConfig()->getAppValue('files', 'max_chunk_size', 10 * 1024 * 1024);
6161
$appConfig['files'] = [
6262
'max_chunk_size' => $maxChunkSize
6363
];

apps/files/lib/Command/Scan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
322322
* @return string
323323
*/
324324
protected function formatExecTime() {
325-
list($secs, ) = explode('.', sprintf("%.1f", ($this->execTime)));
325+
list($secs, ) = explode('.', sprintf("%.1f", $this->execTime));
326326

327327
# if you want to have microseconds add this: . '.' . $tens;
328328
return date('H:i:s', $secs);

apps/files/lib/Command/ScanAppData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
260260
* @return string
261261
*/
262262
protected function formatExecTime() {
263-
list($secs, ) = explode('.', sprintf("%.1f", ($this->execTime)));
263+
list($secs, ) = explode('.', sprintf("%.1f", $this->execTime));
264264

265265
# if you want to have microseconds add this: . '.' . $tens;
266266
return date('H:i:s', $secs);

apps/files/lib/Settings/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getForm() {
5656
$maxUploadFilesize = Util::humanFileSize(min($upload_max_filesize, $post_max_size));
5757

5858
$parameters = [
59-
'uploadChangable' => (($htaccessWorking and $htaccessWritable) or $userIniWritable ),
59+
'uploadChangable' => ($htaccessWorking and $htaccessWritable) or $userIniWritable,
6060
'uploadMaxFilesize' => $maxUploadFilesize,
6161
// max possible makes only sense on a 32 bit system
6262
'displayMaxPossibleUploadSize' => PHP_INT_SIZE === 4,

apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(IL10N $l) {
3939
->setScheme(self::SCHEME_AMAZONS3_ACCESSKEY)
4040
->setText($l->t('Access key'))
4141
->addParameters([
42-
(new DefinitionParameter('key', $l->t('Access key'))),
42+
new DefinitionParameter('key', $l->t('Access key')),
4343
(new DefinitionParameter('secret', $l->t('Secret key')))
4444
->setType(DefinitionParameter::VALUE_PASSWORD),
4545
]);

apps/files_external/lib/Lib/Auth/OAuth1/OAuth1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(IL10N $l) {
3939
->addParameters([
4040
(new DefinitionParameter('configured', 'configured'))
4141
->setType(DefinitionParameter::VALUE_HIDDEN),
42-
(new DefinitionParameter('app_key', $l->t('App key'))),
42+
new DefinitionParameter('app_key', $l->t('App key')),
4343
(new DefinitionParameter('app_secret', $l->t('App secret')))
4444
->setType(DefinitionParameter::VALUE_PASSWORD),
4545
(new DefinitionParameter('token', 'token'))

apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(IL10N $l) {
3939
->addParameters([
4040
(new DefinitionParameter('configured', 'configured'))
4141
->setType(DefinitionParameter::VALUE_HIDDEN),
42-
(new DefinitionParameter('client_id', $l->t('Client ID'))),
42+
new DefinitionParameter('client_id', $l->t('Client ID')),
4343
(new DefinitionParameter('client_secret', $l->t('Client secret')))
4444
->setType(DefinitionParameter::VALUE_PASSWORD),
4545
(new DefinitionParameter('token', 'token'))

0 commit comments

Comments
 (0)