Passed
Push — master ( a9798a...74f31b )
by John
14:36 queued 12s
created
apps/testing/lib/AppInfo/Application.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,22 +31,22 @@
 block discarded – undo
31 31
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
32 32
 
33 33
 class Application extends App implements IBootstrap {
34
-	public function __construct(array $urlParams = []) {
35
-		parent::__construct('testing', $urlParams);
36
-	}
34
+    public function __construct(array $urlParams = []) {
35
+        parent::__construct('testing', $urlParams);
36
+    }
37 37
 
38
-	public function register(IRegistrationContext $context): void {
39
-	}
38
+    public function register(IRegistrationContext $context): void {
39
+    }
40 40
 
41
-	public function boot(IBootContext $context): void {
42
-		$server = $context->getServerContainer();
43
-		$config = $server->getConfig();
44
-		if ($config->getAppValue('testing', 'enable_alt_user_backend', 'no') === 'yes') {
45
-			$userManager = $server->getUserManager();
41
+    public function boot(IBootContext $context): void {
42
+        $server = $context->getServerContainer();
43
+        $config = $server->getConfig();
44
+        if ($config->getAppValue('testing', 'enable_alt_user_backend', 'no') === 'yes') {
45
+            $userManager = $server->getUserManager();
46 46
 
47
-			// replace all user backends with this one
48
-			$userManager->clearBackends();
49
-			$userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class));
50
-		}
51
-	}
47
+            // replace all user backends with this one
48
+            $userManager->clearBackends();
49
+            $userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class));
50
+        }
51
+    }
52 52
 }
Please login to merge, or discard this patch.
lib/public/User/Backend/ICustomLogout.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
  * SSO providers that also have a SSO logout url
33 33
  */
34 34
 interface ICustomLogout {
35
-	/**
36
-	 * @since 20.0.0
37
-	 *
38
-	 * The url to redirect to for logout
39
-	 *
40
-	 * @return string
41
-	 */
42
-	public function getLogoutUrl(): string;
35
+    /**
36
+     * @since 20.0.0
37
+     *
38
+     * The url to redirect to for logout
39
+     *
40
+     * @return string
41
+     */
42
+    public function getLogoutUrl(): string;
43 43
 }
Please login to merge, or discard this patch.
apps/user_status/lib/Listener/UserDeletedListener.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -37,29 +37,29 @@
 block discarded – undo
37 37
  */
38 38
 class UserDeletedListener implements IEventListener {
39 39
 
40
-	/** @var StatusService */
41
-	private $service;
40
+    /** @var StatusService */
41
+    private $service;
42 42
 
43
-	/**
44
-	 * UserDeletedListener constructor.
45
-	 *
46
-	 * @param StatusService $service
47
-	 */
48
-	public function __construct(StatusService $service) {
49
-		$this->service = $service;
50
-	}
43
+    /**
44
+     * UserDeletedListener constructor.
45
+     *
46
+     * @param StatusService $service
47
+     */
48
+    public function __construct(StatusService $service) {
49
+        $this->service = $service;
50
+    }
51 51
 
52 52
 
53
-	/**
54
-	 * @inheritDoc
55
-	 */
56
-	public function handle(Event $event): void {
57
-		if (!($event instanceof UserDeletedEvent)) {
58
-			// Unrelated
59
-			return;
60
-		}
53
+    /**
54
+     * @inheritDoc
55
+     */
56
+    public function handle(Event $event): void {
57
+        if (!($event instanceof UserDeletedEvent)) {
58
+            // Unrelated
59
+            return;
60
+        }
61 61
 
62
-		$user = $event->getUser();
63
-		$this->service->removeUserStatus($user->getUID());
64
-	}
62
+        $user = $event->getUser();
63
+        $this->service->removeUserStatus($user->getUID());
64
+    }
65 65
 }
Please login to merge, or discard this patch.
apps/dav/lib/Search/ACalendarSearchProvider.php 1 patch
Indentation   +96 added lines, -96 removed lines patch added patch discarded remove patch
@@ -39,100 +39,100 @@
 block discarded – undo
39 39
  */
40 40
 abstract class ACalendarSearchProvider implements IProvider {
41 41
 
42
-	/** @var IAppManager */
43
-	protected $appManager;
44
-
45
-	/** @var IL10N */
46
-	protected $l10n;
47
-
48
-	/** @var IURLGenerator */
49
-	protected $urlGenerator;
50
-
51
-	/** @var CalDavBackend */
52
-	protected $backend;
53
-
54
-	/**
55
-	 * ACalendarSearchProvider constructor.
56
-	 *
57
-	 * @param IAppManager $appManager
58
-	 * @param IL10N $l10n
59
-	 * @param IURLGenerator $urlGenerator
60
-	 * @param CalDavBackend $backend
61
-	 */
62
-	public function __construct(IAppManager $appManager,
63
-								IL10N $l10n,
64
-								IURLGenerator $urlGenerator,
65
-								CalDavBackend $backend) {
66
-		$this->appManager = $appManager;
67
-		$this->l10n = $l10n;
68
-		$this->urlGenerator = $urlGenerator;
69
-		$this->backend = $backend;
70
-	}
71
-
72
-	/**
73
-	 * Get an associative array of calendars
74
-	 * calendarId => calendar
75
-	 *
76
-	 * @param string $principalUri
77
-	 * @return array
78
-	 */
79
-	protected function getSortedCalendars(string $principalUri): array {
80
-		$calendars = $this->backend->getCalendarsForUser($principalUri);
81
-		$calendarsById = [];
82
-		foreach ($calendars as $calendar) {
83
-			$calendarsById[(int) $calendar['id']] = $calendar;
84
-		}
85
-
86
-		return $calendarsById;
87
-	}
88
-
89
-	/**
90
-	 * Get an associative array of subscriptions
91
-	 * subscriptionId => subscription
92
-	 *
93
-	 * @param string $principalUri
94
-	 * @return array
95
-	 */
96
-	protected function getSortedSubscriptions(string $principalUri): array {
97
-		$subscriptions = $this->backend->getSubscriptionsForUser($principalUri);
98
-		$subscriptionsById = [];
99
-		foreach ($subscriptions as $subscription) {
100
-			$subscriptionsById[(int) $subscription['id']] = $subscription;
101
-		}
102
-
103
-		return $subscriptionsById;
104
-	}
105
-
106
-	/**
107
-	 * Returns the primary VEvent / VJournal / VTodo component
108
-	 * If it's a component with recurrence-ids, it will return
109
-	 * the primary component
110
-	 *
111
-	 * TODO: It would be a nice enhancement to show recurrence-exceptions
112
-	 * as individual search-results.
113
-	 * For now we will just display the primary element of a recurrence-set.
114
-	 *
115
-	 * @param string $calendarData
116
-	 * @param string $componentName
117
-	 * @return Component
118
-	 */
119
-	protected function getPrimaryComponent(string $calendarData, string $componentName): Component {
120
-		$vCalendar = Reader::read($calendarData, Reader::OPTION_FORGIVING);
121
-
122
-		$components = $vCalendar->select($componentName);
123
-		if (count($components) === 1) {
124
-			return $components[0];
125
-		}
126
-
127
-		// If it's a recurrence-set, take the primary element
128
-		foreach ($components as $component) {
129
-			/** @var Component $component */
130
-			if (!$component->{'RECURRENCE-ID'}) {
131
-				return $component;
132
-			}
133
-		}
134
-
135
-		// In case of error, just fallback to the first element in the set
136
-		return $components[0];
137
-	}
42
+    /** @var IAppManager */
43
+    protected $appManager;
44
+
45
+    /** @var IL10N */
46
+    protected $l10n;
47
+
48
+    /** @var IURLGenerator */
49
+    protected $urlGenerator;
50
+
51
+    /** @var CalDavBackend */
52
+    protected $backend;
53
+
54
+    /**
55
+     * ACalendarSearchProvider constructor.
56
+     *
57
+     * @param IAppManager $appManager
58
+     * @param IL10N $l10n
59
+     * @param IURLGenerator $urlGenerator
60
+     * @param CalDavBackend $backend
61
+     */
62
+    public function __construct(IAppManager $appManager,
63
+                                IL10N $l10n,
64
+                                IURLGenerator $urlGenerator,
65
+                                CalDavBackend $backend) {
66
+        $this->appManager = $appManager;
67
+        $this->l10n = $l10n;
68
+        $this->urlGenerator = $urlGenerator;
69
+        $this->backend = $backend;
70
+    }
71
+
72
+    /**
73
+     * Get an associative array of calendars
74
+     * calendarId => calendar
75
+     *
76
+     * @param string $principalUri
77
+     * @return array
78
+     */
79
+    protected function getSortedCalendars(string $principalUri): array {
80
+        $calendars = $this->backend->getCalendarsForUser($principalUri);
81
+        $calendarsById = [];
82
+        foreach ($calendars as $calendar) {
83
+            $calendarsById[(int) $calendar['id']] = $calendar;
84
+        }
85
+
86
+        return $calendarsById;
87
+    }
88
+
89
+    /**
90
+     * Get an associative array of subscriptions
91
+     * subscriptionId => subscription
92
+     *
93
+     * @param string $principalUri
94
+     * @return array
95
+     */
96
+    protected function getSortedSubscriptions(string $principalUri): array {
97
+        $subscriptions = $this->backend->getSubscriptionsForUser($principalUri);
98
+        $subscriptionsById = [];
99
+        foreach ($subscriptions as $subscription) {
100
+            $subscriptionsById[(int) $subscription['id']] = $subscription;
101
+        }
102
+
103
+        return $subscriptionsById;
104
+    }
105
+
106
+    /**
107
+     * Returns the primary VEvent / VJournal / VTodo component
108
+     * If it's a component with recurrence-ids, it will return
109
+     * the primary component
110
+     *
111
+     * TODO: It would be a nice enhancement to show recurrence-exceptions
112
+     * as individual search-results.
113
+     * For now we will just display the primary element of a recurrence-set.
114
+     *
115
+     * @param string $calendarData
116
+     * @param string $componentName
117
+     * @return Component
118
+     */
119
+    protected function getPrimaryComponent(string $calendarData, string $componentName): Component {
120
+        $vCalendar = Reader::read($calendarData, Reader::OPTION_FORGIVING);
121
+
122
+        $components = $vCalendar->select($componentName);
123
+        if (count($components) === 1) {
124
+            return $components[0];
125
+        }
126
+
127
+        // If it's a recurrence-set, take the primary element
128
+        foreach ($components as $component) {
129
+            /** @var Component $component */
130
+            if (!$component->{'RECURRENCE-ID'}) {
131
+                return $component;
132
+            }
133
+        }
134
+
135
+        // In case of error, just fallback to the first element in the set
136
+        return $components[0];
137
+    }
138 138
 }
Please login to merge, or discard this patch.
lib/private/Search/SearchQuery.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -28,87 +28,87 @@
 block discarded – undo
28 28
 use OCP\Search\ISearchQuery;
29 29
 
30 30
 class SearchQuery implements ISearchQuery {
31
-	public const LIMIT_DEFAULT = 5;
32
-
33
-	/** @var string */
34
-	private $term;
35
-
36
-	/** @var int */
37
-	private $sortOrder;
38
-
39
-	/** @var int */
40
-	private $limit;
41
-
42
-	/** @var int|string|null */
43
-	private $cursor;
44
-
45
-	/** @var string */
46
-	private $route;
47
-
48
-	/** @var array */
49
-	private $routeParameters;
50
-
51
-	/**
52
-	 * @param string $term
53
-	 * @param int $sortOrder
54
-	 * @param int $limit
55
-	 * @param int|string|null $cursor
56
-	 * @param string $route
57
-	 * @param array $routeParameters
58
-	 */
59
-	public function __construct(string $term,
60
-								int $sortOrder = ISearchQuery::SORT_DATE_DESC,
61
-								int $limit = self::LIMIT_DEFAULT,
62
-								$cursor = null,
63
-								string $route = '',
64
-								array $routeParameters = []) {
65
-		$this->term = $term;
66
-		$this->sortOrder = $sortOrder;
67
-		$this->limit = $limit;
68
-		$this->cursor = $cursor;
69
-		$this->route = $route;
70
-		$this->routeParameters = $routeParameters;
71
-	}
72
-
73
-	/**
74
-	 * @inheritDoc
75
-	 */
76
-	public function getTerm(): string {
77
-		return $this->term;
78
-	}
79
-
80
-	/**
81
-	 * @inheritDoc
82
-	 */
83
-	public function getSortOrder(): int {
84
-		return $this->sortOrder;
85
-	}
86
-
87
-	/**
88
-	 * @inheritDoc
89
-	 */
90
-	public function getLimit(): int {
91
-		return $this->limit;
92
-	}
93
-
94
-	/**
95
-	 * @inheritDoc
96
-	 */
97
-	public function getCursor() {
98
-		return $this->cursor;
99
-	}
100
-
101
-	/**
102
-	 * @inheritDoc
103
-	 */
104
-	public function getRoute(): string {
105
-		return $this->route;
106
-	}
107
-
108
-	/**
109
-	 * @inheritDoc
110
-	 */
111
-	public function getRouteParameters(): array {
112
-		return $this->routeParameters;
113
-	}
31
+    public const LIMIT_DEFAULT = 5;
32
+
33
+    /** @var string */
34
+    private $term;
35
+
36
+    /** @var int */
37
+    private $sortOrder;
38
+
39
+    /** @var int */
40
+    private $limit;
41
+
42
+    /** @var int|string|null */
43
+    private $cursor;
44
+
45
+    /** @var string */
46
+    private $route;
47
+
48
+    /** @var array */
49
+    private $routeParameters;
50
+
51
+    /**
52
+     * @param string $term
53
+     * @param int $sortOrder
54
+     * @param int $limit
55
+     * @param int|string|null $cursor
56
+     * @param string $route
57
+     * @param array $routeParameters
58
+     */
59
+    public function __construct(string $term,
60
+                                int $sortOrder = ISearchQuery::SORT_DATE_DESC,
61
+                                int $limit = self::LIMIT_DEFAULT,
62
+                                $cursor = null,
63
+                                string $route = '',
64
+                                array $routeParameters = []) {
65
+        $this->term = $term;
66
+        $this->sortOrder = $sortOrder;
67
+        $this->limit = $limit;
68
+        $this->cursor = $cursor;
69
+        $this->route = $route;
70
+        $this->routeParameters = $routeParameters;
71
+    }
72
+
73
+    /**
74
+     * @inheritDoc
75
+     */
76
+    public function getTerm(): string {
77
+        return $this->term;
78
+    }
79
+
80
+    /**
81
+     * @inheritDoc
82
+     */
83
+    public function getSortOrder(): int {
84
+        return $this->sortOrder;
85
+    }
86
+
87
+    /**
88
+     * @inheritDoc
89
+     */
90
+    public function getLimit(): int {
91
+        return $this->limit;
92
+    }
93
+
94
+    /**
95
+     * @inheritDoc
96
+     */
97
+    public function getCursor() {
98
+        return $this->cursor;
99
+    }
100
+
101
+    /**
102
+     * @inheritDoc
103
+     */
104
+    public function getRoute(): string {
105
+        return $this->route;
106
+    }
107
+
108
+    /**
109
+     * @inheritDoc
110
+     */
111
+    public function getRouteParameters(): array {
112
+        return $this->routeParameters;
113
+    }
114 114
 }
Please login to merge, or discard this patch.
lib/private/Share20/Hooks.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
 namespace OC\Share20;
24 24
 
25 25
 class Hooks {
26
-	public static function post_deleteUser($arguments) {
27
-		\OC::$server->getShareManager()->userDeleted($arguments['uid']);
28
-	}
26
+    public static function post_deleteUser($arguments) {
27
+        \OC::$server->getShareManager()->userDeleted($arguments['uid']);
28
+    }
29 29
 
30
-	public static function post_deleteGroup($arguments) {
31
-		\OC::$server->getShareManager()->groupDeleted($arguments['gid']);
32
-	}
30
+    public static function post_deleteGroup($arguments) {
31
+        \OC::$server->getShareManager()->groupDeleted($arguments['gid']);
32
+    }
33 33
 }
Please login to merge, or discard this patch.
apps/settings/lib/SetupChecks/PhpOutputBuffering.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,16 +28,16 @@
 block discarded – undo
28 28
 namespace OCA\Settings\SetupChecks;
29 29
 
30 30
 class PhpOutputBuffering {
31
-	public function description(): string {
32
-		return 'PHP configuration option output_buffering must be disabled';
33
-	}
31
+    public function description(): string {
32
+        return 'PHP configuration option output_buffering must be disabled';
33
+    }
34 34
 
35
-	public function severity(): string {
36
-		return 'error';
37
-	}
35
+    public function severity(): string {
36
+        return 'error';
37
+    }
38 38
 
39
-	public function run(): bool {
40
-		$value = trim(ini_get('output_buffering'));
41
-		return $value === '' || $value === '0';
42
-	}
39
+    public function run(): bool {
40
+        $value = trim(ini_get('output_buffering'));
41
+        return $value === '' || $value === '0';
42
+    }
43 43
 }
Please login to merge, or discard this patch.
apps/settings/lib/SetupChecks/PhpDefaultCharset.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
 namespace OCA\Settings\SetupChecks;
29 29
 
30 30
 class PhpDefaultCharset {
31
-	public function description(): string {
32
-		return 'PHP configuration option default_charset should be UTF-8';
33
-	}
31
+    public function description(): string {
32
+        return 'PHP configuration option default_charset should be UTF-8';
33
+    }
34 34
 
35
-	public function severity(): string {
36
-		return 'warning';
37
-	}
35
+    public function severity(): string {
36
+        return 'warning';
37
+    }
38 38
 
39
-	public function run(): bool {
40
-		return strtoupper(trim(ini_get('default_charset'))) === 'UTF-8';
41
-	}
39
+    public function run(): bool {
40
+        return strtoupper(trim(ini_get('default_charset'))) === 'UTF-8';
41
+    }
42 42
 }
Please login to merge, or discard this patch.
apps/files/lib/Event/LoadAdditionalScriptsEvent.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@
 block discarded – undo
34 34
  * @since 17.0.0
35 35
  */
36 36
 class LoadAdditionalScriptsEvent extends Event {
37
-	private $hiddenFields = [];
37
+    private $hiddenFields = [];
38 38
 
39
-	public function addHiddenField(string $name, string $value): void {
40
-		$this->hiddenFields[$name] = $value;
41
-	}
39
+    public function addHiddenField(string $name, string $value): void {
40
+        $this->hiddenFields[$name] = $value;
41
+    }
42 42
 
43
-	public function getHiddenFields(): array {
44
-		return $this->hiddenFields;
45
-	}
43
+    public function getHiddenFields(): array {
44
+        return $this->hiddenFields;
45
+    }
46 46
 }
Please login to merge, or discard this patch.