Passed
Push — master ( 7b8289...9c209a )
by Christoph
12:20 queued 36s
created
apps/dav/lib/Migration/RegenerateBirthdayCalendars.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -30,43 +30,43 @@
 block discarded – undo
30 30
 
31 31
 class RegenerateBirthdayCalendars implements IRepairStep {
32 32
 
33
-	/** @var IJobList */
34
-	private $jobList;
33
+    /** @var IJobList */
34
+    private $jobList;
35 35
 
36
-	/** @var IConfig */
37
-	private $config;
36
+    /** @var IConfig */
37
+    private $config;
38 38
 
39
-	/**
40
-	 * @param IJobList $jobList
41
-	 * @param IConfig $config
42
-	 */
43
-	public function __construct(IJobList $jobList,
44
-								IConfig $config) {
45
-		$this->jobList = $jobList;
46
-		$this->config = $config;
47
-	}
39
+    /**
40
+     * @param IJobList $jobList
41
+     * @param IConfig $config
42
+     */
43
+    public function __construct(IJobList $jobList,
44
+                                IConfig $config) {
45
+        $this->jobList = $jobList;
46
+        $this->config = $config;
47
+    }
48 48
 
49
-	/**
50
-	 * @return string
51
-	 */
52
-	public function getName() {
53
-		return 'Regenerating birthday calendars to use new icons and fix old birthday events without year';
54
-	}
49
+    /**
50
+     * @return string
51
+     */
52
+    public function getName() {
53
+        return 'Regenerating birthday calendars to use new icons and fix old birthday events without year';
54
+    }
55 55
 
56
-	/**
57
-	 * @param IOutput $output
58
-	 */
59
-	public function run(IOutput $output) {
60
-		// only run once
61
-		if ($this->config->getAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix') === 'yes') {
62
-			$output->info('Repair step already executed');
63
-			return;
64
-		}
56
+    /**
57
+     * @param IOutput $output
58
+     */
59
+    public function run(IOutput $output) {
60
+        // only run once
61
+        if ($this->config->getAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix') === 'yes') {
62
+            $output->info('Repair step already executed');
63
+            return;
64
+        }
65 65
 
66
-		$output->info('Adding background jobs to regenerate birthday calendar');
67
-		$this->jobList->add(RegisterRegenerateBirthdayCalendars::class);
66
+        $output->info('Adding background jobs to regenerate birthday calendar');
67
+        $this->jobList->add(RegisterRegenerateBirthdayCalendars::class);
68 68
 
69
-		// if all were done, no need to redo the repair during next upgrade
70
-		$this->config->setAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix', 'yes');
71
-	}
69
+        // if all were done, no need to redo the repair during next upgrade
70
+        $this->config->setAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix', 'yes');
71
+    }
72 72
 }
Please login to merge, or discard this patch.
lib/public/IContainer.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -47,59 +47,59 @@
 block discarded – undo
47 47
  */
48 48
 interface IContainer {
49 49
 
50
-	/**
51
-	 * If a parameter is not registered in the container try to instantiate it
52
-	 * by using reflection to find out how to build the class
53
-	 * @param string $name the class name to resolve
54
-	 * @return \stdClass
55
-	 * @since 8.2.0
56
-	 * @throws QueryException if the class could not be found or instantiated
57
-	 */
58
-	public function resolve($name);
50
+    /**
51
+     * If a parameter is not registered in the container try to instantiate it
52
+     * by using reflection to find out how to build the class
53
+     * @param string $name the class name to resolve
54
+     * @return \stdClass
55
+     * @since 8.2.0
56
+     * @throws QueryException if the class could not be found or instantiated
57
+     */
58
+    public function resolve($name);
59 59
 
60
-	/**
61
-	 * Look up a service for a given name in the container.
62
-	 *
63
-	 * @param string $name
64
-	 * @param bool $autoload Should we try to autoload the service. If we are trying to resolve built in types this makes no sense for example
65
-	 * @return mixed
66
-	 * @throws QueryException if the query could not be resolved
67
-	 * @since 6.0.0
68
-	 */
69
-	public function query(string $name, bool $autoload = true);
60
+    /**
61
+     * Look up a service for a given name in the container.
62
+     *
63
+     * @param string $name
64
+     * @param bool $autoload Should we try to autoload the service. If we are trying to resolve built in types this makes no sense for example
65
+     * @return mixed
66
+     * @throws QueryException if the query could not be resolved
67
+     * @since 6.0.0
68
+     */
69
+    public function query(string $name, bool $autoload = true);
70 70
 
71
-	/**
72
-	 * A value is stored in the container with it's corresponding name
73
-	 *
74
-	 * @param string $name
75
-	 * @param mixed $value
76
-	 * @return void
77
-	 * @since 6.0.0
78
-	 */
79
-	public function registerParameter($name, $value);
71
+    /**
72
+     * A value is stored in the container with it's corresponding name
73
+     *
74
+     * @param string $name
75
+     * @param mixed $value
76
+     * @return void
77
+     * @since 6.0.0
78
+     */
79
+    public function registerParameter($name, $value);
80 80
 
81
-	/**
82
-	 * A service is registered in the container where a closure is passed in which will actually
83
-	 * create the service on demand.
84
-	 * In case the parameter $shared is set to true (the default usage) the once created service will remain in
85
-	 * memory and be reused on subsequent calls.
86
-	 * In case the parameter is false the service will be recreated on every call.
87
-	 *
88
-	 * @param string $name
89
-	 * @param \Closure $closure
90
-	 * @param bool $shared
91
-	 * @return void
92
-	 * @since 6.0.0
93
-	 */
94
-	public function registerService($name, Closure $closure, $shared = true);
81
+    /**
82
+     * A service is registered in the container where a closure is passed in which will actually
83
+     * create the service on demand.
84
+     * In case the parameter $shared is set to true (the default usage) the once created service will remain in
85
+     * memory and be reused on subsequent calls.
86
+     * In case the parameter is false the service will be recreated on every call.
87
+     *
88
+     * @param string $name
89
+     * @param \Closure $closure
90
+     * @param bool $shared
91
+     * @return void
92
+     * @since 6.0.0
93
+     */
94
+    public function registerService($name, Closure $closure, $shared = true);
95 95
 
96
-	/**
97
-	 * Shortcut for returning a service from a service under a different key,
98
-	 * e.g. to tell the container to return a class when queried for an
99
-	 * interface
100
-	 * @param string $alias the alias that should be registered
101
-	 * @param string $target the target that should be resolved instead
102
-	 * @since 8.2.0
103
-	 */
104
-	public function registerAlias($alias, $target);
96
+    /**
97
+     * Shortcut for returning a service from a service under a different key,
98
+     * e.g. to tell the container to return a class when queried for an
99
+     * interface
100
+     * @param string $alias the alias that should be registered
101
+     * @param string $target the target that should be resolved instead
102
+     * @since 8.2.0
103
+     */
104
+    public function registerAlias($alias, $target);
105 105
 }
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Settings/Personal.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -33,68 +33,68 @@
 block discarded – undo
33 33
 
34 34
 class Personal implements ISettings {
35 35
 
36
-	/** @var FederatedShareProvider */
37
-	private $federatedShareProvider;
38
-	/** @var IUserSession */
39
-	private $userSession;
40
-	/** @var IL10N */
41
-	private $l;
42
-	/** @var \OC_Defaults */
43
-	private $defaults;
36
+    /** @var FederatedShareProvider */
37
+    private $federatedShareProvider;
38
+    /** @var IUserSession */
39
+    private $userSession;
40
+    /** @var IL10N */
41
+    private $l;
42
+    /** @var \OC_Defaults */
43
+    private $defaults;
44 44
 
45
-	public function __construct(
46
-		FederatedShareProvider $federatedShareProvider, #
47
-		IUserSession $userSession,
48
-		IL10N $l,
49
-		\OC_Defaults $defaults
50
-	) {
51
-		$this->federatedShareProvider = $federatedShareProvider;
52
-		$this->userSession = $userSession;
53
-		$this->l = $l;
54
-		$this->defaults = $defaults;
55
-	}
45
+    public function __construct(
46
+        FederatedShareProvider $federatedShareProvider, #
47
+        IUserSession $userSession,
48
+        IL10N $l,
49
+        \OC_Defaults $defaults
50
+    ) {
51
+        $this->federatedShareProvider = $federatedShareProvider;
52
+        $this->userSession = $userSession;
53
+        $this->l = $l;
54
+        $this->defaults = $defaults;
55
+    }
56 56
 
57
-	/**
58
-	 * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
59
-	 * @since 9.1
60
-	 */
61
-	public function getForm() {
62
-		$cloudID = $this->userSession->getUser()->getCloudId();
63
-		$url = 'https://nextcloud.com/sharing#' . $cloudID;
57
+    /**
58
+     * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
59
+     * @since 9.1
60
+     */
61
+    public function getForm() {
62
+        $cloudID = $this->userSession->getUser()->getCloudId();
63
+        $url = 'https://nextcloud.com/sharing#' . $cloudID;
64 64
 
65
-		$parameters = [
66
-			'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
67
-			'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
68
-			'logoPath' => $this->defaults->getLogo(),
69
-			'reference' => $url,
70
-			'cloudId' => $cloudID,
71
-			'color' => $this->defaults->getColorPrimary(),
72
-			'textColor' => "#ffffff",
73
-		];
74
-		return new TemplateResponse('federatedfilesharing', 'settings-personal', $parameters, '');
75
-	}
65
+        $parameters = [
66
+            'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
67
+            'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
68
+            'logoPath' => $this->defaults->getLogo(),
69
+            'reference' => $url,
70
+            'cloudId' => $cloudID,
71
+            'color' => $this->defaults->getColorPrimary(),
72
+            'textColor' => "#ffffff",
73
+        ];
74
+        return new TemplateResponse('federatedfilesharing', 'settings-personal', $parameters, '');
75
+    }
76 76
 
77
-	/**
78
-	 * @return string the section ID, e.g. 'sharing'
79
-	 * @since 9.1
80
-	 */
81
-	public function getSection() {
82
-		if ($this->federatedShareProvider->isIncomingServer2serverShareEnabled() ||
83
-			$this->federatedShareProvider->isIncomingServer2serverGroupShareEnabled()) {
84
-			return 'sharing';
85
-		}
86
-		return null;
87
-	}
77
+    /**
78
+     * @return string the section ID, e.g. 'sharing'
79
+     * @since 9.1
80
+     */
81
+    public function getSection() {
82
+        if ($this->federatedShareProvider->isIncomingServer2serverShareEnabled() ||
83
+            $this->federatedShareProvider->isIncomingServer2serverGroupShareEnabled()) {
84
+            return 'sharing';
85
+        }
86
+        return null;
87
+    }
88 88
 
89
-	/**
90
-	 * @return int whether the form should be rather on the top or bottom of
91
-	 * the admin section. The forms are arranged in ascending order of the
92
-	 * priority values. It is required to return a value between 0 and 100.
93
-	 *
94
-	 * E.g.: 70
95
-	 * @since 9.1
96
-	 */
97
-	public function getPriority() {
98
-		return 40;
99
-	}
89
+    /**
90
+     * @return int whether the form should be rather on the top or bottom of
91
+     * the admin section. The forms are arranged in ascending order of the
92
+     * priority values. It is required to return a value between 0 and 100.
93
+     *
94
+     * E.g.: 70
95
+     * @since 9.1
96
+     */
97
+    public function getPriority() {
98
+        return 40;
99
+    }
100 100
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Controller/PreviewController.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -38,70 +38,70 @@
 block discarded – undo
38 38
 
39 39
 class PreviewController extends Controller {
40 40
 
41
-	/** @var IRootFolder */
42
-	private $rootFolder;
41
+    /** @var IRootFolder */
42
+    private $rootFolder;
43 43
 
44
-	/** @var IUserSession */
45
-	private $userSession;
44
+    /** @var IUserSession */
45
+    private $userSession;
46 46
 
47
-	/** @var IMimeTypeDetector */
48
-	private $mimeTypeDetector;
47
+    /** @var IMimeTypeDetector */
48
+    private $mimeTypeDetector;
49 49
 
50
-	/** @var IVersionManager */
51
-	private $versionManager;
50
+    /** @var IVersionManager */
51
+    private $versionManager;
52 52
 
53
-	/** @var IPreview */
54
-	private $previewManager;
53
+    /** @var IPreview */
54
+    private $previewManager;
55 55
 
56
-	public function __construct(
57
-		$appName,
58
-		IRequest $request,
59
-		IRootFolder $rootFolder,
60
-		IUserSession $userSession,
61
-		IMimeTypeDetector $mimeTypeDetector,
62
-		IVersionManager $versionManager,
63
-		IPreview $previewManager
64
-	) {
65
-		parent::__construct($appName, $request);
56
+    public function __construct(
57
+        $appName,
58
+        IRequest $request,
59
+        IRootFolder $rootFolder,
60
+        IUserSession $userSession,
61
+        IMimeTypeDetector $mimeTypeDetector,
62
+        IVersionManager $versionManager,
63
+        IPreview $previewManager
64
+    ) {
65
+        parent::__construct($appName, $request);
66 66
 
67
-		$this->rootFolder = $rootFolder;
68
-		$this->userSession = $userSession;
69
-		$this->mimeTypeDetector = $mimeTypeDetector;
70
-		$this->versionManager = $versionManager;
71
-		$this->previewManager = $previewManager;
72
-	}
67
+        $this->rootFolder = $rootFolder;
68
+        $this->userSession = $userSession;
69
+        $this->mimeTypeDetector = $mimeTypeDetector;
70
+        $this->versionManager = $versionManager;
71
+        $this->previewManager = $previewManager;
72
+    }
73 73
 
74
-	/**
75
-	 * @NoAdminRequired
76
-	 * @NoCSRFRequired
77
-	 *
78
-	 * @param string $file
79
-	 * @param int $x
80
-	 * @param int $y
81
-	 * @param string $version
82
-	 * @return DataResponse|FileDisplayResponse
83
-	 */
84
-	public function getPreview(
85
-		$file = '',
86
-		$x = 44,
87
-		$y = 44,
88
-		$version = ''
89
-	) {
90
-		if ($file === '' || $version === '' || $x === 0 || $y === 0) {
91
-			return new DataResponse([], Http::STATUS_BAD_REQUEST);
92
-		}
74
+    /**
75
+     * @NoAdminRequired
76
+     * @NoCSRFRequired
77
+     *
78
+     * @param string $file
79
+     * @param int $x
80
+     * @param int $y
81
+     * @param string $version
82
+     * @return DataResponse|FileDisplayResponse
83
+     */
84
+    public function getPreview(
85
+        $file = '',
86
+        $x = 44,
87
+        $y = 44,
88
+        $version = ''
89
+    ) {
90
+        if ($file === '' || $version === '' || $x === 0 || $y === 0) {
91
+            return new DataResponse([], Http::STATUS_BAD_REQUEST);
92
+        }
93 93
 
94
-		try {
95
-			$user = $this->userSession->getUser();
96
-			$userFolder = $this->rootFolder->getUserFolder($user->getUID());
97
-			$file = $userFolder->get($file);
98
-			$versionFile = $this->versionManager->getVersionFile($user, $file, $version);
99
-			$preview = $this->previewManager->getPreview($versionFile, $x, $y, true, IPreview::MODE_FILL, $versionFile->getMimetype());
100
-			return new FileDisplayResponse($preview, Http::STATUS_OK, ['Content-Type' => $preview->getMimeType()]);
101
-		} catch (NotFoundException $e) {
102
-			return new DataResponse([], Http::STATUS_NOT_FOUND);
103
-		} catch (\InvalidArgumentException $e) {
104
-			return new DataResponse([], Http::STATUS_BAD_REQUEST);
105
-		}
106
-	}
94
+        try {
95
+            $user = $this->userSession->getUser();
96
+            $userFolder = $this->rootFolder->getUserFolder($user->getUID());
97
+            $file = $userFolder->get($file);
98
+            $versionFile = $this->versionManager->getVersionFile($user, $file, $version);
99
+            $preview = $this->previewManager->getPreview($versionFile, $x, $y, true, IPreview::MODE_FILL, $versionFile->getMimetype());
100
+            return new FileDisplayResponse($preview, Http::STATUS_OK, ['Content-Type' => $preview->getMimeType()]);
101
+        } catch (NotFoundException $e) {
102
+            return new DataResponse([], Http::STATUS_NOT_FOUND);
103
+        } catch (\InvalidArgumentException $e) {
104
+            return new DataResponse([], Http::STATUS_BAD_REQUEST);
105
+        }
106
+    }
107 107
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Versions/Version.php 1 patch
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -26,88 +26,88 @@
 block discarded – undo
26 26
 use OCP\IUser;
27 27
 
28 28
 class Version implements IVersion {
29
-	/** @var int */
30
-	private $timestamp;
31
-
32
-	/** @var int|string */
33
-	private $revisionId;
34
-
35
-	/** @var string */
36
-	private $name;
37
-
38
-	/** @var int */
39
-	private $size;
40
-
41
-	/** @var string */
42
-	private $mimetype;
43
-
44
-	/** @var string */
45
-	private $path;
46
-
47
-	/** @var FileInfo */
48
-	private $sourceFileInfo;
49
-
50
-	/** @var IVersionBackend */
51
-	private $backend;
52
-
53
-	/** @var IUser */
54
-	private $user;
55
-
56
-	public function __construct(
57
-		int $timestamp,
58
-		$revisionId,
59
-		string $name,
60
-		int $size,
61
-		string $mimetype,
62
-		string $path,
63
-		FileInfo $sourceFileInfo,
64
-		IVersionBackend $backend,
65
-		IUser $user
66
-	) {
67
-		$this->timestamp = $timestamp;
68
-		$this->revisionId = $revisionId;
69
-		$this->name = $name;
70
-		$this->size = $size;
71
-		$this->mimetype = $mimetype;
72
-		$this->path = $path;
73
-		$this->sourceFileInfo = $sourceFileInfo;
74
-		$this->backend = $backend;
75
-		$this->user = $user;
76
-	}
77
-
78
-	public function getBackend(): IVersionBackend {
79
-		return $this->backend;
80
-	}
81
-
82
-	public function getSourceFile(): FileInfo {
83
-		return $this->sourceFileInfo;
84
-	}
85
-
86
-	public function getRevisionId() {
87
-		return $this->revisionId;
88
-	}
89
-
90
-	public function getTimestamp(): int {
91
-		return $this->timestamp;
92
-	}
93
-
94
-	public function getSize(): int {
95
-		return $this->size;
96
-	}
97
-
98
-	public function getSourceFileName(): string {
99
-		return $this->name;
100
-	}
101
-
102
-	public function getMimeType(): string {
103
-		return $this->mimetype;
104
-	}
105
-
106
-	public function getVersionPath(): string {
107
-		return $this->path;
108
-	}
109
-
110
-	public function getUser(): IUser {
111
-		return $this->user;
112
-	}
29
+    /** @var int */
30
+    private $timestamp;
31
+
32
+    /** @var int|string */
33
+    private $revisionId;
34
+
35
+    /** @var string */
36
+    private $name;
37
+
38
+    /** @var int */
39
+    private $size;
40
+
41
+    /** @var string */
42
+    private $mimetype;
43
+
44
+    /** @var string */
45
+    private $path;
46
+
47
+    /** @var FileInfo */
48
+    private $sourceFileInfo;
49
+
50
+    /** @var IVersionBackend */
51
+    private $backend;
52
+
53
+    /** @var IUser */
54
+    private $user;
55
+
56
+    public function __construct(
57
+        int $timestamp,
58
+        $revisionId,
59
+        string $name,
60
+        int $size,
61
+        string $mimetype,
62
+        string $path,
63
+        FileInfo $sourceFileInfo,
64
+        IVersionBackend $backend,
65
+        IUser $user
66
+    ) {
67
+        $this->timestamp = $timestamp;
68
+        $this->revisionId = $revisionId;
69
+        $this->name = $name;
70
+        $this->size = $size;
71
+        $this->mimetype = $mimetype;
72
+        $this->path = $path;
73
+        $this->sourceFileInfo = $sourceFileInfo;
74
+        $this->backend = $backend;
75
+        $this->user = $user;
76
+    }
77
+
78
+    public function getBackend(): IVersionBackend {
79
+        return $this->backend;
80
+    }
81
+
82
+    public function getSourceFile(): FileInfo {
83
+        return $this->sourceFileInfo;
84
+    }
85
+
86
+    public function getRevisionId() {
87
+        return $this->revisionId;
88
+    }
89
+
90
+    public function getTimestamp(): int {
91
+        return $this->timestamp;
92
+    }
93
+
94
+    public function getSize(): int {
95
+        return $this->size;
96
+    }
97
+
98
+    public function getSourceFileName(): string {
99
+        return $this->name;
100
+    }
101
+
102
+    public function getMimeType(): string {
103
+        return $this->mimetype;
104
+    }
105
+
106
+    public function getVersionPath(): string {
107
+        return $this->path;
108
+    }
109
+
110
+    public function getUser(): IUser {
111
+        return $this->user;
112
+    }
113 113
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Versions/IVersion.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -29,71 +29,71 @@
 block discarded – undo
29 29
  * @since 15.0.0
30 30
  */
31 31
 interface IVersion {
32
-	/**
33
-	 * @return IVersionBackend
34
-	 * @since 15.0.0
35
-	 */
36
-	public function getBackend(): IVersionBackend;
32
+    /**
33
+     * @return IVersionBackend
34
+     * @since 15.0.0
35
+     */
36
+    public function getBackend(): IVersionBackend;
37 37
 
38
-	/**
39
-	 * Get the file info of the source file
40
-	 *
41
-	 * @return FileInfo
42
-	 * @since 15.0.0
43
-	 */
44
-	public function getSourceFile(): FileInfo;
38
+    /**
39
+     * Get the file info of the source file
40
+     *
41
+     * @return FileInfo
42
+     * @since 15.0.0
43
+     */
44
+    public function getSourceFile(): FileInfo;
45 45
 
46
-	/**
47
-	 * Get the id of the revision for the file
48
-	 *
49
-	 * @return int|string
50
-	 * @since 15.0.0
51
-	 */
52
-	public function getRevisionId();
46
+    /**
47
+     * Get the id of the revision for the file
48
+     *
49
+     * @return int|string
50
+     * @since 15.0.0
51
+     */
52
+    public function getRevisionId();
53 53
 
54
-	/**
55
-	 * Get the timestamp this version was created
56
-	 *
57
-	 * @return int
58
-	 * @since 15.0.0
59
-	 */
60
-	public function getTimestamp(): int;
54
+    /**
55
+     * Get the timestamp this version was created
56
+     *
57
+     * @return int
58
+     * @since 15.0.0
59
+     */
60
+    public function getTimestamp(): int;
61 61
 
62
-	/**
63
-	 * Get the size of this version
64
-	 *
65
-	 * @return int
66
-	 * @since 15.0.0
67
-	 */
68
-	public function getSize(): int;
62
+    /**
63
+     * Get the size of this version
64
+     *
65
+     * @return int
66
+     * @since 15.0.0
67
+     */
68
+    public function getSize(): int;
69 69
 
70
-	/**
71
-	 * Get the name of the source file at the time of making this version
72
-	 *
73
-	 * @return string
74
-	 * @since 15.0.0
75
-	 */
76
-	public function getSourceFileName(): string;
70
+    /**
71
+     * Get the name of the source file at the time of making this version
72
+     *
73
+     * @return string
74
+     * @since 15.0.0
75
+     */
76
+    public function getSourceFileName(): string;
77 77
 
78
-	/**
79
-	 * Get the mimetype of this version
80
-	 *
81
-	 * @return string
82
-	 * @since 15.0.0
83
-	 */
84
-	public function getMimeType(): string;
78
+    /**
79
+     * Get the mimetype of this version
80
+     *
81
+     * @return string
82
+     * @since 15.0.0
83
+     */
84
+    public function getMimeType(): string;
85 85
 
86
-	/**
87
-	 * Get the path of this version
88
-	 *
89
-	 * @return string
90
-	 * @since 15.0.0
91
-	 */
92
-	public function getVersionPath(): string;
86
+    /**
87
+     * Get the path of this version
88
+     *
89
+     * @return string
90
+     * @since 15.0.0
91
+     */
92
+    public function getVersionPath(): string;
93 93
 
94
-	/**
95
-	 * @return IUser
96
-	 * @since 15.0.0
97
-	 */
98
-	public function getUser(): IUser;
94
+    /**
95
+     * @return IUser
96
+     * @since 15.0.0
97
+     */
98
+    public function getUser(): IUser;
99 99
 }
Please login to merge, or discard this patch.
lib/public/Support/Subscription/ISubscription.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@
 block discarded – undo
28 28
  */
29 29
 interface ISubscription {
30 30
 
31
-	/**
32
-	 * Indicates if a valid subscription is available
33
-	 *
34
-	 * @since 17.0.0
35
-	 */
36
-	public function hasValidSubscription(): bool;
31
+    /**
32
+     * Indicates if a valid subscription is available
33
+     *
34
+     * @since 17.0.0
35
+     */
36
+    public function hasValidSubscription(): bool;
37 37
 
38
-	/**
39
-	 * Indicates if the subscription has extended support
40
-	 *
41
-	 * @since 17.0.0
42
-	 */
43
-	public function hasExtendedSupport(): bool;
38
+    /**
39
+     * Indicates if the subscription has extended support
40
+     *
41
+     * @since 17.0.0
42
+     */
43
+    public function hasExtendedSupport(): bool;
44 44
 }
Please login to merge, or discard this patch.
apps/user_ldap/lib/ILDAPUserPlugin.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -26,68 +26,68 @@
 block discarded – undo
26 26
 
27 27
 interface ILDAPUserPlugin {
28 28
 
29
-	/**
30
-	 * Check if plugin implements actions
31
-	 * @return int
32
-	 *
33
-	 * Returns the supported actions as int to be
34
-	 * compared with OC_USER_BACKEND_CREATE_USER etc.
35
-	 */
36
-	public function respondToActions();
29
+    /**
30
+     * Check if plugin implements actions
31
+     * @return int
32
+     *
33
+     * Returns the supported actions as int to be
34
+     * compared with OC_USER_BACKEND_CREATE_USER etc.
35
+     */
36
+    public function respondToActions();
37 37
 
38
-	/**
39
-	 * Create a new user in LDAP Backend
40
-	 *
41
-	 * @param string $uid The UID of the user to create
42
-	 * @param string $password The password of the new user
43
-	 * @return bool|string
44
-	 */
45
-	public function createUser($uid, $password);
38
+    /**
39
+     * Create a new user in LDAP Backend
40
+     *
41
+     * @param string $uid The UID of the user to create
42
+     * @param string $password The password of the new user
43
+     * @return bool|string
44
+     */
45
+    public function createUser($uid, $password);
46 46
 
47
-	/**
48
-	 * Set password
49
-	 *
50
-	 * @param string $uid The username
51
-	 * @param string $password The new password
52
-	 * @return bool
53
-	 *
54
-	 * Change the password of a user
55
-	 */
56
-	public function setPassword($uid, $password);
47
+    /**
48
+     * Set password
49
+     *
50
+     * @param string $uid The username
51
+     * @param string $password The new password
52
+     * @return bool
53
+     *
54
+     * Change the password of a user
55
+     */
56
+    public function setPassword($uid, $password);
57 57
 
58
-	/**
59
-	 * get the user's home directory
60
-	 * @param string $uid the username
61
-	 * @return boolean
62
-	 */
63
-	public function getHome($uid);
58
+    /**
59
+     * get the user's home directory
60
+     * @param string $uid the username
61
+     * @return boolean
62
+     */
63
+    public function getHome($uid);
64 64
 
65
-	/**
66
-	 * get display name of the user
67
-	 * @param string $uid user ID of the user
68
-	 * @return string display name
69
-	 */
70
-	public function getDisplayName($uid);
65
+    /**
66
+     * get display name of the user
67
+     * @param string $uid user ID of the user
68
+     * @return string display name
69
+     */
70
+    public function getDisplayName($uid);
71 71
 
72
-	/**
73
-	 * set display name of the user
74
-	 * @param string $uid user ID of the user
75
-	 * @param string $displayName new user's display name
76
-	 * @return string display name
77
-	 */
78
-	public function setDisplayName($uid, $displayName);
72
+    /**
73
+     * set display name of the user
74
+     * @param string $uid user ID of the user
75
+     * @param string $displayName new user's display name
76
+     * @return string display name
77
+     */
78
+    public function setDisplayName($uid, $displayName);
79 79
 
80
-	/**
81
-	 * checks whether the user is allowed to change his avatar in Nextcloud
82
-	 * @param string $uid the Nextcloud user name
83
-	 * @return boolean either the user can or cannot
84
-	 */
85
-	public function canChangeAvatar($uid);
80
+    /**
81
+     * checks whether the user is allowed to change his avatar in Nextcloud
82
+     * @param string $uid the Nextcloud user name
83
+     * @return boolean either the user can or cannot
84
+     */
85
+    public function canChangeAvatar($uid);
86 86
 
87
-	/**
88
-	 * Count the number of users
89
-	 * @return int|bool
90
-	 */
91
-	public function countUsers();
87
+    /**
88
+     * Count the number of users
89
+     * @return int|bool
90
+     */
91
+    public function countUsers();
92 92
 
93 93
 }
Please login to merge, or discard this patch.
lib/public/EventDispatcher/IEventListener.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
  */
31 31
 interface IEventListener {
32 32
 
33
-	/**
34
-	 * @param Event $event
35
-	 *
36
-	 * @since 17.0.0
37
-	 */
38
-	public function handle(Event $event): void;
33
+    /**
34
+     * @param Event $event
35
+     *
36
+     * @since 17.0.0
37
+     */
38
+    public function handle(Event $event): void;
39 39
 
40 40
 }
Please login to merge, or discard this patch.