Passed
Push — master ( 13c7a9...8fcc0e )
by Christoph
15:42 queued 11s
created
lib/public/Authentication/TwoFactorAuth/IRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
  * @since 14.0.0
40 40
  */
41 41
 interface IRegistry {
42
-	public const EVENT_PROVIDER_ENABLED = self::class . '::enable';
43
-	public const EVENT_PROVIDER_DISABLED = self::class . '::disable';
42
+	public const EVENT_PROVIDER_ENABLED = self::class.'::enable';
43
+	public const EVENT_PROVIDER_DISABLED = self::class.'::disable';
44 44
 
45 45
 	/**
46 46
 	 * Get a key-value map of providers and their enabled/disabled state for
Please login to merge, or discard this patch.
lib/private/Files/Filesystem.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -410,17 +410,17 @@  discard block
 block discarded – undo
410 410
 		$userObject = $userManager->get($user);
411 411
 
412 412
 		if (is_null($userObject)) {
413
-			\OCP\Util::writeLog('files', ' Backends provided no user object for ' . $user, ILogger::ERROR);
413
+			\OCP\Util::writeLog('files', ' Backends provided no user object for '.$user, ILogger::ERROR);
414 414
 			// reset flag, this will make it possible to rethrow the exception if called again
415 415
 			unset(self::$usersSetup[$user]);
416
-			throw new \OC\User\NoUserException('Backends provided no user object for ' . $user);
416
+			throw new \OC\User\NoUserException('Backends provided no user object for '.$user);
417 417
 		}
418 418
 
419 419
 		$realUid = $userObject->getUID();
420 420
 		// workaround in case of different casings
421 421
 		if ($user !== $realUid) {
422 422
 			$stack = json_encode(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 50));
423
-			\OCP\Util::writeLog('files', 'initMountPoints() called with wrong user casing. This could be a bug. Expected: "' . $realUid . '" got "' . $user . '". Stack: ' . $stack, ILogger::WARN);
423
+			\OCP\Util::writeLog('files', 'initMountPoints() called with wrong user casing. This could be a bug. Expected: "'.$realUid.'" got "'.$user.'". Stack: '.$stack, ILogger::WARN);
424 424
 			$user = $realUid;
425 425
 
426 426
 			// again with the correct casing
@@ -453,11 +453,11 @@  discard block
 block discarded – undo
453 453
 		} else {
454 454
 			self::getMountManager()->addMount(new MountPoint(
455 455
 				new NullStorage([]),
456
-				'/' . $user
456
+				'/'.$user
457 457
 			));
458 458
 			self::getMountManager()->addMount(new MountPoint(
459 459
 				new NullStorage([]),
460
-				'/' . $user . '/files'
460
+				'/'.$user.'/files'
461 461
 			));
462 462
 		}
463 463
 		\OC_Hook::emit('OC_Filesystem', 'post_initMountPoints', ['user' => $user]);
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 	private static function listenForNewMountProviders(MountProviderCollection $mountConfigManager, IUserManager $userManager) {
473 473
 		if (!self::$listeningForProviders) {
474 474
 			self::$listeningForProviders = true;
475
-			$mountConfigManager->listen('\OC\Files\Config', 'registerMountProvider', function (IMountProvider $provider) use ($userManager) {
475
+			$mountConfigManager->listen('\OC\Files\Config', 'registerMountProvider', function(IMountProvider $provider) use ($userManager) {
476 476
 				foreach (Filesystem::$usersSetup as $user => $setup) {
477 477
 					$userObject = $userManager->get($user);
478 478
 					if ($userObject) {
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 	 * @return string
568 568
 	 */
569 569
 	public static function getLocalPath($path) {
570
-		$datadir = \OC_User::getHome(\OC_User::getUser()) . '/files';
570
+		$datadir = \OC_User::getHome(\OC_User::getUser()).'/files';
571 571
 		$newpath = $path;
572 572
 		if (strncmp($newpath, $datadir, strlen($datadir)) == 0) {
573 573
 			$newpath = substr($path, strlen($datadir));
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
 	public static function isValidPath($path) {
585 585
 		$path = self::normalizePath($path);
586 586
 		if (!$path || $path[0] !== '/') {
587
-			$path = '/' . $path;
587
+			$path = '/'.$path;
588 588
 		}
589 589
 		if (strpos($path, '/../') !== false || strrchr($path, '/') === '/..') {
590 590
 			return false;
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
 		 *        conversion should get removed as soon as all existing
806 806
 		 *        function calls have been fixed.
807 807
 		 */
808
-		$path = (string)$path;
808
+		$path = (string) $path;
809 809
 
810 810
 		$cacheKey = json_encode([$path, $stripTrailingSlash, $isAbsolutePath, $keepUnicode]);
811 811
 
@@ -823,13 +823,13 @@  discard block
 block discarded – undo
823 823
 		}
824 824
 
825 825
 		//add leading slash, if it is already there we strip it anyway
826
-		$path = '/' . $path;
826
+		$path = '/'.$path;
827 827
 
828 828
 		$patterns = [
829
-			'/\\\\/s',          // no windows style slashes
829
+			'/\\\\/s', // no windows style slashes
830 830
 			'/\/\.(\/\.)?\//s', // remove '/./'
831
-			'/\/{2,}/s',        // remove sequence of slashes
832
-			'/\/\.$/s',         // remove trailing /.
831
+			'/\/{2,}/s', // remove sequence of slashes
832
+			'/\/\.$/s', // remove trailing /.
833 833
 		];
834 834
 
835 835
 		do {
Please login to merge, or discard this patch.
lib/private/Files/ObjectStore/S3ObjectTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 	 * @since 7.0.0
51 51
 	 */
52 52
 	public function readObject($urn) {
53
-		return SeekableHttpStream::open(function ($range) use ($urn) {
53
+		return SeekableHttpStream::open(function($range) use ($urn) {
54 54
 			$command = $this->getConnection()->getCommand('GetObject', [
55 55
 				'Bucket' => $this->bucket,
56 56
 				'Key' => $urn,
57
-				'Range' => 'bytes=' . $range,
57
+				'Range' => 'bytes='.$range,
58 58
 			]);
59 59
 			$request = \Aws\serialize($command);
60 60
 			$headers = [];
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 */
84 84
 	public function writeObject($urn, $stream) {
85 85
 		$count = 0;
86
-		$countStream = CallbackWrapper::wrap($stream, function ($read) use (&$count) {
86
+		$countStream = CallbackWrapper::wrap($stream, function($read) use (&$count) {
87 87
 			$count += $read;
88 88
 		});
89 89
 
Please login to merge, or discard this patch.
lib/private/Share/Constants.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
 	public const FORMAT_NONE = -1;
78 78
 	public const FORMAT_STATUSES = -2;
79
-	public const FORMAT_SOURCES = -3;  // ToDo Check if it is still in use otherwise remove it
79
+	public const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
80 80
 
81 81
 	public const RESPONSE_FORMAT = 'json'; // default resonse format for ocs calls
82 82
 
Please login to merge, or discard this patch.
apps/dav/lib/DAV/Sharing/Plugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	public function initialize(Server $server) {
103 103
 		$this->server = $server;
104
-		$this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}share'] = ShareRequest::class;
105
-		$this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}invite'] = Invite::class;
104
+		$this->server->xml->elementMap['{'.Plugin::NS_OWNCLOUD.'}share'] = ShareRequest::class;
105
+		$this->server->xml->elementMap['{'.Plugin::NS_OWNCLOUD.'}invite'] = Invite::class;
106 106
 
107 107
 		$this->server->on('method:POST', [$this, 'httpPost']);
108
-		$this->server->on('propFind',    [$this, 'propFind']);
108
+		$this->server->on('propFind', [$this, 'propFind']);
109 109
 	}
110 110
 
111 111
 	/**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
 			// Dealing with the 'share' document, which modified invitees on a
150 150
 			// calendar.
151
-			case '{' . self::NS_OWNCLOUD . '}share':
151
+			case '{'.self::NS_OWNCLOUD.'}share':
152 152
 
153 153
 				// We can only deal with IShareableCalendar objects
154 154
 				if (!$node instanceof IShareable) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	 */
191 191
 	public function propFind(PropFind $propFind, INode $node) {
192 192
 		if ($node instanceof IShareable) {
193
-			$propFind->handle('{' . Plugin::NS_OWNCLOUD . '}invite', function () use ($node) {
193
+			$propFind->handle('{'.Plugin::NS_OWNCLOUD.'}invite', function() use ($node) {
194 194
 				return new Invite(
195 195
 					$node->getShares()
196 196
 				);
Please login to merge, or discard this patch.
apps/dav/lib/DAV/SystemPrincipalBackend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	 * @return array
163 163
 	 */
164 164
 	public function getGroupMembership($principal) {
165
-		list($prefix, ) = \Sabre\Uri\split($principal);
165
+		list($prefix,) = \Sabre\Uri\split($principal);
166 166
 
167 167
 		if ($prefix === 'principals/system') {
168 168
 			$principal = $this->getPrincipalByPath($principal);
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/ShareeList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
 	 */
53 53
 	public function xmlSerialize(Writer $writer) {
54 54
 		foreach ($this->shares as $share) {
55
-			$writer->startElement('{' . self::NS_NEXTCLOUD . '}sharee');
56
-			$writer->writeElement('{' . self::NS_NEXTCLOUD . '}id', $share->getSharedWith());
57
-			$writer->writeElement('{' . self::NS_NEXTCLOUD . '}display-name', $share->getSharedWithDisplayName());
58
-			$writer->writeElement('{' . self::NS_NEXTCLOUD . '}type', $share->getShareType());
55
+			$writer->startElement('{'.self::NS_NEXTCLOUD.'}sharee');
56
+			$writer->writeElement('{'.self::NS_NEXTCLOUD.'}id', $share->getSharedWith());
57
+			$writer->writeElement('{'.self::NS_NEXTCLOUD.'}display-name', $share->getSharedWithDisplayName());
58
+			$writer->writeElement('{'.self::NS_NEXTCLOUD.'}type', $share->getShareType());
59 59
 			$writer->endElement();
60 60
 		}
61 61
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/DummyGetResponsePlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,9 +61,9 @@
 block discarded – undo
61 61
 	 * @return false
62 62
 	 */
63 63
 	public function httpGet(RequestInterface $request, ResponseInterface $response) {
64
-		$string = 'This is the WebDAV interface. It can only be accessed by ' .
64
+		$string = 'This is the WebDAV interface. It can only be accessed by '.
65 65
 			'WebDAV clients such as the Nextcloud desktop sync client.';
66
-		$stream = fopen('php://memory','r+');
66
+		$stream = fopen('php://memory', 'r+');
67 67
 		fwrite($stream, $string);
68 68
 		rewind($stream);
69 69
 
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/Xml/Filter/OffsetFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
 	public static function xmlDeserialize(Reader $reader) {
41 41
 		$value = $reader->parseInnerTree();
42 42
 		if (!is_int($value) && !is_string($value)) {
43
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}offset has illegal value');
43
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}offset has illegal value');
44 44
 		}
45 45
 
46
-		return (int)$value;
46
+		return (int) $value;
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.