| @@ -24,17 +24,17 @@ | ||
| 24 | 24 | namespace OC\DB; | 
| 25 | 25 | |
| 26 | 26 |  class MigrationException extends \Exception { | 
| 27 | - private $table; | |
| 27 | + private $table; | |
| 28 | 28 | |
| 29 | -	public function __construct($table, $message) { | |
| 30 | - $this->table = $table; | |
| 31 | - parent::__construct($message); | |
| 32 | - } | |
| 29 | +    public function __construct($table, $message) { | |
| 30 | + $this->table = $table; | |
| 31 | + parent::__construct($message); | |
| 32 | + } | |
| 33 | 33 | |
| 34 | - /** | |
| 35 | - * @return string | |
| 36 | - */ | |
| 37 | -	public function getTable() { | |
| 38 | - return $this->table; | |
| 39 | - } | |
| 34 | + /** | |
| 35 | + * @return string | |
| 36 | + */ | |
| 37 | +    public function getTable() { | |
| 38 | + return $this->table; | |
| 39 | + } | |
| 40 | 40 | } | 
| @@ -25,24 +25,24 @@ | ||
| 25 | 25 | |
| 26 | 26 |  class Hooks { | 
| 27 | 27 | |
| 28 | - /** @var TrustedServers */ | |
| 29 | - private $trustedServers; | |
| 28 | + /** @var TrustedServers */ | |
| 29 | + private $trustedServers; | |
| 30 | 30 | |
| 31 | -	public function __construct(TrustedServers $trustedServers) { | |
| 32 | - $this->trustedServers = $trustedServers; | |
| 33 | - } | |
| 31 | +    public function __construct(TrustedServers $trustedServers) { | |
| 32 | + $this->trustedServers = $trustedServers; | |
| 33 | + } | |
| 34 | 34 | |
| 35 | - /** | |
| 36 | - * add servers to the list of trusted servers once a federated share was established | |
| 37 | - * | |
| 38 | - * @param array $params | |
| 39 | - */ | |
| 40 | -	public function addServerHook($params) { | |
| 41 | - if ( | |
| 42 | - $this->trustedServers->getAutoAddServers() === true && | |
| 43 | - $this->trustedServers->isTrustedServer($params['server']) === false | |
| 44 | -		) { | |
| 45 | - $this->trustedServers->addServer($params['server']); | |
| 46 | - } | |
| 47 | - } | |
| 35 | + /** | |
| 36 | + * add servers to the list of trusted servers once a federated share was established | |
| 37 | + * | |
| 38 | + * @param array $params | |
| 39 | + */ | |
| 40 | +    public function addServerHook($params) { | |
| 41 | + if ( | |
| 42 | + $this->trustedServers->getAutoAddServers() === true && | |
| 43 | + $this->trustedServers->isTrustedServer($params['server']) === false | |
| 44 | +        ) { | |
| 45 | + $this->trustedServers->addServer($params['server']); | |
| 46 | + } | |
| 47 | + } | |
| 48 | 48 | } | 
| @@ -26,13 +26,13 @@ | ||
| 26 | 26 | namespace OCA\User_LDAP; | 
| 27 | 27 | |
| 28 | 28 |  abstract class BackendUtility { | 
| 29 | - protected $access; | |
| 29 | + protected $access; | |
| 30 | 30 | |
| 31 | - /** | |
| 32 | - * constructor, make sure the subclasses call this one! | |
| 33 | - * @param Access $access an instance of Access for LDAP interaction | |
| 34 | - */ | |
| 35 | -	public function __construct(Access $access) { | |
| 36 | - $this->access = $access; | |
| 37 | - } | |
| 31 | + /** | |
| 32 | + * constructor, make sure the subclasses call this one! | |
| 33 | + * @param Access $access an instance of Access for LDAP interaction | |
| 34 | + */ | |
| 35 | +    public function __construct(Access $access) { | |
| 36 | + $this->access = $access; | |
| 37 | + } | |
| 38 | 38 | } | 
| @@ -23,10 +23,10 @@ | ||
| 23 | 23 | namespace OCA\Encryption\Hooks\Contracts; | 
| 24 | 24 | |
| 25 | 25 |  interface IHook { | 
| 26 | - /** | |
| 27 | - * Connects Hooks | |
| 28 | - * | |
| 29 | - * @return null | |
| 30 | - */ | |
| 31 | - public function addHooks(); | |
| 26 | + /** | |
| 27 | + * Connects Hooks | |
| 28 | + * | |
| 29 | + * @return null | |
| 30 | + */ | |
| 31 | + public function addHooks(); | |
| 32 | 32 | } | 
| @@ -28,16 +28,16 @@ | ||
| 28 | 28 | |
| 29 | 29 |  class Trashbin extends Action { | 
| 30 | 30 | |
| 31 | -	public function delete(array $params) { | |
| 32 | -		$this->log('File "%s" deleted from trash bin.', | |
| 33 | - ['path' => $params['path']], ['path'] | |
| 34 | - ); | |
| 35 | - } | |
| 31 | +    public function delete(array $params) { | |
| 32 | +        $this->log('File "%s" deleted from trash bin.', | |
| 33 | + ['path' => $params['path']], ['path'] | |
| 34 | + ); | |
| 35 | + } | |
| 36 | 36 | |
| 37 | -	public function restore(array $params) { | |
| 38 | -		$this->log('File "%s" restored from trash bin.', | |
| 39 | - ['path' => $params['filePath']], ['path'] | |
| 40 | - ); | |
| 41 | - } | |
| 37 | +    public function restore(array $params) { | |
| 38 | +        $this->log('File "%s" restored from trash bin.', | |
| 39 | + ['path' => $params['filePath']], ['path'] | |
| 40 | + ); | |
| 41 | + } | |
| 42 | 42 | |
| 43 | 43 | } | 
| @@ -28,21 +28,21 @@ | ||
| 28 | 28 | |
| 29 | 29 |  class Versions extends Action { | 
| 30 | 30 | |
| 31 | -	public function rollback(array $params) { | |
| 32 | -		$this->log('Version "%s" of "%s" was restored.', | |
| 33 | - [ | |
| 34 | - 'version' => $params['revision'], | |
| 35 | - 'path' => $params['path'] | |
| 36 | - ], | |
| 37 | - ['version', 'path'] | |
| 38 | - ); | |
| 39 | - } | |
| 31 | +    public function rollback(array $params) { | |
| 32 | +        $this->log('Version "%s" of "%s" was restored.', | |
| 33 | + [ | |
| 34 | + 'version' => $params['revision'], | |
| 35 | + 'path' => $params['path'] | |
| 36 | + ], | |
| 37 | + ['version', 'path'] | |
| 38 | + ); | |
| 39 | + } | |
| 40 | 40 | |
| 41 | -	public function delete(array $params) { | |
| 42 | -		$this->log('Version "%s" was deleted.', | |
| 43 | - ['path' => $params['path']], | |
| 44 | - ['path'] | |
| 45 | - ); | |
| 46 | - } | |
| 41 | +    public function delete(array $params) { | |
| 42 | +        $this->log('Version "%s" was deleted.', | |
| 43 | + ['path' => $params['path']], | |
| 44 | + ['path'] | |
| 45 | + ); | |
| 46 | + } | |
| 47 | 47 | |
| 48 | 48 | } | 
| @@ -31,18 +31,18 @@ | ||
| 31 | 31 | */ | 
| 32 | 32 |  interface ITimeFactory { | 
| 33 | 33 | |
| 34 | - /** | |
| 35 | - * @return int the result of a call to time() | |
| 36 | - * @since 8.0.0 | |
| 37 | - */ | |
| 38 | - public function getTime(): int; | |
| 34 | + /** | |
| 35 | + * @return int the result of a call to time() | |
| 36 | + * @since 8.0.0 | |
| 37 | + */ | |
| 38 | + public function getTime(): int; | |
| 39 | 39 | |
| 40 | - /** | |
| 41 | - * @param string $time | |
| 42 | - * @param \DateTimeZone $timezone | |
| 43 | - * @return \DateTime | |
| 44 | - * @since 15.0.0 | |
| 45 | - */ | |
| 46 | - public function getDateTime(string $time = 'now', \DateTimeZone $timezone = null): \DateTime; | |
| 40 | + /** | |
| 41 | + * @param string $time | |
| 42 | + * @param \DateTimeZone $timezone | |
| 43 | + * @return \DateTime | |
| 44 | + * @since 15.0.0 | |
| 45 | + */ | |
| 46 | + public function getDateTime(string $time = 'now', \DateTimeZone $timezone = null): \DateTime; | |
| 47 | 47 | |
| 48 | 48 | } | 
| @@ -30,70 +30,70 @@ | ||
| 30 | 30 | */ | 
| 31 | 31 |  class AutoCompleteEvent extends GenericEvent { | 
| 32 | 32 | |
| 33 | - /** | |
| 34 | - * @param array $arguments | |
| 35 | - * @since 16.0.0 | |
| 36 | - */ | |
| 37 | -	public function __construct(array $arguments) { | |
| 38 | - parent::__construct(null, $arguments); | |
| 39 | - } | |
| 33 | + /** | |
| 34 | + * @param array $arguments | |
| 35 | + * @since 16.0.0 | |
| 36 | + */ | |
| 37 | +    public function __construct(array $arguments) { | |
| 38 | + parent::__construct(null, $arguments); | |
| 39 | + } | |
| 40 | 40 | |
| 41 | - /** | |
| 42 | - * @since 16.0.0 | |
| 43 | - */ | |
| 44 | -	public function getResults(): array { | |
| 45 | -		return $this->getArgument('results'); | |
| 46 | - } | |
| 41 | + /** | |
| 42 | + * @since 16.0.0 | |
| 43 | + */ | |
| 44 | +    public function getResults(): array { | |
| 45 | +        return $this->getArgument('results'); | |
| 46 | + } | |
| 47 | 47 | |
| 48 | - /** | |
| 49 | - * @param array $results | |
| 50 | - * @since 16.0.0 | |
| 51 | - */ | |
| 52 | -	public function setResults(array $results): void { | |
| 53 | -		$this->setArgument('results', $results); | |
| 54 | - } | |
| 48 | + /** | |
| 49 | + * @param array $results | |
| 50 | + * @since 16.0.0 | |
| 51 | + */ | |
| 52 | +    public function setResults(array $results): void { | |
| 53 | +        $this->setArgument('results', $results); | |
| 54 | + } | |
| 55 | 55 | |
| 56 | - /** | |
| 57 | - * @since 16.0.0 | |
| 58 | - */ | |
| 59 | -	public function getSearchTerm(): string { | |
| 60 | -		return $this->getArgument('search'); | |
| 61 | - } | |
| 56 | + /** | |
| 57 | + * @since 16.0.0 | |
| 58 | + */ | |
| 59 | +    public function getSearchTerm(): string { | |
| 60 | +        return $this->getArgument('search'); | |
| 61 | + } | |
| 62 | 62 | |
| 63 | - /** | |
| 64 | - * @return int[] | |
| 65 | - * @since 16.0.0 | |
| 66 | - */ | |
| 67 | -	public function getShareTypes(): array { | |
| 68 | -		return $this->getArgument('shareTypes'); | |
| 69 | - } | |
| 63 | + /** | |
| 64 | + * @return int[] | |
| 65 | + * @since 16.0.0 | |
| 66 | + */ | |
| 67 | +    public function getShareTypes(): array { | |
| 68 | +        return $this->getArgument('shareTypes'); | |
| 69 | + } | |
| 70 | 70 | |
| 71 | - /** | |
| 72 | - * @since 16.0.0 | |
| 73 | - */ | |
| 74 | -	public function getItemType(): string { | |
| 75 | -		return $this->getArgument('itemType'); | |
| 76 | - } | |
| 71 | + /** | |
| 72 | + * @since 16.0.0 | |
| 73 | + */ | |
| 74 | +    public function getItemType(): string { | |
| 75 | +        return $this->getArgument('itemType'); | |
| 76 | + } | |
| 77 | 77 | |
| 78 | - /** | |
| 79 | - * @since 16.0.0 | |
| 80 | - */ | |
| 81 | -	public function getItemId(): string { | |
| 82 | -		return $this->getArgument('itemId'); | |
| 83 | - } | |
| 78 | + /** | |
| 79 | + * @since 16.0.0 | |
| 80 | + */ | |
| 81 | +    public function getItemId(): string { | |
| 82 | +        return $this->getArgument('itemId'); | |
| 83 | + } | |
| 84 | 84 | |
| 85 | - /** | |
| 86 | - * @since 16.0.0 | |
| 87 | - */ | |
| 88 | -	public function getSorter(): string { | |
| 89 | -		return $this->getArgument('sorter'); | |
| 90 | - } | |
| 85 | + /** | |
| 86 | + * @since 16.0.0 | |
| 87 | + */ | |
| 88 | +    public function getSorter(): string { | |
| 89 | +        return $this->getArgument('sorter'); | |
| 90 | + } | |
| 91 | 91 | |
| 92 | - /** | |
| 93 | - * @since 16.0.0 | |
| 94 | - */ | |
| 95 | -	public function getLimit(): int { | |
| 96 | -		return $this->getArgument('limit'); | |
| 97 | - } | |
| 92 | + /** | |
| 93 | + * @since 16.0.0 | |
| 94 | + */ | |
| 95 | +    public function getLimit(): int { | |
| 96 | +        return $this->getArgument('limit'); | |
| 97 | + } | |
| 98 | 98 | |
| 99 | 99 | } | 
| @@ -27,18 +27,18 @@ | ||
| 27 | 27 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; | 
| 28 | 28 | |
| 29 | 29 |  class Listener { | 
| 30 | -	public static function register(EventDispatcherInterface $dispatcher): void { | |
| 31 | -		$dispatcher->addListener('OCP\Share::postShare', [self::class, 'shareModification']); | |
| 32 | -		$dispatcher->addListener('OCP\Share::postUnshare', [self::class, 'shareModification']); | |
| 33 | -		$dispatcher->addListener('OCP\Share::postUnshareFromSelf', [self::class, 'shareModification']); | |
| 34 | - } | |
| 30 | +    public static function register(EventDispatcherInterface $dispatcher): void { | |
| 31 | +        $dispatcher->addListener('OCP\Share::postShare', [self::class, 'shareModification']); | |
| 32 | +        $dispatcher->addListener('OCP\Share::postUnshare', [self::class, 'shareModification']); | |
| 33 | +        $dispatcher->addListener('OCP\Share::postUnshareFromSelf', [self::class, 'shareModification']); | |
| 34 | + } | |
| 35 | 35 | |
| 36 | -	public static function shareModification(): void { | |
| 37 | - /** @var IManager $resourceManager */ | |
| 38 | - $resourceManager = \OC::$server->query(IManager::class); | |
| 39 | - /** @var ResourceProvider $resourceProvider */ | |
| 40 | - $resourceProvider = \OC::$server->query(ResourceProvider::class); | |
| 36 | +    public static function shareModification(): void { | |
| 37 | + /** @var IManager $resourceManager */ | |
| 38 | + $resourceManager = \OC::$server->query(IManager::class); | |
| 39 | + /** @var ResourceProvider $resourceProvider */ | |
| 40 | + $resourceProvider = \OC::$server->query(ResourceProvider::class); | |
| 41 | 41 | |
| 42 | - $resourceManager->invalidateAccessCacheForProvider($resourceProvider); | |
| 43 | - } | |
| 42 | + $resourceManager->invalidateAccessCacheForProvider($resourceProvider); | |
| 43 | + } | |
| 44 | 44 | } |