From 36b3bc8148648eaadcc3769b1624fe1dd4c8bf93 Mon Sep 17 00:00:00 2001
From: Christoph Wurst
Date: Thu, 9 Apr 2020 14:04:56 +0200
Subject: [PATCH] Use php keywords in lowercase
Signed-off-by: Christoph Wurst
---
.../ResourceBooking/ResourcePrincipalBackendTest.php | 2 +-
.../CalDAV/ResourceBooking/RoomPrincipalBackendTest.php | 2 +-
.../lib/Controller/UserStoragesController.php | 4 ++--
.../lib/Controller/DeletedShareAPIController.php | 2 +-
apps/user_ldap/lib/Mapping/AbstractMapping.php | 2 +-
core/Controller/SetupController.php | 4 ++--
core/templates/installation.php | 8 ++++----
lib/private/ContactsManager.php | 2 +-
lib/private/Group/Backend.php | 2 +-
lib/private/Group/Group.php | 2 +-
lib/private/Session/CryptoSessionData.php | 2 +-
lib/private/User/Backend.php | 2 +-
lib/private/legacy/OC_Helper.php | 2 +-
lib/private/legacy/OC_User.php | 2 +-
14 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php b/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
index 9a877bc3483..a92fdb8eb8c 100644
--- a/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
@@ -26,7 +26,7 @@ namespace OCA\DAV\Tests\unit\CalDAV\ResourceBooking;
use OCA\DAV\CalDAV\ResourceBooking\ResourcePrincipalBackend;
-Class ResourcePrincipalBackendTest extends AbstractPrincipalBackendTest {
+class ResourcePrincipalBackendTest extends AbstractPrincipalBackendTest {
protected function setUp(): void {
parent::setUp();
diff --git a/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php b/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
index 7a7ebad20cb..575dac2bed7 100644
--- a/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
@@ -26,7 +26,7 @@ namespace OCA\DAV\Tests\unit\CalDAV\ResourceBooking;
use OCA\DAV\CalDAV\ResourceBooking\RoomPrincipalBackend;
-Class RoomPrincipalBackendTest extends AbstractPrincipalBackendTest {
+class RoomPrincipalBackendTest extends AbstractPrincipalBackendTest {
protected function setUp(): void {
parent::setUp();
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index 345bd3e855d..787e7affaf5 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -135,7 +135,7 @@ class UserStoragesController extends StoragesController {
$backendOptions,
$mountOptions
);
- if ($newStorage instanceOf DataResponse) {
+ if ($newStorage instanceof DataResponse) {
return $newStorage;
}
@@ -184,7 +184,7 @@ class UserStoragesController extends StoragesController {
$backendOptions,
$mountOptions
);
- if ($storage instanceOf DataResponse) {
+ if ($storage instanceof DataResponse) {
return $storage;
}
$storage->setId($id);
diff --git a/apps/files_sharing/lib/Controller/DeletedShareAPIController.php b/apps/files_sharing/lib/Controller/DeletedShareAPIController.php
index 5f31459384e..b109a6282fa 100644
--- a/apps/files_sharing/lib/Controller/DeletedShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/DeletedShareAPIController.php
@@ -121,7 +121,7 @@ class DeletedShareAPIController extends OCSController {
}
$result['path'] = $userFolder->getRelativePath($node->getPath());
- if ($node instanceOf \OCP\Files\Folder) {
+ if ($node instanceof \OCP\Files\Folder) {
$result['item_type'] = 'folder';
} else {
$result['item_type'] = 'file';
diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php
index 14075da5c0e..5d445af6b7e 100644
--- a/apps/user_ldap/lib/Mapping/AbstractMapping.php
+++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php
@@ -289,7 +289,7 @@ abstract class AbstractMapping {
* @return bool true on success, false when at least one row was not
* deleted
*/
- public function clearCb(Callable $preCallback, Callable $postCallback): bool {
+ public function clearCb(callable $preCallback, callable $postCallback): bool {
$picker = $this->dbc->getQueryBuilder();
$picker->select('owncloud_name')
->from($this->getTableName());
diff --git a/core/Controller/SetupController.php b/core/Controller/SetupController.php
index 7449717831b..7df02dfea0e 100644
--- a/core/Controller/SetupController.php
+++ b/core/Controller/SetupController.php
@@ -70,7 +70,7 @@ class SetupController {
return;
}
- if(isset($post['install']) AND $post['install']=='true') {
+ if(isset($post['install']) and $post['install']=='true') {
// We have to launch the installation process :
$e = $this->setupHelper->install($post);
$errors = ['errors' => $e];
@@ -141,7 +141,7 @@ class SetupController {
$directoryIsSet = isset($post['directory']);
$adminAccountIsSet = isset($post['adminlogin']);
- if ($dbIsSet AND $directoryIsSet AND $adminAccountIsSet) {
+ if ($dbIsSet and $directoryIsSet and $adminAccountIsSet) {
$post['install'] = 'true';
}
$post['dbIsSet'] = $dbIsSet;
diff --git a/core/templates/installation.php b/core/templates/installation.php
index 25052782e6f..fce70cdc3d3 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -54,13 +54,13 @@ script('core', [
- 0): ?>
+ 0): ?>
- 0): ?>
+ 0): ?>