| @@ -138,7 +138,7 @@ discard block | ||
| 138 | 138 | } | 
| 139 | 139 |  		foreach ($favorites['folders'] as $favorite) { | 
| 140 | 140 |  			$limitations[] = $query->expr()->like('file', $query->createNamedParameter( | 
| 141 | - $this->db->escapeLikeParameter($favorite . '/') . '%' | |
| 141 | + $this->db->escapeLikeParameter($favorite.'/').'%' | |
| 142 | 142 | )); | 
| 143 | 143 | } | 
| 144 | 144 | |
| @@ -148,9 +148,9 @@ discard block | ||
| 148 | 148 | |
| 149 | 149 |  		$function = $query->createFunction(' | 
| 150 | 150 | CASE | 
| 151 | -				WHEN ' . $query->getColumnName('app') . ' <> ' . $query->createNamedParameter('files') . ' THEN 1 | |
| 152 | -				WHEN ' . $query->getColumnName('app') . ' = ' . $query->createNamedParameter('files') . ' | |
| 153 | -					AND (' . implode(' OR ', $limitations) . ') | |
| 151 | +				WHEN ' . $query->getColumnName('app').' <> '.$query->createNamedParameter('files').' THEN 1 | |
| 152 | +				WHEN ' . $query->getColumnName('app').' = '.$query->createNamedParameter('files').' | |
| 153 | +					AND (' . implode(' OR ', $limitations).') | |
| 154 | 154 | THEN 1 | 
| 155 | 155 | END = 1' | 
| 156 | 156 | ); | 
| @@ -30,13 +30,13 @@ | ||
| 30 | 30 | $limit = null; | 
| 31 | 31 | $offset = null; | 
| 32 | 32 |  if (isset($_GET['pattern'])) { | 
| 33 | - $pattern = (string)$_GET['pattern']; | |
| 33 | + $pattern = (string) $_GET['pattern']; | |
| 34 | 34 | } | 
| 35 | 35 |  if (isset($_GET['limit'])) { | 
| 36 | - $limit = (int)$_GET['limit']; | |
| 36 | + $limit = (int) $_GET['limit']; | |
| 37 | 37 | } | 
| 38 | 38 |  if (isset($_GET['offset'])) { | 
| 39 | - $offset = (int)$_GET['offset']; | |
| 39 | + $offset = (int) $_GET['offset']; | |
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | 42 | $groups = []; | 
| @@ -172,11 +172,11 @@ | ||
| 172 | 172 |  	public function getStorageForAllUsers() { | 
| 173 | 173 | $mounts = $this->dbConfig->getAllMounts(); | 
| 174 | 174 | $configs = array_map([$this, 'getStorageConfigFromDBMount'], $mounts); | 
| 175 | -		$configs = array_filter($configs, function ($config) { | |
| 175 | +		$configs = array_filter($configs, function($config) { | |
| 176 | 176 | return $config instanceof StorageConfig; | 
| 177 | 177 | }); | 
| 178 | 178 | |
| 179 | -		$keys = array_map(function (StorageConfig $config) { | |
| 179 | +		$keys = array_map(function(StorageConfig $config) { | |
| 180 | 180 | return $config->getId(); | 
| 181 | 181 | }, $configs); | 
| 182 | 182 | |
| @@ -64,7 +64,7 @@ | ||
| 64 | 64 | |
| 65 | 65 |  	public function listen(callable $callback) { | 
| 66 | 66 | $oldRenamePath = null; | 
| 67 | -		$this->shareNotifyHandler->listen(function (\Icewind\SMB\Change $shareChange) use ($callback) { | |
| 67 | +		$this->shareNotifyHandler->listen(function(\Icewind\SMB\Change $shareChange) use ($callback) { | |
| 68 | 68 | $change = $this->mapChange($shareChange); | 
| 69 | 69 |  			if (!is_null($change)) { | 
| 70 | 70 | return $callback($change); | 
| @@ -128,7 +128,7 @@ | ||
| 128 | 128 | $encryptedKey = $this->crypt->encryptPrivateKey($decryptedKey, $newPassword, $uid); | 
| 129 | 129 | $header = $this->crypt->generateHeader(); | 
| 130 | 130 |  				if ($encryptedKey) { | 
| 131 | - $this->keyManager->setPrivateKey($uid, $header . $encryptedKey); | |
| 131 | + $this->keyManager->setPrivateKey($uid, $header.$encryptedKey); | |
| 132 | 132 | $this->session->setPrivateKey($decryptedKey); | 
| 133 | 133 | $result = true; | 
| 134 | 134 | } | 
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | |
| 61 | 61 |  	public function propFind(PropFind $propFind, INode $node) { | 
| 62 | 62 | /* Overload current-user-principal */ | 
| 63 | -		$propFind->handle('{DAV:}current-user-principal', function () { | |
| 63 | +		$propFind->handle('{DAV:}current-user-principal', function() { | |
| 64 | 64 |  			if ($url = parent::getCurrentUserPrincipal()) { | 
| 65 | - return new Principal(Principal::HREF, $url . '/'); | |
| 65 | + return new Principal(Principal::HREF, $url.'/'); | |
| 66 | 66 |  			} else { | 
| 67 | 67 | return new Principal(Principal::UNAUTHENTICATED); | 
| 68 | 68 | } | 
| @@ -61,7 +61,7 @@ | ||
| 61 | 61 | */ | 
| 62 | 62 |  	public function addEntityCollection($name, \Closure $entityExistsFunction) { | 
| 63 | 63 |  		if (isset($this->collections[$name])) { | 
| 64 | -			throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"'); | |
| 64 | +			throw new \OutOfBoundsException('Duplicate entity name "'.$name.'"'); | |
| 65 | 65 | } | 
| 66 | 66 | |
| 67 | 67 | $this->collections[$name] = $entityExistsFunction; | 
| @@ -84,7 +84,7 @@ | ||
| 84 | 84 | * @since 9.0.0 | 
| 85 | 85 | */ | 
| 86 | 86 |  	public function getGroups() { | 
| 87 | -		return array_map(function ($group) { | |
| 87 | +		return array_map(function($group) { | |
| 88 | 88 | /** @var \OCP\IGroup $group */ | 
| 89 | 89 | return $group->getGID(); | 
| 90 | 90 | }, $this->groups); | 
| @@ -41,6 +41,6 @@ | ||
| 41 | 41 | * @return string | 
| 42 | 42 | */ | 
| 43 | 43 |  	public function getResourcePath() { | 
| 44 | - return $this->webPath . '/' . $this->resource; | |
| 44 | + return $this->webPath.'/'.$this->resource; | |
| 45 | 45 | } | 
| 46 | 46 | } |