Passed
Push — master ( 98fd66...bf4acd )
by Joas
18:11 queued 12s
created
apps/dav/lib/CalDAV/Activity/Filter/Calendar.php 1 patch
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -30,65 +30,65 @@
 block discarded – undo
30 30
 
31 31
 class Calendar implements IFilter {
32 32
 
33
-	/** @var IL10N */
34
-	protected $l;
33
+    /** @var IL10N */
34
+    protected $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	protected $url;
36
+    /** @var IURLGenerator */
37
+    protected $url;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $url) {
40
-		$this->l = $l;
41
-		$this->url = $url;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $url) {
40
+        $this->l = $l;
41
+        $this->url = $url;
42
+    }
43 43
 
44
-	/**
45
-	 * @return string Lowercase a-z and underscore only identifier
46
-	 * @since 11.0.0
47
-	 */
48
-	public function getIdentifier() {
49
-		return 'calendar';
50
-	}
44
+    /**
45
+     * @return string Lowercase a-z and underscore only identifier
46
+     * @since 11.0.0
47
+     */
48
+    public function getIdentifier() {
49
+        return 'calendar';
50
+    }
51 51
 
52
-	/**
53
-	 * @return string A translated string
54
-	 * @since 11.0.0
55
-	 */
56
-	public function getName() {
57
-		return $this->l->t('Calendar');
58
-	}
52
+    /**
53
+     * @return string A translated string
54
+     * @since 11.0.0
55
+     */
56
+    public function getName() {
57
+        return $this->l->t('Calendar');
58
+    }
59 59
 
60
-	/**
61
-	 * @return int whether the filter should be rather on the top or bottom of
62
-	 * the admin section. The filters are arranged in ascending order of the
63
-	 * priority values. It is required to return a value between 0 and 100.
64
-	 * @since 11.0.0
65
-	 */
66
-	public function getPriority() {
67
-		return 40;
68
-	}
60
+    /**
61
+     * @return int whether the filter should be rather on the top or bottom of
62
+     * the admin section. The filters are arranged in ascending order of the
63
+     * priority values. It is required to return a value between 0 and 100.
64
+     * @since 11.0.0
65
+     */
66
+    public function getPriority() {
67
+        return 40;
68
+    }
69 69
 
70
-	/**
71
-	 * @return string Full URL to an icon, empty string when none is given
72
-	 * @since 11.0.0
73
-	 */
74
-	public function getIcon() {
75
-		return $this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar.svg'));
76
-	}
70
+    /**
71
+     * @return string Full URL to an icon, empty string when none is given
72
+     * @since 11.0.0
73
+     */
74
+    public function getIcon() {
75
+        return $this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar.svg'));
76
+    }
77 77
 
78
-	/**
79
-	 * @param string[] $types
80
-	 * @return string[] An array of allowed apps from which activities should be displayed
81
-	 * @since 11.0.0
82
-	 */
83
-	public function filterTypes(array $types) {
84
-		return array_intersect(['calendar', 'calendar_event'], $types);
85
-	}
78
+    /**
79
+     * @param string[] $types
80
+     * @return string[] An array of allowed apps from which activities should be displayed
81
+     * @since 11.0.0
82
+     */
83
+    public function filterTypes(array $types) {
84
+        return array_intersect(['calendar', 'calendar_event'], $types);
85
+    }
86 86
 
87
-	/**
88
-	 * @return string[] An array of allowed apps from which activities should be displayed
89
-	 * @since 11.0.0
90
-	 */
91
-	public function allowedApps() {
92
-		return [];
93
-	}
87
+    /**
88
+     * @return string[] An array of allowed apps from which activities should be displayed
89
+     * @since 11.0.0
90
+     */
91
+    public function allowedApps() {
92
+        return [];
93
+    }
94 94
 }
Please login to merge, or discard this patch.
core/Migrations/Version14000Date20180712153140.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
  * Class Version14000Date20180712153140
31 31
  */
32 32
 class Version14000Date20180712153140 extends SimpleMigrationStep {
33
-	public function changeSchema(\OCP\Migration\IOutput $output, \Closure $schemaClosure, array $options) {
33
+    public function changeSchema(\OCP\Migration\IOutput $output, \Closure $schemaClosure, array $options) {
34 34
 
35
-		/** @var ISchemaWrapper $schema */
36
-		$schema = $schemaClosure();
35
+        /** @var ISchemaWrapper $schema */
36
+        $schema = $schemaClosure();
37 37
 
38
-		$table = $schema->getTable('share');
39
-		$table->addColumn('note', 'text', ['notnull' => false]);
38
+        $table = $schema->getTable('share');
39
+        $table->addColumn('note', 'text', ['notnull' => false]);
40 40
 
41
-		return $schema;
42
-	}
41
+        return $schema;
42
+    }
43 43
 }
Please login to merge, or discard this patch.
core/Controller/NavigationController.php 1 patch
Indentation   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -31,92 +31,92 @@
 block discarded – undo
31 31
 
32 32
 class NavigationController extends OCSController {
33 33
 
34
-	/** @var INavigationManager */
35
-	private $navigationManager;
34
+    /** @var INavigationManager */
35
+    private $navigationManager;
36 36
 
37
-	/** @var IURLGenerator */
38
-	private $urlGenerator;
37
+    /** @var IURLGenerator */
38
+    private $urlGenerator;
39 39
 
40
-	public function __construct(string $appName, IRequest $request, INavigationManager $navigationManager, IURLGenerator $urlGenerator) {
41
-		parent::__construct($appName, $request);
42
-		$this->navigationManager = $navigationManager;
43
-		$this->urlGenerator = $urlGenerator;
44
-	}
40
+    public function __construct(string $appName, IRequest $request, INavigationManager $navigationManager, IURLGenerator $urlGenerator) {
41
+        parent::__construct($appName, $request);
42
+        $this->navigationManager = $navigationManager;
43
+        $this->urlGenerator = $urlGenerator;
44
+    }
45 45
 
46
-	/**
47
-	 * @NoAdminRequired
48
-	 * @NoCSRFRequired
49
-	 *
50
-	 * @param bool $absolute
51
-	 * @return DataResponse
52
-	 */
53
-	public function getAppsNavigation(bool $absolute = false): DataResponse {
54
-		$navigation = $this->navigationManager->getAll();
55
-		if ($absolute) {
56
-			$navigation = $this->rewriteToAbsoluteUrls($navigation);
57
-		}
58
-		$navigation = array_values($navigation);
59
-		$etag = $this->generateETag($navigation);
60
-		if ($this->request->getHeader('If-None-Match') === $etag) {
61
-			return new DataResponse([], Http::STATUS_NOT_MODIFIED);
62
-		}
63
-		$response = new DataResponse($navigation);
64
-		$response->setETag($etag);
65
-		return $response;
66
-	}
46
+    /**
47
+     * @NoAdminRequired
48
+     * @NoCSRFRequired
49
+     *
50
+     * @param bool $absolute
51
+     * @return DataResponse
52
+     */
53
+    public function getAppsNavigation(bool $absolute = false): DataResponse {
54
+        $navigation = $this->navigationManager->getAll();
55
+        if ($absolute) {
56
+            $navigation = $this->rewriteToAbsoluteUrls($navigation);
57
+        }
58
+        $navigation = array_values($navigation);
59
+        $etag = $this->generateETag($navigation);
60
+        if ($this->request->getHeader('If-None-Match') === $etag) {
61
+            return new DataResponse([], Http::STATUS_NOT_MODIFIED);
62
+        }
63
+        $response = new DataResponse($navigation);
64
+        $response->setETag($etag);
65
+        return $response;
66
+    }
67 67
 
68
-	/**
69
-	 * @NoAdminRequired
70
-	 * @NoCSRFRequired
71
-	 *
72
-	 * @param bool $absolute
73
-	 * @return DataResponse
74
-	 */
75
-	public function getSettingsNavigation(bool $absolute = false): DataResponse {
76
-		$navigation = $this->navigationManager->getAll('settings');
77
-		if ($absolute) {
78
-			$navigation = $this->rewriteToAbsoluteUrls($navigation);
79
-		}
80
-		$navigation = array_values($navigation);
81
-		$etag = $this->generateETag($navigation);
82
-		if ($this->request->getHeader('If-None-Match') === $etag) {
83
-			return new DataResponse([], Http::STATUS_NOT_MODIFIED);
84
-		}
85
-		$response = new DataResponse($navigation);
86
-		$response->setETag($etag);
87
-		return $response;
88
-	}
68
+    /**
69
+     * @NoAdminRequired
70
+     * @NoCSRFRequired
71
+     *
72
+     * @param bool $absolute
73
+     * @return DataResponse
74
+     */
75
+    public function getSettingsNavigation(bool $absolute = false): DataResponse {
76
+        $navigation = $this->navigationManager->getAll('settings');
77
+        if ($absolute) {
78
+            $navigation = $this->rewriteToAbsoluteUrls($navigation);
79
+        }
80
+        $navigation = array_values($navigation);
81
+        $etag = $this->generateETag($navigation);
82
+        if ($this->request->getHeader('If-None-Match') === $etag) {
83
+            return new DataResponse([], Http::STATUS_NOT_MODIFIED);
84
+        }
85
+        $response = new DataResponse($navigation);
86
+        $response->setETag($etag);
87
+        return $response;
88
+    }
89 89
 
90
-	/**
91
-	 * Generate an ETag for a list of navigation entries
92
-	 *
93
-	 * @param array $navigation
94
-	 * @return string
95
-	 */
96
-	private function generateETag(array $navigation): string {
97
-		foreach ($navigation as &$nav) {
98
-			if ($nav['id'] === 'logout') {
99
-				$nav['href'] = 'logout';
100
-			}
101
-		}
102
-		return md5(json_encode($navigation));
103
-	}
90
+    /**
91
+     * Generate an ETag for a list of navigation entries
92
+     *
93
+     * @param array $navigation
94
+     * @return string
95
+     */
96
+    private function generateETag(array $navigation): string {
97
+        foreach ($navigation as &$nav) {
98
+            if ($nav['id'] === 'logout') {
99
+                $nav['href'] = 'logout';
100
+            }
101
+        }
102
+        return md5(json_encode($navigation));
103
+    }
104 104
 
105
-	/**
106
-	 * Rewrite href attribute of navigation entries to an absolute URL
107
-	 *
108
-	 * @param array $navigation
109
-	 * @return array
110
-	 */
111
-	private function rewriteToAbsoluteUrls(array $navigation): array {
112
-		foreach ($navigation as &$entry) {
113
-			if (0 !== strpos($entry['href'], $this->urlGenerator->getBaseUrl())) {
114
-				$entry['href'] = $this->urlGenerator->getAbsoluteURL($entry['href']);
115
-			}
116
-			if (0 !== strpos($entry['icon'], $this->urlGenerator->getBaseUrl())) {
117
-				$entry['icon'] = $this->urlGenerator->getAbsoluteURL($entry['icon']);
118
-			}
119
-		}
120
-		return $navigation;
121
-	}
105
+    /**
106
+     * Rewrite href attribute of navigation entries to an absolute URL
107
+     *
108
+     * @param array $navigation
109
+     * @return array
110
+     */
111
+    private function rewriteToAbsoluteUrls(array $navigation): array {
112
+        foreach ($navigation as &$entry) {
113
+            if (0 !== strpos($entry['href'], $this->urlGenerator->getBaseUrl())) {
114
+                $entry['href'] = $this->urlGenerator->getAbsoluteURL($entry['href']);
115
+            }
116
+            if (0 !== strpos($entry['icon'], $this->urlGenerator->getBaseUrl())) {
117
+                $entry['icon'] = $this->urlGenerator->getAbsoluteURL($entry['icon']);
118
+            }
119
+        }
120
+        return $navigation;
121
+    }
122 122
 }
Please login to merge, or discard this patch.
lib/public/IAvatar.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -37,67 +37,67 @@
 block discarded – undo
37 37
  */
38 38
 interface IAvatar {
39 39
 
40
-	/**
41
-	 * get the users avatar
42
-	 * @param int $size size in px of the avatar, avatars are square, defaults to 64, -1 can be used to not scale the image
43
-	 * @return boolean|\OCP\IImage containing the avatar or false if there's no image
44
-	 * @since 6.0.0 - size of -1 was added in 9.0.0
45
-	 */
46
-	public function get($size = 64);
40
+    /**
41
+     * get the users avatar
42
+     * @param int $size size in px of the avatar, avatars are square, defaults to 64, -1 can be used to not scale the image
43
+     * @return boolean|\OCP\IImage containing the avatar or false if there's no image
44
+     * @since 6.0.0 - size of -1 was added in 9.0.0
45
+     */
46
+    public function get($size = 64);
47 47
 
48
-	/**
49
-	 * Check if an avatar exists for the user
50
-	 *
51
-	 * @return bool
52
-	 * @since 8.1.0
53
-	 */
54
-	public function exists();
48
+    /**
49
+     * Check if an avatar exists for the user
50
+     *
51
+     * @return bool
52
+     * @since 8.1.0
53
+     */
54
+    public function exists();
55 55
 
56
-	/**
57
-	 * Check if the avatar of a user is a custom uploaded one
58
-	 *
59
-	 * @return bool
60
-	 * @since 14.0.0
61
-	 */
62
-	public function isCustomAvatar(): bool;
56
+    /**
57
+     * Check if the avatar of a user is a custom uploaded one
58
+     *
59
+     * @return bool
60
+     * @since 14.0.0
61
+     */
62
+    public function isCustomAvatar(): bool;
63 63
 
64
-	/**
65
-	 * sets the users avatar
66
-	 * @param \OCP\IImage|resource|string $data An image object, imagedata or path to set a new avatar
67
-	 * @throws \Exception if the provided file is not a jpg or png image
68
-	 * @throws \Exception if the provided image is not valid
69
-	 * @throws \OC\NotSquareException if the image is not square
70
-	 * @return void
71
-	 * @since 6.0.0
72
-	 */
73
-	public function set($data);
64
+    /**
65
+     * sets the users avatar
66
+     * @param \OCP\IImage|resource|string $data An image object, imagedata or path to set a new avatar
67
+     * @throws \Exception if the provided file is not a jpg or png image
68
+     * @throws \Exception if the provided image is not valid
69
+     * @throws \OC\NotSquareException if the image is not square
70
+     * @return void
71
+     * @since 6.0.0
72
+     */
73
+    public function set($data);
74 74
 
75
-	/**
76
-	 * remove the users avatar
77
-	 * @return void
78
-	 * @since 6.0.0
79
-	 */
80
-	public function remove();
75
+    /**
76
+     * remove the users avatar
77
+     * @return void
78
+     * @since 6.0.0
79
+     */
80
+    public function remove();
81 81
 
82
-	/**
83
-	 * Get the file of the avatar
84
-	 * @param int $size -1 can be used to not scale the image
85
-	 * @return File
86
-	 * @throws NotFoundException
87
-	 * @since 9.0.0
88
-	 */
89
-	public function getFile($size);
82
+    /**
83
+     * Get the file of the avatar
84
+     * @param int $size -1 can be used to not scale the image
85
+     * @return File
86
+     * @throws NotFoundException
87
+     * @since 9.0.0
88
+     */
89
+    public function getFile($size);
90 90
 
91
-	/**
92
-	 * @param string $text
93
-	 * @return Color Object containting r g b int in the range [0, 255]
94
-	 * @since 14.0.0
95
-	 */
96
-	public function avatarBackgroundColor(string $text);
91
+    /**
92
+     * @param string $text
93
+     * @return Color Object containting r g b int in the range [0, 255]
94
+     * @since 14.0.0
95
+     */
96
+    public function avatarBackgroundColor(string $text);
97 97
 
98
-	/**
99
-	 * Handle a changed user
100
-	 * @since 13.0.0
101
-	 */
102
-	public function userChanged($feature, $oldValue, $newValue);
98
+    /**
99
+     * Handle a changed user
100
+     * @since 13.0.0
101
+     */
102
+    public function userChanged($feature, $oldValue, $newValue);
103 103
 }
Please login to merge, or discard this patch.
lib/private/App/AppStore/Bundles/EnterpriseBundle.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -25,26 +25,26 @@
 block discarded – undo
25 25
 
26 26
 class EnterpriseBundle extends Bundle {
27 27
 
28
-	/**
29
-	 * {@inheritDoc}
30
-	 */
31
-	public function getName(): string {
32
-		return $this->l10n->t('Enterprise bundle');
33
-	}
28
+    /**
29
+     * {@inheritDoc}
30
+     */
31
+    public function getName(): string {
32
+        return $this->l10n->t('Enterprise bundle');
33
+    }
34 34
 
35
-	/**
36
-	 * {@inheritDoc}
37
-	 */
38
-	public function getAppIdentifiers(): array {
39
-		return [
40
-			'admin_audit',
41
-			'user_ldap',
42
-			'files_retention',
43
-			'files_automatedtagging',
44
-			'user_saml',
45
-			'files_accesscontrol',
46
-			'terms_of_service',
47
-		];
48
-	}
35
+    /**
36
+     * {@inheritDoc}
37
+     */
38
+    public function getAppIdentifiers(): array {
39
+        return [
40
+            'admin_audit',
41
+            'user_ldap',
42
+            'files_retention',
43
+            'files_automatedtagging',
44
+            'user_saml',
45
+            'files_accesscontrol',
46
+            'terms_of_service',
47
+        ];
48
+    }
49 49
 
50 50
 }
Please login to merge, or discard this patch.
lib/public/Support/CrashReport/ICollectBreadcrumbs.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@
 block discarded – undo
29 29
  */
30 30
 interface ICollectBreadcrumbs extends IReporter {
31 31
 
32
-	/**
33
-	 * Collect breadcrumbs for crash reports
34
-	 *
35
-	 * @param string $message
36
-	 * @param string $category
37
-	 * @param array $context
38
-	 *
39
-	 * @since 15.0.0
40
-	 */
41
-	public function collect(string $message, string $category, array $context = []);
32
+    /**
33
+     * Collect breadcrumbs for crash reports
34
+     *
35
+     * @param string $message
36
+     * @param string $category
37
+     * @param array $context
38
+     *
39
+     * @since 15.0.0
40
+     */
41
+    public function collect(string $message, string $category, array $context = []);
42 42
 
43 43
 }
Please login to merge, or discard this patch.
lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -34,22 +34,22 @@
 block discarded – undo
34 34
  */
35 35
 interface IProvidesIcons extends IProvider {
36 36
 
37
-	/**
38
-	 * Get the path to the light (white) icon of this provider
39
-	 *
40
-	 * @return String
41
-	 *
42
-	 * @since 15.0.0
43
-	 */
44
-	public function getLightIcon(): String;
37
+    /**
38
+     * Get the path to the light (white) icon of this provider
39
+     *
40
+     * @return String
41
+     *
42
+     * @since 15.0.0
43
+     */
44
+    public function getLightIcon(): String;
45 45
 
46
-	/**
47
-	 * Get the path to the dark (black) icon of this provider
48
-	 *
49
-	 * @return String
50
-	 *
51
-	 * @since 15.0.0
52
-	 */
53
-	public function getDarkIcon(): String;
46
+    /**
47
+     * Get the path to the dark (black) icon of this provider
48
+     *
49
+     * @return String
50
+     *
51
+     * @since 15.0.0
52
+     */
53
+    public function getDarkIcon(): String;
54 54
 
55 55
 }
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/Migration/CheckBackupCodes.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -30,19 +30,19 @@
 block discarded – undo
30 30
 
31 31
 class CheckBackupCodes implements IRepairStep {
32 32
 
33
-	/** @var IJobList */
34
-	private $jobList;
33
+    /** @var IJobList */
34
+    private $jobList;
35 35
 
36
-	public function __construct(IJobList $jobList) {
37
-		$this->jobList = $jobList;
38
-	}
36
+    public function __construct(IJobList $jobList) {
37
+        $this->jobList = $jobList;
38
+    }
39 39
 
40
-	public function getName(): string {
41
-		return 'Add background job to check for backup codes';
42
-	}
40
+    public function getName(): string {
41
+        return 'Add background job to check for backup codes';
42
+    }
43 43
 
44
-	public function run(IOutput $output) {
45
-		$this->jobList->add(\OCA\TwoFactorBackupCodes\BackgroundJob\CheckBackupCodes::class);
46
-	}
44
+    public function run(IOutput $output) {
45
+        $this->jobList->add(\OCA\TwoFactorBackupCodes\BackgroundJob\CheckBackupCodes::class);
46
+    }
47 47
 
48 48
 }
Please login to merge, or discard this patch.
lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@
 block discarded – undo
33 33
  */
34 34
 interface IPersonalProviderSettings {
35 35
 
36
-	/**
37
-	 * @return Template
38
-	 *
39
-	 * @since 15.0.0
40
-	 */
41
-	public function getBody(): Template;
36
+    /**
37
+     * @return Template
38
+     *
39
+     * @since 15.0.0
40
+     */
41
+    public function getBody(): Template;
42 42
 
43 43
 }
Please login to merge, or discard this patch.