Passed
Push — master ( d52ee8...0e6e80 )
by Joas
52:59 queued 30:23
created
apps/files_versions/lib/Sabre/VersionFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	}
61 61
 
62 62
 	public function getETag(): string {
63
-		return (string)$this->version->getRevisionId();
63
+		return (string) $this->version->getRevisionId();
64 64
 	}
65 65
 
66 66
 	public function getSize(): int {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	}
73 73
 
74 74
 	public function getName(): string {
75
-		return (string)$this->version->getRevisionId();
75
+		return (string) $this->version->getRevisionId();
76 76
 	}
77 77
 
78 78
 	public function setName($name) {
Please login to merge, or discard this patch.
apps/files_versions/lib/Sabre/VersionCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	public function getChildren(): array {
79 79
 		$versions = $this->versionManager->getVersionsForFile($this->user, $this->file);
80 80
 
81
-		return array_map(function (IVersion $version) {
81
+		return array_map(function(IVersion $version) {
82 82
 			return new VersionFile($version, $this->versionManager);
83 83
 		}, $versions);
84 84
 	}
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	public function getName(): string {
100
-		return (string)$this->file->getId();
100
+		return (string) $this->file->getId();
101 101
 	}
102 102
 
103 103
 	public function setName($name) {
Please login to merge, or discard this patch.
lib/private/Files/Type/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
 			))
171 171
 			->andWhere($update->expr()->like(
172 172
 				$update->func()->lower('name'),
173
-				$update->createNamedParameter('%' . $this->dbConnection->escapeLikeParameter('.' . $ext))
173
+				$update->createNamedParameter('%'.$this->dbConnection->escapeLikeParameter('.'.$ext))
174 174
 			));
175 175
 		return $update->execute();
176 176
 	}
Please login to merge, or discard this patch.
lib/private/Files/AppData/AppData.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			throw new \RuntimeException('no instance id!');
76 76
 		}
77 77
 
78
-		return 'appdata_' . $instanceId;
78
+		return 'appdata_'.$instanceId;
79 79
 	}
80 80
 
81 81
 	private function getAppDataRootFolder(): Folder {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 			$name = $this->getAppDataFolderName();
104 104
 
105 105
 			try {
106
-				$this->folder = $this->rootFolder->get($name . '/' . $this->appId);
106
+				$this->folder = $this->rootFolder->get($name.'/'.$this->appId);
107 107
 			} catch (NotFoundException $e) {
108 108
 				$appDataRootFolder = $this->getAppDataRootFolder();
109 109
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 					try {
114 114
 						$this->folder = $appDataRootFolder->newFolder($this->appId);
115 115
 					} catch (NotPermittedException $e) {
116
-						throw new \RuntimeException('Could not get appdata folder for ' . $this->appId);
116
+						throw new \RuntimeException('Could not get appdata folder for '.$this->appId);
117 117
 					}
118 118
 				}
119 119
 			}
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	}
124 124
 
125 125
 	public function getFolder(string $name): ISimpleFolder {
126
-		$key = $this->appId . '/' . $name;
126
+		$key = $this->appId.'/'.$name;
127 127
 		if ($cachedFolder = $this->folders->get($key)) {
128 128
 			if ($cachedFolder instanceof \Exception) {
129 129
 				throw $cachedFolder;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			if ($name === '/') {
137 137
 				$node = $this->getAppDataFolder();
138 138
 			} else {
139
-				$path = $this->getAppDataFolderName() . '/' . $this->appId . '/' . $name;
139
+				$path = $this->getAppDataFolderName().'/'.$this->appId.'/'.$name;
140 140
 				$node = $this->rootFolder->get($path);
141 141
 			}
142 142
 		} catch (NotFoundException $e) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	}
152 152
 
153 153
 	public function newFolder(string $name): ISimpleFolder {
154
-		$key = $this->appId . '/' . $name;
154
+		$key = $this->appId.'/'.$name;
155 155
 		$folder = $this->getAppDataFolder()->newFolder($name);
156 156
 
157 157
 		$simpleFolder = new SimpleFolder($folder);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	public function getDirectoryListing(): array {
163 163
 		$listing = $this->getAppDataFolder()->getDirectoryListing();
164 164
 
165
-		$fileListing = array_map(function (Node $folder) {
165
+		$fileListing = array_map(function(Node $folder) {
166 166
 			if ($folder instanceof Folder) {
167 167
 				return new SimpleFolder($folder);
168 168
 			}
Please login to merge, or discard this patch.
apps/user_ldap/lib/Command/ShowRemnants.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@
 block discarded – undo
89 89
 				'displayName' => $user->getDisplayName(),
90 90
 				'uid' => $user->getUID(),
91 91
 				'dn' => $user->getDN(),
92
-				'lastLogin' => $this->formatDate($user->getLastLogin(), '-', (bool)$input->getOption('short-date')),
93
-				'detectedOn' => $this->formatDate($user->getDetectedOn(), 'unknown', (bool)$input->getOption('short-date')),
92
+				'lastLogin' => $this->formatDate($user->getLastLogin(), '-', (bool) $input->getOption('short-date')),
93
+				'detectedOn' => $this->formatDate($user->getDetectedOn(), 'unknown', (bool) $input->getOption('short-date')),
94 94
 				'homePath' => $user->getHomePath(),
95 95
 				'sharer' => $user->getHasActiveShares() ? 'Y' : 'N',
96 96
 			];
Please login to merge, or discard this patch.
apps/dav/lib/Migration/ChunkCleanup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
 		$output->startProgress();
70 70
 		// Loop over all seen users
71
-		$this->userManager->callForSeenUsers(function (IUser $user) use ($output) {
71
+		$this->userManager->callForSeenUsers(function(IUser $user) use ($output) {
72 72
 			try {
73 73
 				$userFolder = $this->rootFolder->getUserFolder($user->getUID());
74 74
 				$userRoot = $userFolder->getParent();
Please login to merge, or discard this patch.
apps/dav/lib/Migration/RemoveClassifiedEventActivity.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 			$delete->setParameter('owner', $this->getPrincipal($row['principaluri']))
79 79
 				->setParameter('type', 'calendar')
80 80
 				->setParameter('calendar_id', $row['calendarid'])
81
-				->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%');
81
+				->setParameter('event_uid', '%'.$this->connection->escapeLikeParameter('{"id":"'.$row['uid'].'"').'%');
82 82
 			$deletedEvents += $delete->execute();
83 83
 		}
84 84
 		$result->closeCursor();
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 			$delete->setParameter('owner', $this->getPrincipal($row['principaluri']))
109 109
 				->setParameter('type', 'calendar')
110 110
 				->setParameter('calendar_id', $row['calendarid'])
111
-				->setParameter('event_uid', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '"') . '%')
112
-				->setParameter('filtered_name', '%' . $this->connection->escapeLikeParameter('{"id":"' . $row['uid'] . '","name":"Busy"') . '%');
111
+				->setParameter('event_uid', '%'.$this->connection->escapeLikeParameter('{"id":"'.$row['uid'].'"').'%')
112
+				->setParameter('filtered_name', '%'.$this->connection->escapeLikeParameter('{"id":"'.$row['uid'].'","name":"Busy"').'%');
113 113
 			$deletedEvents += $delete->execute();
114 114
 		}
115 115
 		$result->closeCursor();
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/LegacyTrashBackend.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 	private function mapTrashItems(array $items, IUser $user, ITrashItem $parent = null): array {
53 53
 		$parentTrashPath = ($parent instanceof ITrashItem) ? $parent->getTrashPath() : '';
54 54
 		$isRoot = $parent === null;
55
-		return array_map(function (FileInfo $file) use ($parent, $parentTrashPath, $isRoot, $user) {
56
-			$originalLocation = $isRoot ? $file['extraData'] : $parent->getOriginalLocation() . '/' . $file->getName();
55
+		return array_map(function(FileInfo $file) use ($parent, $parentTrashPath, $isRoot, $user) {
56
+			$originalLocation = $isRoot ? $file['extraData'] : $parent->getOriginalLocation().'/'.$file->getName();
57 57
 			if (!$originalLocation) {
58 58
 				$originalLocation = $file->getName();
59 59
 			}
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 				$this,
62 62
 				$originalLocation,
63 63
 				$file->getMTime(),
64
-				$parentTrashPath . '/' . $file->getName() . ($isRoot ? '.d' . $file->getMtime() : ''),
64
+				$parentTrashPath.'/'.$file->getName().($isRoot ? '.d'.$file->getMtime() : ''),
65 65
 				$file,
66 66
 				$user
67 67
 			);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	public function listTrashFolder(ITrashItem $folder): array {
77 77
 		$user = $folder->getUser();
78 78
 		$entries = Helper::getTrashFiles($folder->getTrashPath(), $user->getUID());
79
-		return $this->mapTrashItems($entries, $user ,$folder);
79
+		return $this->mapTrashItems($entries, $user, $folder);
80 80
 	}
81 81
 
82 82
 	public function restoreItem(ITrashItem $item) {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	public function removeItem(ITrashItem $item) {
87 87
 		$user = $item->getUser();
88 88
 		if ($item->isRootItem()) {
89
-			$path = substr($item->getTrashPath(), 0, -strlen('.d' . $item->getDeletedTime()));
89
+			$path = substr($item->getTrashPath(), 0, -strlen('.d'.$item->getDeletedTime()));
90 90
 			Trashbin::delete($path, $user->getUID(), $item->getDeletedTime());
91 91
 		} else {
92 92
 			Trashbin::delete($item->getTrashPath(), $user->getUID(), null);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		if (!$storage instanceof Storage) {
99 99
 			return false;
100 100
 		}
101
-		$normalized = Filesystem::normalizePath($storage->getMountPoint() . '/' . $internalPath, true, false, true);
101
+		$normalized = Filesystem::normalizePath($storage->getMountPoint().'/'.$internalPath, true, false, true);
102 102
 		$view = Filesystem::getView();
103 103
 		if (!isset($this->deletedFiles[$normalized]) && $view instanceof View) {
104 104
 			$this->deletedFiles[$normalized] = $normalized;
Please login to merge, or discard this patch.
apps/files_versions/lib/Versions/LegacyVersionsBackend.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
 		$file2 = array_pop($nodes);
56 56
 		$versions = Storage::getVersions($user->getUID(), $userFolder->getRelativePath($file2->getPath()));
57 57
 
58
-		return array_map(function (array $data) use ($file, $user) {
58
+		return array_map(function(array $data) use ($file, $user) {
59 59
 			return new Version(
60
-				(int)$data['version'],
61
-				(int)$data['version'],
60
+				(int) $data['version'],
61
+				(int) $data['version'],
62 62
 				$data['name'],
63
-				(int)$data['size'],
63
+				(int) $data['size'],
64 64
 				$data['mimetype'],
65 65
 				$data['path'],
66 66
 				$file,
@@ -73,16 +73,16 @@  discard block
 block discarded – undo
73 73
 	public function createVersion(IUser $user, FileInfo $file) {
74 74
 		$userFolder = $this->rootFolder->getUserFolder($user->getUID());
75 75
 		$relativePath = $userFolder->getRelativePath($file->getPath());
76
-		$userView = new View('/' . $user->getUID());
76
+		$userView = new View('/'.$user->getUID());
77 77
 		// create all parent folders
78 78
 		Storage::createMissingDirectories($relativePath, $userView);
79 79
 
80 80
 		Storage::scheduleExpire($user->getUID(), $relativePath);
81 81
 
82 82
 		// store a new version of a file
83
-		$userView->copy('files/' . $relativePath, 'files_versions/' . $relativePath . '.v' . $file->getMtime());
83
+		$userView->copy('files/'.$relativePath, 'files_versions/'.$relativePath.'.v'.$file->getMtime());
84 84
 		// ensure the file is scanned
85
-		$userView->getFileInfo('files_versions/' . $relativePath . '.v' . $file->getMtime());
85
+		$userView->getFileInfo('files_versions/'.$relativePath.'.v'.$file->getMtime());
86 86
 	}
87 87
 
88 88
 	public function rollback(IVersion $version) {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	public function read(IVersion $version) {
105 105
 		$versions = $this->getVersionFolder($version->getUser());
106 106
 		/** @var File $file */
107
-		$file = $versions->get($version->getVersionPath() . '.v' . $version->getRevisionId());
107
+		$file = $versions->get($version->getVersionPath().'.v'.$version->getRevisionId());
108 108
 		return $file->fopen('r');
109 109
 	}
110 110
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		$userFolder = $this->rootFolder->getUserFolder($user->getUID());
113 113
 		$versionFolder = $this->getVersionFolder($user);
114 114
 		/** @var File $file */
115
-		$file = $versionFolder->get($userFolder->getRelativePath($sourceFile->getPath()) . '.v' . $revision);
115
+		$file = $versionFolder->get($userFolder->getRelativePath($sourceFile->getPath()).'.v'.$revision);
116 116
 		return $file;
117 117
 	}
118 118
 }
Please login to merge, or discard this patch.