Passed
Push — master ( d0668c...20ee35 )
by Joas
14:49 queued 14s
created
core/templates/twofactorshowchallenge.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
 	<?php if (!is_null($_['backupProvider'])): ?>
25 25
 	<p>
26 26
 		<a class="two-factor-secondary" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
27
-			[
28
-				'challengeProviderId' => $_['backupProvider']->getId(),
29
-				'redirect_url' => $_['redirect_url'],
30
-			]
31
-		)) ?>">
27
+            [
28
+                'challengeProviderId' => $_['backupProvider']->getId(),
29
+                'redirect_url' => $_['redirect_url'],
30
+            ]
31
+        )) ?>">
32 32
 			<?php p($l->t('Use backup code')) ?>
33 33
 		</a>
34 34
 	</p>
Please login to merge, or discard this patch.
lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -32,19 +32,19 @@
 block discarded – undo
32 32
  */
33 33
 class ProviderAlreadyExistsException extends HintException {
34 34
 
35
-	/**
36
-	 * ProviderAlreadyExistsException constructor.
37
-	 *
38
-	 * @since 14.0.0
39
-	 *
40
-	 * @param string $newProviderId cloud federation provider ID of the new provider
41
-	 * @param string $existingProviderName name of cloud federation provider which already use the same ID
42
-	 */
43
-	public function __construct($newProviderId, $existingProviderName) {
44
-		$l = \OC::$server->getL10N('federation');
45
-		$message = 'ID "' . $newProviderId . '" already used by cloud federation provider "' . $existingProviderName . '"';
46
-		$hint = $l->t('ID "%1$s" already used by cloud federation provider "%2$s"', [$newProviderId, $existingProviderName]);
47
-		parent::__construct($message, $hint);
48
-	}
35
+    /**
36
+     * ProviderAlreadyExistsException constructor.
37
+     *
38
+     * @since 14.0.0
39
+     *
40
+     * @param string $newProviderId cloud federation provider ID of the new provider
41
+     * @param string $existingProviderName name of cloud federation provider which already use the same ID
42
+     */
43
+    public function __construct($newProviderId, $existingProviderName) {
44
+        $l = \OC::$server->getL10N('federation');
45
+        $message = 'ID "' . $newProviderId . '" already used by cloud federation provider "' . $existingProviderName . '"';
46
+        $hint = $l->t('ID "%1$s" already used by cloud federation provider "%2$s"', [$newProviderId, $existingProviderName]);
47
+        parent::__construct($message, $hint);
48
+    }
49 49
 
50 50
 }
Please login to merge, or discard this patch.
lib/public/AppFramework/Utility/ITimeFactory.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/private/Dashboard/DashboardManager.php 1 patch
Indentation   +97 added lines, -97 removed lines patch added patch discarded remove patch
@@ -46,103 +46,103 @@
 block discarded – undo
46 46
 class DashboardManager implements IDashboardManager {
47 47
 
48 48
 
49
-	/** @var IWidgetsService */
50
-	private $widgetsService;
51
-
52
-	/** @var IEventsService */
53
-	private $eventsService;
54
-
55
-
56
-	/**
57
-	 * @param IEventsService $eventsService
58
-	 */
59
-	public function registerEventsService(IEventsService $eventsService) {
60
-		$this->eventsService = $eventsService;
61
-	}
62
-
63
-
64
-	/**
65
-	 * @param IWidgetsService $widgetsService
66
-	 */
67
-	public function registerWidgetsService(IWidgetsService $widgetsService) {
68
-		$this->widgetsService = $widgetsService;
69
-	}
70
-
71
-
72
-	/**
73
-	 * @param string $widgetId
74
-	 * @param string $userId
75
-	 *
76
-	 * @return IWidgetConfig
77
-	 * @throws DashboardAppNotAvailableException
78
-	 */
79
-	public function getWidgetConfig(string $widgetId, string $userId): IWidgetConfig {
80
-		return $this->getWidgetsService()->getWidgetConfig($widgetId, $userId);
81
-	}
82
-
83
-
84
-	/**
85
-	 * @param string $widgetId
86
-	 * @param array $users
87
-	 * @param array $payload
88
-	 * @param string $uniqueId
89
-	 *
90
-	 * @throws DashboardAppNotAvailableException
91
-	 */
92
-	public function createUsersEvent(string $widgetId, array $users, array $payload, string $uniqueId = '') {
93
-		$this->getEventsService()->createUsersEvent($widgetId, $users, $payload, $uniqueId);
94
-	}
95
-
96
-
97
-	/**
98
-	 * @param string $widgetId
99
-	 * @param array $groups
100
-	 * @param array $payload
101
-	 * @param string $uniqueId
102
-	 *
103
-	 * @throws DashboardAppNotAvailableException
104
-	 */
105
-	public function createGroupsEvent(string $widgetId, array $groups, array $payload, string $uniqueId = '') {
106
-		$this->getEventsService()->createGroupsEvent($widgetId, $groups, $payload, $uniqueId);
107
-	}
108
-
109
-
110
-	/**
111
-	 * @param string $widgetId
112
-	 * @param array $payload
113
-	 * @param string $uniqueId
114
-	 *
115
-	 * @throws DashboardAppNotAvailableException
116
-	 */
117
-	public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId = '') {
118
-		$this->getEventsService()->createGlobalEvent($widgetId, $payload, $uniqueId);
119
-	}
120
-
121
-
122
-	/**
123
-	 * @return IWidgetsService
124
-	 * @throws DashboardAppNotAvailableException
125
-	 */
126
-	private function getWidgetsService() {
127
-		if ($this->widgetsService === null) {
128
-			throw new DashboardAppNotAvailableException('No IWidgetsService registered');
129
-		}
130
-
131
-		return $this->widgetsService;
132
-	}
133
-
134
-
135
-	/**
136
-	 * @return IEventsService
137
-	 * @throws DashboardAppNotAvailableException
138
-	 */
139
-	private function getEventsService() {
140
-		if ($this->eventsService === null) {
141
-			throw new DashboardAppNotAvailableException('No IEventsService registered');
142
-		}
143
-
144
-		return $this->eventsService;
145
-	}
49
+    /** @var IWidgetsService */
50
+    private $widgetsService;
51
+
52
+    /** @var IEventsService */
53
+    private $eventsService;
54
+
55
+
56
+    /**
57
+     * @param IEventsService $eventsService
58
+     */
59
+    public function registerEventsService(IEventsService $eventsService) {
60
+        $this->eventsService = $eventsService;
61
+    }
62
+
63
+
64
+    /**
65
+     * @param IWidgetsService $widgetsService
66
+     */
67
+    public function registerWidgetsService(IWidgetsService $widgetsService) {
68
+        $this->widgetsService = $widgetsService;
69
+    }
70
+
71
+
72
+    /**
73
+     * @param string $widgetId
74
+     * @param string $userId
75
+     *
76
+     * @return IWidgetConfig
77
+     * @throws DashboardAppNotAvailableException
78
+     */
79
+    public function getWidgetConfig(string $widgetId, string $userId): IWidgetConfig {
80
+        return $this->getWidgetsService()->getWidgetConfig($widgetId, $userId);
81
+    }
82
+
83
+
84
+    /**
85
+     * @param string $widgetId
86
+     * @param array $users
87
+     * @param array $payload
88
+     * @param string $uniqueId
89
+     *
90
+     * @throws DashboardAppNotAvailableException
91
+     */
92
+    public function createUsersEvent(string $widgetId, array $users, array $payload, string $uniqueId = '') {
93
+        $this->getEventsService()->createUsersEvent($widgetId, $users, $payload, $uniqueId);
94
+    }
95
+
96
+
97
+    /**
98
+     * @param string $widgetId
99
+     * @param array $groups
100
+     * @param array $payload
101
+     * @param string $uniqueId
102
+     *
103
+     * @throws DashboardAppNotAvailableException
104
+     */
105
+    public function createGroupsEvent(string $widgetId, array $groups, array $payload, string $uniqueId = '') {
106
+        $this->getEventsService()->createGroupsEvent($widgetId, $groups, $payload, $uniqueId);
107
+    }
108
+
109
+
110
+    /**
111
+     * @param string $widgetId
112
+     * @param array $payload
113
+     * @param string $uniqueId
114
+     *
115
+     * @throws DashboardAppNotAvailableException
116
+     */
117
+    public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId = '') {
118
+        $this->getEventsService()->createGlobalEvent($widgetId, $payload, $uniqueId);
119
+    }
120
+
121
+
122
+    /**
123
+     * @return IWidgetsService
124
+     * @throws DashboardAppNotAvailableException
125
+     */
126
+    private function getWidgetsService() {
127
+        if ($this->widgetsService === null) {
128
+            throw new DashboardAppNotAvailableException('No IWidgetsService registered');
129
+        }
130
+
131
+        return $this->widgetsService;
132
+    }
133
+
134
+
135
+    /**
136
+     * @return IEventsService
137
+     * @throws DashboardAppNotAvailableException
138
+     */
139
+    private function getEventsService() {
140
+        if ($this->eventsService === null) {
141
+            throw new DashboardAppNotAvailableException('No IEventsService registered');
142
+        }
143
+
144
+        return $this->eventsService;
145
+    }
146 146
 
147 147
 }
148 148
 
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/ITrashManager.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -24,33 +24,33 @@
 block discarded – undo
24 24
 use OCP\IUser;
25 25
 
26 26
 interface ITrashManager extends ITrashBackend {
27
-	/**
28
-	 * Add a backend for the trashbin
29
-	 *
30
-	 * @param string $storageType
31
-	 * @param ITrashBackend $backend
32
-	 * @since 15.0.0
33
-	 */
34
-	public function registerBackend(string $storageType, ITrashBackend $backend);
27
+    /**
28
+     * Add a backend for the trashbin
29
+     *
30
+     * @param string $storageType
31
+     * @param ITrashBackend $backend
32
+     * @since 15.0.0
33
+     */
34
+    public function registerBackend(string $storageType, ITrashBackend $backend);
35 35
 
36
-	/**
37
-	 * List all trash items in the root of the trashbin
38
-	 *
39
-	 * @param IUser $user
40
-	 * @return ITrashItem[]
41
-	 * @since 15.0.0
42
-	 */
43
-	public function listTrashRoot(IUser $user): array;
36
+    /**
37
+     * List all trash items in the root of the trashbin
38
+     *
39
+     * @param IUser $user
40
+     * @return ITrashItem[]
41
+     * @since 15.0.0
42
+     */
43
+    public function listTrashRoot(IUser $user): array;
44 44
 
45
-	/**
46
-	 * Temporally prevent files from being moved to the trash
47
-	 *
48
-	 * @since 15.0.0
49
-	 */
50
-	public function pauseTrash();
45
+    /**
46
+     * Temporally prevent files from being moved to the trash
47
+     *
48
+     * @since 15.0.0
49
+     */
50
+    public function pauseTrash();
51 51
 
52
-	/**
53
-	 * @since 15.0.0
54
-	 */
55
-	public function resumeTrash();
52
+    /**
53
+     * @since 15.0.0
54
+     */
55
+    public function resumeTrash();
56 56
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/ITrashBackend.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -31,54 +31,54 @@
 block discarded – undo
31 31
  * @since 15.0.0
32 32
  */
33 33
 interface ITrashBackend {
34
-	/**
35
-	 * List all trash items in the root of the trashbin
36
-	 *
37
-	 * @param IUser $user
38
-	 * @return ITrashItem[]
39
-	 * @since 15.0.0
40
-	 */
41
-	public function listTrashRoot(IUser $user): array;
34
+    /**
35
+     * List all trash items in the root of the trashbin
36
+     *
37
+     * @param IUser $user
38
+     * @return ITrashItem[]
39
+     * @since 15.0.0
40
+     */
41
+    public function listTrashRoot(IUser $user): array;
42 42
 
43
-	/**
44
-	 * List all trash items in a subfolder in the trashbin
45
-	 *
46
-	 * @param ITrashItem $folder
47
-	 * @return ITrashItem[]
48
-	 * @since 15.0.0
49
-	 */
50
-	public function listTrashFolder(ITrashItem $folder): array;
43
+    /**
44
+     * List all trash items in a subfolder in the trashbin
45
+     *
46
+     * @param ITrashItem $folder
47
+     * @return ITrashItem[]
48
+     * @since 15.0.0
49
+     */
50
+    public function listTrashFolder(ITrashItem $folder): array;
51 51
 
52
-	/**
53
-	 * Restore a trashbin item
54
-	 *
55
-	 * @param ITrashItem $item
56
-	 * @since 15.0.0
57
-	 */
58
-	public function restoreItem(ITrashItem $item);
52
+    /**
53
+     * Restore a trashbin item
54
+     *
55
+     * @param ITrashItem $item
56
+     * @since 15.0.0
57
+     */
58
+    public function restoreItem(ITrashItem $item);
59 59
 
60
-	/**
61
-	 * Permanently remove an item from trash
62
-	 *
63
-	 * @param ITrashItem $item
64
-	 * @since 15.0.0
65
-	 */
66
-	public function removeItem(ITrashItem $item);
60
+    /**
61
+     * Permanently remove an item from trash
62
+     *
63
+     * @param ITrashItem $item
64
+     * @since 15.0.0
65
+     */
66
+    public function removeItem(ITrashItem $item);
67 67
 
68
-	/**
69
-	 * Move a file or folder to trash
70
-	 *
71
-	 * @param IStorage $storage
72
-	 * @param string $internalPath
73
-	 * @return boolean whether or not the file was moved to trash, if false then the file should be deleted normally
74
-	 * @since 15.0.0
75
-	 */
76
-	public function moveToTrash(IStorage $storage, string $internalPath): bool;
68
+    /**
69
+     * Move a file or folder to trash
70
+     *
71
+     * @param IStorage $storage
72
+     * @param string $internalPath
73
+     * @return boolean whether or not the file was moved to trash, if false then the file should be deleted normally
74
+     * @since 15.0.0
75
+     */
76
+    public function moveToTrash(IStorage $storage, string $internalPath): bool;
77 77
 
78
-	/**
79
-	 * @param IUser $user
80
-	 * @param int $fileId
81
-	 * @return Node|null
82
-	 */
83
-	public function getTrashNodeById(IUser $user, int $fileId);
78
+    /**
79
+     * @param IUser $user
80
+     * @param int $fileId
81
+     * @return Node|null
82
+     */
83
+    public function getTrashNodeById(IUser $user, int $fileId);
84 84
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/AbstractTrashFolder.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -29,49 +29,49 @@
 block discarded – undo
29 29
 use Sabre\DAV\ICollection;
30 30
 
31 31
 abstract class AbstractTrashFolder extends AbstractTrash implements ICollection, ITrash {
32
-	public function getChildren(): array {
33
-		$entries = $this->trashManager->listTrashFolder($this->data);
32
+    public function getChildren(): array {
33
+        $entries = $this->trashManager->listTrashFolder($this->data);
34 34
 
35
-		$children = array_map(function (ITrashItem $entry) {
36
-			if ($entry->getType() === FileInfo::TYPE_FOLDER) {
37
-				return new TrashFolderFolder($this->trashManager, $entry);
38
-			}
39
-			return new TrashFolderFile($this->trashManager, $entry);
40
-		}, $entries);
35
+        $children = array_map(function (ITrashItem $entry) {
36
+            if ($entry->getType() === FileInfo::TYPE_FOLDER) {
37
+                return new TrashFolderFolder($this->trashManager, $entry);
38
+            }
39
+            return new TrashFolderFile($this->trashManager, $entry);
40
+        }, $entries);
41 41
 
42
-		return $children;
43
-	}
42
+        return $children;
43
+    }
44 44
 
45
-	public function getChild($name): ITrash {
46
-		$entries = $this->getChildren();
45
+    public function getChild($name): ITrash {
46
+        $entries = $this->getChildren();
47 47
 
48
-		foreach ($entries as $entry) {
49
-			if ($entry->getName() === $name) {
50
-				return $entry;
51
-			}
52
-		}
48
+        foreach ($entries as $entry) {
49
+            if ($entry->getName() === $name) {
50
+                return $entry;
51
+            }
52
+        }
53 53
 
54
-		throw new NotFound();
55
-	}
54
+        throw new NotFound();
55
+    }
56 56
 
57
-	public function childExists($name): bool {
58
-		try {
59
-			$this->getChild($name);
60
-			return true;
61
-		} catch (NotFound $e) {
62
-			return false;
63
-		}
64
-	}
57
+    public function childExists($name): bool {
58
+        try {
59
+            $this->getChild($name);
60
+            return true;
61
+        } catch (NotFound $e) {
62
+            return false;
63
+        }
64
+    }
65 65
 
66
-	public function setName($name) {
67
-		throw new Forbidden();
68
-	}
66
+    public function setName($name) {
67
+        throw new Forbidden();
68
+    }
69 69
 
70
-	public function createFile($name, $data = null) {
71
-		throw new Forbidden();
72
-	}
70
+    public function createFile($name, $data = null) {
71
+        throw new Forbidden();
72
+    }
73 73
 
74
-	public function createDirectory($name) {
75
-		throw new Forbidden();
76
-	}
74
+    public function createDirectory($name) {
75
+        throw new Forbidden();
76
+    }
77 77
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/TrashFile.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
 namespace OCA\Files_Trashbin\Sabre;
26 26
 
27 27
 class TrashFile extends AbstractTrashFile {
28
-	public function get() {
29
-		return $this->data->getStorage()->fopen($this->data->getInternalPath() . '.d' . $this->getLastModified(), 'rb');
30
-	}
28
+    public function get() {
29
+        return $this->data->getStorage()->fopen($this->data->getInternalPath() . '.d' . $this->getLastModified(), 'rb');
30
+    }
31 31
 
32
-	public function getName(): string {
33
-		return $this->data->getName() . '.d' . $this->getLastModified();
34
-	}
32
+    public function getName(): string {
33
+        return $this->data->getName() . '.d' . $this->getLastModified();
34
+    }
35 35
 }
Please login to merge, or discard this patch.
lib/public/FullTextSearch/Service/ISearchService.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -45,45 +45,45 @@
 block discarded – undo
45 45
 interface ISearchService {
46 46
 
47 47
 
48
-	/**
49
-	 * generate a search request, based on an array:
50
-	 *
51
-	 * $request =
52
-	 *   [
53
-	 *        'providers' =>    (string/array) 'all'
54
-	 *        'author' =>       (string) owner of the document.
55
-	 *        'search' =>       (string) search string,
56
-	 *        'size' =>         (int) number of items to be return
57
-	 *        'page' =>         (int) page
58
-	 *        'parts' =>        (array) parts of document to search within,
59
-	 *        'options' =       (array) search options,
60
-	 *        'tags'     =>     (array) tags,
61
-	 *        'metatags' =>     (array) metatags,
62
-	 *        'subtags'  =>     (array) subtags
63
-	 *   ]
64
-	 *
65
-	 * 'providers' can be an array of providerIds
66
-	 *
67
-	 * @since 15.0.0
68
-	 *
69
-	 * @param array $request
70
-	 *
71
-	 * @return ISearchRequest
72
-	 */
73
-	public function generateSearchRequest(array $request): ISearchRequest;
48
+    /**
49
+     * generate a search request, based on an array:
50
+     *
51
+     * $request =
52
+     *   [
53
+     *        'providers' =>    (string/array) 'all'
54
+     *        'author' =>       (string) owner of the document.
55
+     *        'search' =>       (string) search string,
56
+     *        'size' =>         (int) number of items to be return
57
+     *        'page' =>         (int) page
58
+     *        'parts' =>        (array) parts of document to search within,
59
+     *        'options' =       (array) search options,
60
+     *        'tags'     =>     (array) tags,
61
+     *        'metatags' =>     (array) metatags,
62
+     *        'subtags'  =>     (array) subtags
63
+     *   ]
64
+     *
65
+     * 'providers' can be an array of providerIds
66
+     *
67
+     * @since 15.0.0
68
+     *
69
+     * @param array $request
70
+     *
71
+     * @return ISearchRequest
72
+     */
73
+    public function generateSearchRequest(array $request): ISearchRequest;
74 74
 
75 75
 
76
-	/**
77
-	 * Search documents
78
-	 *
79
-	 * @since 15.0.0
80
-	 *
81
-	 * @param string $userId
82
-	 * @param ISearchRequest $searchRequest
83
-	 *
84
-	 * @return ISearchResult[]
85
-	 */
86
-	public function search(string $userId, ISearchRequest $searchRequest): array;
76
+    /**
77
+     * Search documents
78
+     *
79
+     * @since 15.0.0
80
+     *
81
+     * @param string $userId
82
+     * @param ISearchRequest $searchRequest
83
+     *
84
+     * @return ISearchResult[]
85
+     */
86
+    public function search(string $userId, ISearchRequest $searchRequest): array;
87 87
 
88 88
 }
89 89
 
Please login to merge, or discard this patch.