Passed
Push — master ( 4908d8...fbbdc6 )
by Joas
16:12 queued 12s
created
apps/settings/lib/Sections/Admin/Server.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class Server implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon(): string {
45
-		return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
46
-	}
44
+    public function getIcon(): string {
45
+        return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'server';
50
-	}
48
+    public function getID(): string {
49
+        return 'server';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Basic settings');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Basic settings');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 1;
58
-	}
56
+    public function getPriority(): int {
57
+        return 1;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Admin/Overview.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class Overview implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon(): string {
45
-		return $this->urlGenerator->imagePath('settings', 'admin.svg');
46
-	}
44
+    public function getIcon(): string {
45
+        return $this->urlGenerator->imagePath('settings', 'admin.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'overview';
50
-	}
48
+    public function getID(): string {
49
+        return 'overview';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Overview');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Overview');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 0;
58
-	}
56
+    public function getPriority(): int {
57
+        return 0;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Personal/SyncClients.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class SyncClients implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon() {
45
-		return $this->urlGenerator->imagePath('core', 'clients/phone.svg');
46
-	}
44
+    public function getIcon() {
45
+        return $this->urlGenerator->imagePath('core', 'clients/phone.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'sync-clients';
50
-	}
48
+    public function getID(): string {
49
+        return 'sync-clients';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Mobile & desktop');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Mobile & desktop');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 15;
58
-	}
56
+    public function getPriority(): int {
57
+        return 15;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Personal/Security.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class Security implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon() {
45
-		return $this->urlGenerator->imagePath('settings', 'password.svg');
46
-	}
44
+    public function getIcon() {
45
+        return $this->urlGenerator->imagePath('settings', 'password.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'security';
50
-	}
48
+    public function getID(): string {
49
+        return 'security';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Security');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Security');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 5;
58
-	}
56
+    public function getPriority(): int {
57
+        return 5;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Personal/PersonalInfo.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class PersonalInfo implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon() {
45
-		return $this->urlGenerator->imagePath('core', 'actions/user.svg');
46
-	}
44
+    public function getIcon() {
45
+        return $this->urlGenerator->imagePath('core', 'actions/user.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'personal-info';
50
-	}
48
+    public function getID(): string {
49
+        return 'personal-info';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Personal info');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Personal info');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 0;
58
-	}
56
+    public function getPriority(): int {
57
+        return 0;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Settings/Personal/Security/Password.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -34,35 +34,35 @@
 block discarded – undo
34 34
 
35 35
 class Password implements ISettings {
36 36
 
37
-	/** @var IUserManager */
38
-	private $userManager;
37
+    /** @var IUserManager */
38
+    private $userManager;
39 39
 
40
-	/** @var string|null */
41
-	private $uid;
40
+    /** @var string|null */
41
+    private $uid;
42 42
 
43
-	public function __construct(IUserManager $userManager,
44
-								?string $UserId) {
45
-		$this->userManager = $userManager;
46
-		$this->uid = $UserId;
47
-	}
43
+    public function __construct(IUserManager $userManager,
44
+                                ?string $UserId) {
45
+        $this->userManager = $userManager;
46
+        $this->uid = $UserId;
47
+    }
48 48
 
49
-	public function getForm(): TemplateResponse {
50
-		$user = $this->userManager->get($this->uid);
51
-		$passwordChangeSupported = false;
52
-		if ($user !== null) {
53
-			$passwordChangeSupported = $user->canChangePassword();
54
-		}
49
+    public function getForm(): TemplateResponse {
50
+        $user = $this->userManager->get($this->uid);
51
+        $passwordChangeSupported = false;
52
+        if ($user !== null) {
53
+            $passwordChangeSupported = $user->canChangePassword();
54
+        }
55 55
 
56
-		return new TemplateResponse('settings', 'settings/personal/security/password', [
57
-			'passwordChangeSupported' => $passwordChangeSupported,
58
-		]);
59
-	}
56
+        return new TemplateResponse('settings', 'settings/personal/security/password', [
57
+            'passwordChangeSupported' => $passwordChangeSupported,
58
+        ]);
59
+    }
60 60
 
61
-	public function getSection(): string {
62
-		return 'security';
63
-	}
61
+    public function getSection(): string {
62
+        return 'security';
63
+    }
64 64
 
65
-	public function getPriority(): int {
66
-		return 10;
67
-	}
65
+    public function getPriority(): int {
66
+        return 10;
67
+    }
68 68
 }
Please login to merge, or discard this patch.
lib/private/DB/SetTransactionIsolationLevel.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
 use Doctrine\DBAL\TransactionIsolationLevel;
33 33
 
34 34
 class SetTransactionIsolationLevel implements EventSubscriber {
35
-	/**
36
-	 * @param ConnectionEventArgs $args
37
-	 * @return void
38
-	 */
39
-	public function postConnect(ConnectionEventArgs $args) {
40
-		$args->getConnection()->setTransactionIsolation(TransactionIsolationLevel::READ_COMMITTED);
41
-	}
35
+    /**
36
+     * @param ConnectionEventArgs $args
37
+     * @return void
38
+     */
39
+    public function postConnect(ConnectionEventArgs $args) {
40
+        $args->getConnection()->setTransactionIsolation(TransactionIsolationLevel::READ_COMMITTED);
41
+    }
42 42
 
43
-	public function getSubscribedEvents() {
44
-		return [Events::postConnect];
45
-	}
43
+    public function getSubscribedEvents() {
44
+        return [Events::postConnect];
45
+    }
46 46
 }
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Integration/ICalendarProvider.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -32,42 +32,42 @@
 block discarded – undo
32 32
  */
33 33
 interface ICalendarProvider {
34 34
 
35
-	/**
36
-	 * Provides the appId of the plugin
37
-	 *
38
-	 * @since 19.0.0
39
-	 * @return string AppId
40
-	 */
41
-	public function getAppId(): string;
35
+    /**
36
+     * Provides the appId of the plugin
37
+     *
38
+     * @since 19.0.0
39
+     * @return string AppId
40
+     */
41
+    public function getAppId(): string;
42 42
 
43
-	/**
44
-	 * Fetches all calendars for a given principal uri
45
-	 *
46
-	 * @since 19.0.0
47
-	 * @param string $principalUri E.g. principals/users/user1
48
-	 * @return ExternalCalendar[] Array of all calendars
49
-	 */
50
-	public function fetchAllForCalendarHome(string $principalUri): array;
43
+    /**
44
+     * Fetches all calendars for a given principal uri
45
+     *
46
+     * @since 19.0.0
47
+     * @param string $principalUri E.g. principals/users/user1
48
+     * @return ExternalCalendar[] Array of all calendars
49
+     */
50
+    public function fetchAllForCalendarHome(string $principalUri): array;
51 51
 
52
-	/**
53
-	 * Checks whether plugin has a calendar for a given principalUri and calendarUri
54
-	 *
55
-	 * @since 19.0.0
56
-	 * @param string $principalUri E.g. principals/users/user1
57
-	 * @param string $calendarUri E.g. personal
58
-	 * @return bool True if calendar for principalUri and calendarUri exists, false otherwise
59
-	 */
60
-	public function hasCalendarInCalendarHome(string $principalUri, string $calendarUri): bool;
52
+    /**
53
+     * Checks whether plugin has a calendar for a given principalUri and calendarUri
54
+     *
55
+     * @since 19.0.0
56
+     * @param string $principalUri E.g. principals/users/user1
57
+     * @param string $calendarUri E.g. personal
58
+     * @return bool True if calendar for principalUri and calendarUri exists, false otherwise
59
+     */
60
+    public function hasCalendarInCalendarHome(string $principalUri, string $calendarUri): bool;
61 61
 
62
-	/**
63
-	 * Fetches a calendar for a given principalUri and calendarUri
64
-	 * Returns null if calendar does not exist
65
-	 *
66
-	 * @since 19.0.0
67
-	 * @param string $principalUri E.g. principals/users/user1
68
-	 * @param string $calendarUri E.g. personal
69
-	 * @return ExternalCalendar|null Calendar if it exists, null otherwise
70
-	 */
71
-	public function getCalendarInCalendarHome(string $principalUri, string $calendarUri): ?ExternalCalendar;
62
+    /**
63
+     * Fetches a calendar for a given principalUri and calendarUri
64
+     * Returns null if calendar does not exist
65
+     *
66
+     * @since 19.0.0
67
+     * @param string $principalUri E.g. principals/users/user1
68
+     * @param string $calendarUri E.g. personal
69
+     * @return ExternalCalendar|null Calendar if it exists, null otherwise
70
+     */
71
+    public function getCalendarInCalendarHome(string $principalUri, string $calendarUri): ?ExternalCalendar;
72 72
 
73 73
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Versions/IVersionBackend.php 1 patch
Indentation   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -37,64 +37,64 @@
 block discarded – undo
37 37
  * @since 15.0.0
38 38
  */
39 39
 interface IVersionBackend {
40
-	/**
41
-	 * Whether or not this version backend should be used for a storage
42
-	 *
43
-	 * If false is returned then the next applicable backend will be used
44
-	 *
45
-	 * @param IStorage $storage
46
-	 * @return bool
47
-	 * @since 17.0.0
48
-	 */
49
-	public function useBackendForStorage(IStorage $storage): bool;
40
+    /**
41
+     * Whether or not this version backend should be used for a storage
42
+     *
43
+     * If false is returned then the next applicable backend will be used
44
+     *
45
+     * @param IStorage $storage
46
+     * @return bool
47
+     * @since 17.0.0
48
+     */
49
+    public function useBackendForStorage(IStorage $storage): bool;
50 50
 
51
-	/**
52
-	 * Get all versions for a file
53
-	 *
54
-	 * @param IUser $user
55
-	 * @param FileInfo $file
56
-	 * @return IVersion[]
57
-	 * @since 15.0.0
58
-	 */
59
-	public function getVersionsForFile(IUser $user, FileInfo $file): array;
51
+    /**
52
+     * Get all versions for a file
53
+     *
54
+     * @param IUser $user
55
+     * @param FileInfo $file
56
+     * @return IVersion[]
57
+     * @since 15.0.0
58
+     */
59
+    public function getVersionsForFile(IUser $user, FileInfo $file): array;
60 60
 
61
-	/**
62
-	 * Create a new version for a file
63
-	 *
64
-	 * @param IUser $user
65
-	 * @param FileInfo $file
66
-	 * @since 15.0.0
67
-	 */
68
-	public function createVersion(IUser $user, FileInfo $file);
61
+    /**
62
+     * Create a new version for a file
63
+     *
64
+     * @param IUser $user
65
+     * @param FileInfo $file
66
+     * @since 15.0.0
67
+     */
68
+    public function createVersion(IUser $user, FileInfo $file);
69 69
 
70
-	/**
71
-	 * Restore this version
72
-	 *
73
-	 * @param IVersion $version
74
-	 * @since 15.0.0
75
-	 */
76
-	public function rollback(IVersion $version);
70
+    /**
71
+     * Restore this version
72
+     *
73
+     * @param IVersion $version
74
+     * @since 15.0.0
75
+     */
76
+    public function rollback(IVersion $version);
77 77
 
78
-	/**
79
-	 * Open the file for reading
80
-	 *
81
-	 * @param IVersion $version
82
-	 * @return resource
83
-	 * @throws NotFoundException
84
-	 * @since 15.0.0
85
-	 */
86
-	public function read(IVersion $version);
78
+    /**
79
+     * Open the file for reading
80
+     *
81
+     * @param IVersion $version
82
+     * @return resource
83
+     * @throws NotFoundException
84
+     * @since 15.0.0
85
+     */
86
+    public function read(IVersion $version);
87 87
 
88
-	/**
89
-	 * Get the preview for a specific version of a file
90
-	 *
91
-	 * @param IUser $user
92
-	 * @param FileInfo $sourceFile
93
-	 * @param int|string $revision
94
-	 *
95
-	 * @return File
96
-	 *
97
-	 * @since 15.0.0
98
-	 */
99
-	public function getVersionFile(IUser $user, FileInfo $sourceFile, $revision): File;
88
+    /**
89
+     * Get the preview for a specific version of a file
90
+     *
91
+     * @param IUser $user
92
+     * @param FileInfo $sourceFile
93
+     * @param int|string $revision
94
+     *
95
+     * @return File
96
+     *
97
+     * @since 15.0.0
98
+     */
99
+    public function getVersionFile(IUser $user, FileInfo $sourceFile, $revision): File;
100 100
 }
Please login to merge, or discard this patch.