summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 14:04:56 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 14:04:56 +0200
commit36b3bc8148648eaadcc3769b1624fe1dd4c8bf93 (patch)
treea9f8cda485a75c2e1b9afd559beeb3ded4456942 /lib/private
parent66b743385e3e8cadb6d848cf64e1d86da2fd81b3 (diff)
downloadnextcloud-server-36b3bc8148648eaadcc3769b1624fe1dd4c8bf93.tar.gz
nextcloud-server-36b3bc8148648eaadcc3769b1624fe1dd4c8bf93.zip
Use php keywords in lowercase
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/ContactsManager.php2
-rw-r--r--lib/private/Group/Backend.php2
-rw-r--r--lib/private/Group/Group.php2
-rw-r--r--lib/private/Session/CryptoSessionData.php2
-rw-r--r--lib/private/User/Backend.php2
-rw-r--r--lib/private/legacy/OC_Helper.php2
-rw-r--r--lib/private/legacy/OC_User.php2
7 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/ContactsManager.php b/lib/private/ContactsManager.php
index 2913e2b5864..6f37ed0fc2c 100644
--- a/lib/private/ContactsManager.php
+++ b/lib/private/ContactsManager.php
@@ -146,7 +146,7 @@ namespace OC {
* @return IAddressBook[]
* @since 16.0.0
*/
- public function getUserAddressBooks(): Array {
+ public function getUserAddressBooks(): array {
$this->loadAddressBooks();
return $this->addressBooks;
}
diff --git a/lib/private/Group/Backend.php b/lib/private/Group/Backend.php
index 6c2973542cf..4e2f912e7fc 100644
--- a/lib/private/Group/Backend.php
+++ b/lib/private/Group/Backend.php
@@ -53,7 +53,7 @@ abstract class Backend implements \OCP\GroupInterface {
*/
public function getSupportedActions() {
$actions = 0;
- foreach($this->possibleActions AS $action => $methodName) {
+ foreach($this->possibleActions as $action => $methodName) {
if(method_exists($this, $methodName)) {
$actions |= $action;
}
diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php
index 90b4221b414..d9b2785a7a7 100644
--- a/lib/private/Group/Group.php
+++ b/lib/private/Group/Group.php
@@ -285,7 +285,7 @@ class Group implements IGroup {
public function countDisabled() {
$users = false;
foreach ($this->backends as $backend) {
- if($backend instanceOf ICountDisabledInGroup) {
+ if($backend instanceof ICountDisabledInGroup) {
if($users === false) {
//we could directly add to a bool variable, but this would
//be ugly
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php
index a0178c7eea2..da9bf950ba2 100644
--- a/lib/private/Session/CryptoSessionData.php
+++ b/lib/private/Session/CryptoSessionData.php
@@ -50,7 +50,7 @@ class CryptoSessionData implements \ArrayAccess, ISession {
protected $sessionValues;
/** @var bool */
protected $isModified = false;
- CONST encryptedSessionName = 'encrypted_session_data';
+ const encryptedSessionName = 'encrypted_session_data';
/**
* @param ISession $session
diff --git a/lib/private/User/Backend.php b/lib/private/User/Backend.php
index 7d705811eaf..f971c25fe96 100644
--- a/lib/private/User/Backend.php
+++ b/lib/private/User/Backend.php
@@ -68,7 +68,7 @@ abstract class Backend implements UserInterface {
*/
public function getSupportedActions() {
$actions = 0;
- foreach($this->possibleActions AS $action => $methodName) {
+ foreach($this->possibleActions as $action => $methodName) {
if(method_exists($this, $methodName)) {
$actions |= $action;
}
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 7cb6e228b5d..73154909a4a 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -367,7 +367,7 @@ class OC_Helper {
$it = new RecursiveIteratorIterator($aIt);
while ($it->valid()) {
- if (((isset($index) AND ($it->key() == $index)) OR !isset($index)) AND ($it->current() == $needle)) {
+ if (((isset($index) and ($it->key() == $index)) or !isset($index)) and ($it->current() == $needle)) {
return $aIt->key();
}
diff --git a/lib/private/legacy/OC_User.php b/lib/private/legacy/OC_User.php
index d96400ad1d4..a9de5cdef9f 100644
--- a/lib/private/legacy/OC_User.php
+++ b/lib/private/legacy/OC_User.php
@@ -80,7 +80,7 @@ class OC_User {
\OC::$server->getUserManager()->registerBackend($backend);
} else {
// You'll never know what happens
- if (null === $backend OR !is_string($backend)) {
+ if (null === $backend or !is_string($backend)) {
$backend = 'database';
}