Passed
Push — master ( 9f70c6...30a595 )
by John
15:26 queued 13s
created
apps/files_trashbin/lib/Trash/TrashManager.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	public function listTrashRoot(IUser $user): array {
47
-		$items = array_reduce($this->getBackends(), function (array $items, ITrashBackend $backend) use ($user) {
47
+		$items = array_reduce($this->getBackends(), function(array $items, ITrashBackend $backend) use ($user) {
48 48
 			return array_merge($items, $backend->listTrashRoot($user));
49 49
 		}, []);
50
-		usort($items, function (ITrashItem $a, ITrashItem $b) {
50
+		usort($items, function(ITrashItem $a, ITrashItem $b) {
51 51
 			return $a->getDeletedTime() - $b->getDeletedTime();
52 52
 		});
53 53
 		return $items;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	public function getBackendForStorage(IStorage $storage): ITrashBackend {
78 78
 		$fullType = get_class($storage);
79
-		$foundType = array_reduce(array_keys($this->backends), function ($type, $registeredType) use ($storage) {
79
+		$foundType = array_reduce(array_keys($this->backends), function($type, $registeredType) use ($storage) {
80 80
 			if (
81 81
 				$storage->instanceOfStorage($registeredType) &&
82 82
 				($type === '' || is_subclass_of($registeredType, $type))
Please login to merge, or discard this patch.
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -27,102 +27,102 @@
 block discarded – undo
27 27
 use OCP\IUser;
28 28
 
29 29
 class TrashManager implements ITrashManager {
30
-	/** @var ITrashBackend[] */
31
-	private $backends = [];
32
-
33
-	private $trashPaused = false;
34
-
35
-	public function registerBackend(string $storageType, ITrashBackend $backend) {
36
-		$this->backends[$storageType] = $backend;
37
-	}
38
-
39
-	/**
40
-	 * @return ITrashBackend[]
41
-	 */
42
-	private function getBackends(): array {
43
-		return $this->backends;
44
-	}
45
-
46
-	public function listTrashRoot(IUser $user): array {
47
-		$items = array_reduce($this->getBackends(), function (array $items, ITrashBackend $backend) use ($user) {
48
-			return array_merge($items, $backend->listTrashRoot($user));
49
-		}, []);
50
-		usort($items, function (ITrashItem $a, ITrashItem $b) {
51
-			return $a->getDeletedTime() - $b->getDeletedTime();
52
-		});
53
-		return $items;
54
-	}
55
-
56
-	private function getBackendForItem(ITrashItem $item) {
57
-		return $item->getTrashBackend();
58
-	}
59
-
60
-	public function listTrashFolder(ITrashItem $folder): array {
61
-		return $this->getBackendForItem($folder)->listTrashFolder($folder);
62
-	}
63
-
64
-	public function restoreItem(ITrashItem $item) {
65
-		return $this->getBackendForItem($item)->restoreItem($item);
66
-	}
67
-
68
-	public function removeItem(ITrashItem $item) {
69
-		$this->getBackendForItem($item)->removeItem($item);
70
-	}
71
-
72
-	/**
73
-	 * @param IStorage $storage
74
-	 * @return ITrashBackend
75
-	 * @throws BackendNotFoundException
76
-	 */
77
-	public function getBackendForStorage(IStorage $storage): ITrashBackend {
78
-		$fullType = get_class($storage);
79
-		$foundType = array_reduce(array_keys($this->backends), function ($type, $registeredType) use ($storage) {
80
-			if (
81
-				$storage->instanceOfStorage($registeredType) &&
82
-				($type === '' || is_subclass_of($registeredType, $type))
83
-			) {
84
-				return $registeredType;
85
-			} else {
86
-				return $type;
87
-			}
88
-		}, '');
89
-		if ($foundType === '') {
90
-			throw new BackendNotFoundException("Trash backend for $fullType not found");
91
-		} else {
92
-			return $this->backends[$foundType];
93
-		}
94
-	}
95
-
96
-	public function moveToTrash(IStorage $storage, string $internalPath): bool {
97
-		if ($this->trashPaused) {
98
-			return false;
99
-		}
100
-		try {
101
-			$backend = $this->getBackendForStorage($storage);
102
-			$this->trashPaused = true;
103
-			$result = $backend->moveToTrash($storage, $internalPath);
104
-			$this->trashPaused = false;
105
-			return $result;
106
-		} catch (BackendNotFoundException $e) {
107
-			return false;
108
-		}
109
-	}
110
-
111
-	public function getTrashNodeById(IUser $user, int $fileId) {
112
-		foreach ($this->backends as $backend) {
113
-			$item = $backend->getTrashNodeById($user, $fileId);
114
-			if ($item !== null) {
115
-				return $item;
116
-			}
117
-		}
118
-		return null;
119
-	}
120
-
121
-	public function pauseTrash() {
122
-		$this->trashPaused = true;
123
-	}
124
-
125
-	public function resumeTrash() {
126
-		$this->trashPaused = false;
127
-	}
30
+    /** @var ITrashBackend[] */
31
+    private $backends = [];
32
+
33
+    private $trashPaused = false;
34
+
35
+    public function registerBackend(string $storageType, ITrashBackend $backend) {
36
+        $this->backends[$storageType] = $backend;
37
+    }
38
+
39
+    /**
40
+     * @return ITrashBackend[]
41
+     */
42
+    private function getBackends(): array {
43
+        return $this->backends;
44
+    }
45
+
46
+    public function listTrashRoot(IUser $user): array {
47
+        $items = array_reduce($this->getBackends(), function (array $items, ITrashBackend $backend) use ($user) {
48
+            return array_merge($items, $backend->listTrashRoot($user));
49
+        }, []);
50
+        usort($items, function (ITrashItem $a, ITrashItem $b) {
51
+            return $a->getDeletedTime() - $b->getDeletedTime();
52
+        });
53
+        return $items;
54
+    }
55
+
56
+    private function getBackendForItem(ITrashItem $item) {
57
+        return $item->getTrashBackend();
58
+    }
59
+
60
+    public function listTrashFolder(ITrashItem $folder): array {
61
+        return $this->getBackendForItem($folder)->listTrashFolder($folder);
62
+    }
63
+
64
+    public function restoreItem(ITrashItem $item) {
65
+        return $this->getBackendForItem($item)->restoreItem($item);
66
+    }
67
+
68
+    public function removeItem(ITrashItem $item) {
69
+        $this->getBackendForItem($item)->removeItem($item);
70
+    }
71
+
72
+    /**
73
+     * @param IStorage $storage
74
+     * @return ITrashBackend
75
+     * @throws BackendNotFoundException
76
+     */
77
+    public function getBackendForStorage(IStorage $storage): ITrashBackend {
78
+        $fullType = get_class($storage);
79
+        $foundType = array_reduce(array_keys($this->backends), function ($type, $registeredType) use ($storage) {
80
+            if (
81
+                $storage->instanceOfStorage($registeredType) &&
82
+                ($type === '' || is_subclass_of($registeredType, $type))
83
+            ) {
84
+                return $registeredType;
85
+            } else {
86
+                return $type;
87
+            }
88
+        }, '');
89
+        if ($foundType === '') {
90
+            throw new BackendNotFoundException("Trash backend for $fullType not found");
91
+        } else {
92
+            return $this->backends[$foundType];
93
+        }
94
+    }
95
+
96
+    public function moveToTrash(IStorage $storage, string $internalPath): bool {
97
+        if ($this->trashPaused) {
98
+            return false;
99
+        }
100
+        try {
101
+            $backend = $this->getBackendForStorage($storage);
102
+            $this->trashPaused = true;
103
+            $result = $backend->moveToTrash($storage, $internalPath);
104
+            $this->trashPaused = false;
105
+            return $result;
106
+        } catch (BackendNotFoundException $e) {
107
+            return false;
108
+        }
109
+    }
110
+
111
+    public function getTrashNodeById(IUser $user, int $fileId) {
112
+        foreach ($this->backends as $backend) {
113
+            $item = $backend->getTrashNodeById($user, $fileId);
114
+            if ($item !== null) {
115
+                return $item;
116
+            }
117
+        }
118
+        return null;
119
+    }
120
+
121
+    public function pauseTrash() {
122
+        $this->trashPaused = true;
123
+    }
124
+
125
+    public function resumeTrash() {
126
+        $this->trashPaused = false;
127
+    }
128 128
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/TrashFolder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
 
27 27
 class TrashFolder extends AbstractTrashFolder {
28 28
 	public function getName(): string {
29
-		return $this->data->getName() . '.d' . $this->getLastModified();
29
+		return $this->data->getName().'.d'.$this->getLastModified();
30 30
 	}
31 31
 }
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 namespace OCA\Files_Trashbin\Sabre;
29 29
 
30 30
 class TrashFolder extends AbstractTrashFolder {
31
-	public function getName(): string {
32
-		return $this->data->getName() . '.d' . $this->getLastModified();
33
-	}
31
+    public function getName(): string {
32
+        return $this->data->getName() . '.d' . $this->getLastModified();
33
+    }
34 34
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/TrashRoot.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 	public function getChildren(): array {
68 68
 		$entries = $this->trashManager->listTrashRoot($this->user);
69 69
 
70
-		$children = array_map(function (ITrashItem $entry) {
70
+		$children = array_map(function(ITrashItem $entry) {
71 71
 			if ($entry->getType() === FileInfo::TYPE_FOLDER) {
72 72
 				return new TrashFolder($this->trashManager, $entry);
73 73
 			}
Please login to merge, or discard this patch.
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -37,75 +37,75 @@
 block discarded – undo
37 37
 
38 38
 class TrashRoot implements ICollection {
39 39
 
40
-	/** @var IUser */
41
-	private $user;
42
-
43
-	/** @var ITrashManager  */
44
-	private $trashManager;
45
-
46
-	public function __construct(IUser $user, ITrashManager $trashManager) {
47
-		$this->user = $user;
48
-		$this->trashManager = $trashManager;
49
-	}
50
-
51
-	public function delete() {
52
-		\OCA\Files_Trashbin\Trashbin::deleteAll();
53
-		foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) {
54
-			$this->trashManager->removeItem($trashItem);
55
-		}
56
-	}
57
-
58
-	public function getName(): string {
59
-		return 'trash';
60
-	}
61
-
62
-	public function setName($name) {
63
-		throw new Forbidden('Permission denied to rename this trashbin');
64
-	}
65
-
66
-	public function createFile($name, $data = null) {
67
-		throw new Forbidden('Not allowed to create files in the trashbin');
68
-	}
69
-
70
-	public function createDirectory($name) {
71
-		throw new Forbidden('Not allowed to create folders in the trashbin');
72
-	}
73
-
74
-	public function getChildren(): array {
75
-		$entries = $this->trashManager->listTrashRoot($this->user);
76
-
77
-		$children = array_map(function (ITrashItem $entry) {
78
-			if ($entry->getType() === FileInfo::TYPE_FOLDER) {
79
-				return new TrashFolder($this->trashManager, $entry);
80
-			}
81
-			return new TrashFile($this->trashManager, $entry);
82
-		}, $entries);
83
-
84
-		return $children;
85
-	}
86
-
87
-	public function getChild($name): ITrash {
88
-		$entries = $this->getChildren();
89
-
90
-		foreach ($entries as $entry) {
91
-			if ($entry->getName() === $name) {
92
-				return $entry;
93
-			}
94
-		}
95
-
96
-		throw new NotFound();
97
-	}
98
-
99
-	public function childExists($name): bool {
100
-		try {
101
-			$this->getChild($name);
102
-			return true;
103
-		} catch (NotFound $e) {
104
-			return false;
105
-		}
106
-	}
107
-
108
-	public function getLastModified(): int {
109
-		return 0;
110
-	}
40
+    /** @var IUser */
41
+    private $user;
42
+
43
+    /** @var ITrashManager  */
44
+    private $trashManager;
45
+
46
+    public function __construct(IUser $user, ITrashManager $trashManager) {
47
+        $this->user = $user;
48
+        $this->trashManager = $trashManager;
49
+    }
50
+
51
+    public function delete() {
52
+        \OCA\Files_Trashbin\Trashbin::deleteAll();
53
+        foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) {
54
+            $this->trashManager->removeItem($trashItem);
55
+        }
56
+    }
57
+
58
+    public function getName(): string {
59
+        return 'trash';
60
+    }
61
+
62
+    public function setName($name) {
63
+        throw new Forbidden('Permission denied to rename this trashbin');
64
+    }
65
+
66
+    public function createFile($name, $data = null) {
67
+        throw new Forbidden('Not allowed to create files in the trashbin');
68
+    }
69
+
70
+    public function createDirectory($name) {
71
+        throw new Forbidden('Not allowed to create folders in the trashbin');
72
+    }
73
+
74
+    public function getChildren(): array {
75
+        $entries = $this->trashManager->listTrashRoot($this->user);
76
+
77
+        $children = array_map(function (ITrashItem $entry) {
78
+            if ($entry->getType() === FileInfo::TYPE_FOLDER) {
79
+                return new TrashFolder($this->trashManager, $entry);
80
+            }
81
+            return new TrashFile($this->trashManager, $entry);
82
+        }, $entries);
83
+
84
+        return $children;
85
+    }
86
+
87
+    public function getChild($name): ITrash {
88
+        $entries = $this->getChildren();
89
+
90
+        foreach ($entries as $entry) {
91
+            if ($entry->getName() === $name) {
92
+                return $entry;
93
+            }
94
+        }
95
+
96
+        throw new NotFound();
97
+    }
98
+
99
+    public function childExists($name): bool {
100
+        try {
101
+            $this->getChild($name);
102
+            return true;
103
+        } catch (NotFound $e) {
104
+            return false;
105
+        }
106
+    }
107
+
108
+    public function getLastModified(): int {
109
+        return 0;
110
+    }
111 111
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/AbstractTrashFolder.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	public function getChildren(): array {
33 33
 		$entries = $this->trashManager->listTrashFolder($this->data);
34 34
 
35
-		$children = array_map(function (ITrashItem $entry) {
35
+		$children = array_map(function(ITrashItem $entry) {
36 36
 			if ($entry->getType() === FileInfo::TYPE_FOLDER) {
37 37
 				return new TrashFolderFolder($this->trashManager, $entry);
38 38
 			}
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/TrashFile.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
 
27 27
 class TrashFile extends AbstractTrashFile {
28 28
 	public function get() {
29
-		return $this->data->getStorage()->fopen($this->data->getInternalPath() . '.d' . $this->getLastModified(), 'rb');
29
+		return $this->data->getStorage()->fopen($this->data->getInternalPath().'.d'.$this->getLastModified(), 'rb');
30 30
 	}
31 31
 
32 32
 	public function getName(): string {
33
-		return $this->data->getName() . '.d' . $this->getLastModified();
33
+		return $this->data->getName().'.d'.$this->getLastModified();
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
apps/files_sharing/templates/public.php 2 patches
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,17 +50,23 @@
 block discarded – undo
50 50
 		<div id="preview">
51 51
 			<?php if (isset($_['folder'])): ?>
52 52
 				<?php print_unescaped($_['folder']); ?>
53
-			<?php else: ?>
53
+			<?php else {
54
+    : ?>
54 55
 				<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?>
55 56
 					<div id="imgframe">
56
-						<audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px">
57
+						<audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']);
58
+}
59
+?>px; max-height: <?php p($_['previewMaxY']); ?>px">
57 60
 							<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
58 61
 						</audio>
59 62
 					</div>
60
-				<?php else: ?>
63
+				<?php else {
64
+    : ?>
61 65
 					<!-- Preview frame is filled via JS to support SVG images for modern browsers -->
62 66
 					<div id="imgframe"></div>
63
-				<?php endif; ?>
67
+				<?php endif;
68
+}
69
+?>
64 70
 				<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
65 71
 					<div class="directDownload">
66 72
 						<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,10 +111,10 @@
 block discarded – undo
111 111
 			<?php if (!empty($_['disclaimer'])) { ?>
112 112
 				<div>
113 113
 					<?php
114
-						echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [
115
-							'<span id="show-terms-dialog">', '</span>'
116
-						]);
117
-					?>
114
+                        echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [
115
+                            '<span id="show-terms-dialog">', '</span>'
116
+                        ]);
117
+                    ?>
118 118
 				</div>
119 119
 			<?php } ?>
120 120
 		</div>
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.
lib/public/FullTextSearch/Model/IIndexOptions.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -46,41 +46,41 @@
 block discarded – undo
46 46
 interface IIndexOptions {
47 47
 
48 48
 
49
-	/**
50
-	 * Get the value (as a string) for an option.
51
-	 *
52
-	 * @since 15.0.0
53
-	 *
54
-	 * @param string $option
55
-	 * @param string $default
56
-	 *
57
-	 * @return string
58
-	 */
59
-	public function getOption(string $option, string $default = ''): string;
49
+    /**
50
+     * Get the value (as a string) for an option.
51
+     *
52
+     * @since 15.0.0
53
+     *
54
+     * @param string $option
55
+     * @param string $default
56
+     *
57
+     * @return string
58
+     */
59
+    public function getOption(string $option, string $default = ''): string;
60 60
 
61
-	/**
62
-	 * Get the value (as an array) for an option.
63
-	 *
64
-	 * @since 15.0.0
65
-	 *
66
-	 * @param string $option
67
-	 * @param array $default
68
-	 *
69
-	 * @return array
70
-	 */
71
-	public function getOptionArray(string $option, array $default = []): array;
61
+    /**
62
+     * Get the value (as an array) for an option.
63
+     *
64
+     * @since 15.0.0
65
+     *
66
+     * @param string $option
67
+     * @param array $default
68
+     *
69
+     * @return array
70
+     */
71
+    public function getOptionArray(string $option, array $default = []): array;
72 72
 
73
-	/**
74
-	 * Get the value (as an boolean) for an option.
75
-	 *
76
-	 * @since 15.0.0
77
-	 *
78
-	 * @param string $option
79
-	 * @param bool $default
80
-	 *
81
-	 * @return bool
82
-	 */
83
-	public function getOptionBool(string $option, bool $default): bool;
73
+    /**
74
+     * Get the value (as an boolean) for an option.
75
+     *
76
+     * @since 15.0.0
77
+     *
78
+     * @param string $option
79
+     * @param bool $default
80
+     *
81
+     * @return bool
82
+     */
83
+    public function getOptionBool(string $option, bool $default): bool;
84 84
 
85 85
 }
86 86
 
Please login to merge, or discard this patch.
lib/private/Authentication/Exceptions/ExpiredTokenException.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@
 block discarded – undo
26 26
 use OC\Authentication\Token\IToken;
27 27
 
28 28
 class ExpiredTokenException extends InvalidTokenException {
29
-	/** @var IToken */
30
-	private $token;
29
+    /** @var IToken */
30
+    private $token;
31 31
 
32
-	public function __construct(IToken $token) {
33
-		parent::__construct();
32
+    public function __construct(IToken $token) {
33
+        parent::__construct();
34 34
 
35
-		$this->token = $token;
36
-	}
35
+        $this->token = $token;
36
+    }
37 37
 
38
-	public function getToken(): IToken {
39
-		return $this->token;
40
-	}
38
+    public function getToken(): IToken {
39
+        return $this->token;
40
+    }
41 41
 }
Please login to merge, or discard this patch.