summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-25 21:53:04 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-25 21:53:04 +0100
commit23eb0462e56d72ed24b7b02483069844bd2919b8 (patch)
tree0d1917534ef451fa259eb89ddabdf9449e83d7c3 /lib
parent3cf321fdfc4235a87015a9af2f59c63220016c65 (diff)
downloadnextcloud-server-23eb0462e56d72ed24b7b02483069844bd2919b8.tar.gz
nextcloud-server-23eb0462e56d72ed24b7b02483069844bd2919b8.zip
Use lowercase true, false and null constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php2
-rw-r--r--lib/private/Files/Cache/Wrapper/CacheJail.php2
-rw-r--r--lib/private/Template/JSCombiner.php2
-rw-r--r--lib/private/legacy/util.php2
-rw-r--r--lib/public/Util.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index 9efa42b9a4d..9dfc803c49e 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -159,7 +159,7 @@ class ContactsStore implements IContactsStore {
if ($ownGroupsOnly && $entry->getProperty('isLocalSystemBook') === true) {
$uid = $this->userManager->get($entry->getProperty('UID'));
- if ($uid === NULL) {
+ if ($uid === null) {
return false;
}
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php
index 6f951f978ad..92601e38d13 100644
--- a/lib/private/Files/Cache/Wrapper/CacheJail.php
+++ b/lib/private/Files/Cache/Wrapper/CacheJail.php
@@ -241,7 +241,7 @@ class CacheJail extends CacheWrapper {
$results = $this->getCache()->searchQuery($simpleQuery);
$results = $this->formatSearchResults($results);
- $limit = $query->getLimit() === 0 ? NULL : $query->getLimit();
+ $limit = $query->getLimit() === 0 ? null : $query->getLimit();
$results = array_slice($results, $query->getOffset(), $limit);
return $results;
diff --git a/lib/private/Template/JSCombiner.php b/lib/private/Template/JSCombiner.php
index a6908ce8071..83fc717c9c5 100644
--- a/lib/private/Template/JSCombiner.php
+++ b/lib/private/Template/JSCombiner.php
@@ -133,7 +133,7 @@ class JSCombiner {
$deps = json_decode($deps, true);
- if ($deps === NULL) {
+ if ($deps === null) {
return false;
}
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index bf0a1b9bb20..63edf34e029 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -795,7 +795,7 @@ class OC_Util {
// is_writable doesn't work for NFS mounts, so try to write a file and check if it exists.
$testFile = sprintf('%s/%s.tmp', $CONFIG_DATADIRECTORY, uniqid('data_dir_writability_test_'));
$handle = fopen($testFile, 'w');
- if (!$handle || fwrite($handle, 'Test write operation') === FALSE) {
+ if (!$handle || fwrite($handle, 'Test write operation') === false) {
$permissionsHint = $l->t('Permissions can usually be fixed by giving the webserver write access to the root directory. See %s.',
[$urlGenerator->linkToDocs('admin-dir_permissions')]);
$errors[] = [
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 544808f5ece..74a4b18f5d4 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -260,7 +260,7 @@ class Util {
$host_name = \OC::$server->getRequest()->getServerHost();
// strip away port number (if existing)
$colon_pos = strpos($host_name, ':');
- if ($colon_pos != FALSE) {
+ if ($colon_pos != false) {
$host_name = substr($host_name, 0, $colon_pos);
}
return $host_name;