Browse Source
Fix array method usages with a proper call
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/8052/head
Morris Jobke
8 years ago
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
3 changed files with
3 additions and
3 deletions
-
apps/comments/lib/Activity/Listener.php
-
apps/dav/lib/CalDAV/CalDavBackend.php
-
apps/files_sharing/lib/Migration/OwncloudGuestShareType.php
|
|
|
@ -77,7 +77,7 @@ class Listener { |
|
|
|
*/ |
|
|
|
public function commentEvent(CommentsEvent $event) { |
|
|
|
if ($event->getComment()->getObjectType() !== 'files' |
|
|
|
|| !in_array($event->getEvent(), [CommentsEvent::EVENT_ADD]) |
|
|
|
|| $event->getEvent() !== CommentsEvent::EVENT_ADD |
|
|
|
|| !$this->appManager->isInstalled('activity')) { |
|
|
|
// Comment not for file, not adding a comment or no activity-app enabled (save the energy)
|
|
|
|
return; |
|
|
|
|
|
|
|
@ -2261,7 +2261,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription |
|
|
|
$query->execute(); |
|
|
|
} |
|
|
|
|
|
|
|
if (in_array($property->name, array_keys(self::$indexParameters))) { |
|
|
|
if (array_key_exists($property->name, self::$indexParameters)) { |
|
|
|
$parameters = $property->parameters(); |
|
|
|
$indexedParametersForProperty = self::$indexParameters[$property->name]; |
|
|
|
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ class OwncloudGuestShareType implements IRepairStep { |
|
|
|
|
|
|
|
protected function shouldRun() { |
|
|
|
$appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0'); |
|
|
|
return in_array($appVersion, ['0.10.0']) || |
|
|
|
return $appVersion === '0.10.0' || |
|
|
|
$this->config->getAppValue('core', 'vendor', '') === 'owncloud'; |
|
|
|
} |
|
|
|
|
|
|
|
|