| @@ -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 | ); | 
| @@ -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,13 +41,13 @@ | ||
| 41 | 41 | */ | 
| 42 | 42 |  	public function cas($key, $old, $new) { | 
| 43 | 43 | //no native cas, emulate with locking | 
| 44 | -		if ($this->add($key . '_lock', true)) { | |
| 44 | +		if ($this->add($key.'_lock', true)) { | |
| 45 | 45 |  			if ($this->get($key) === $old) { | 
| 46 | 46 | $this->set($key, $new); | 
| 47 | - $this->remove($key . '_lock'); | |
| 47 | + $this->remove($key.'_lock'); | |
| 48 | 48 | return true; | 
| 49 | 49 |  			} else { | 
| 50 | - $this->remove($key . '_lock'); | |
| 50 | + $this->remove($key.'_lock'); | |
| 51 | 51 | return false; | 
| 52 | 52 | } | 
| 53 | 53 |  		} else { | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | } | 
| 34 | 34 |  		if ($table !== null) { | 
| 35 | 35 | $suffix = '_SEQ'; | 
| 36 | - $table = '"' . $table . $suffix . '"'; | |
| 36 | + $table = '"'.$table.$suffix.'"'; | |
| 37 | 37 | } | 
| 38 | 38 | return $this->conn->realLastInsertId($table); | 
| 39 | 39 | } |