Completed
Push — master ( eba447...1a7516 )
by Blizzz
18:31
created
lib/public/Remote/Api/ICapabilitiesApi.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
  * @since 13.0.0
26 26
  */
27 27
 interface ICapabilitiesApi {
28
-	/**
29
-	 * @return array The capabilities in the form of [$appId => [$capability => $value]]
30
-	 *
31
-	 * @since 13.0.0
32
-	 */
33
-	public function getCapabilities();
28
+    /**
29
+     * @return array The capabilities in the form of [$appId => [$capability => $value]]
30
+     *
31
+     * @since 13.0.0
32
+     */
33
+    public function getCapabilities();
34 34
 }
Please login to merge, or discard this patch.
lib/public/Remote/Api/IApiFactory.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
  * @since 13.0.0
29 29
  */
30 30
 interface IApiFactory {
31
-	/**
32
-	 * @param IInstance $instance
33
-	 * @param ICredentials $credentials
34
-	 * @return IApiCollection
35
-	 *
36
-	 * @since 13.0.0
37
-	 */
38
-	public function getApiCollection(IInstance $instance, ICredentials $credentials);
31
+    /**
32
+     * @param IInstance $instance
33
+     * @param ICredentials $credentials
34
+     * @return IApiCollection
35
+     *
36
+     * @since 13.0.0
37
+     */
38
+    public function getApiCollection(IInstance $instance, ICredentials $credentials);
39 39
 }
Please login to merge, or discard this patch.
lib/public/Remote/Api/IApiCollection.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -27,17 +27,17 @@
 block discarded – undo
27 27
  * @since 13.0.0
28 28
  */
29 29
 interface IApiCollection {
30
-	/**
31
-	 * @return IUserApi
32
-	 *
33
-	 * @since 13.0.0
34
-	 */
35
-	public function getUserApi();
30
+    /**
31
+     * @return IUserApi
32
+     *
33
+     * @since 13.0.0
34
+     */
35
+    public function getUserApi();
36 36
 
37
-	/**
38
-	 * @return ICapabilitiesApi
39
-	 *
40
-	 * @since 13.0.0
41
-	 */
42
-	public function getCapabilitiesApi();
37
+    /**
38
+     * @return ICapabilitiesApi
39
+     *
40
+     * @since 13.0.0
41
+     */
42
+    public function getCapabilitiesApi();
43 43
 }
Please login to merge, or discard this patch.
lib/public/Remote/ICredentials.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -27,17 +27,17 @@
 block discarded – undo
27 27
  * @since 13.0.0
28 28
  */
29 29
 interface ICredentials {
30
-	/**
31
-	 * @return string
32
-	 *
33
-	 * @since 13.0.0
34
-	 */
35
-	public function getUsername();
30
+    /**
31
+     * @return string
32
+     *
33
+     * @since 13.0.0
34
+     */
35
+    public function getUsername();
36 36
 
37
-	/**
38
-	 * @return string
39
-	 *
40
-	 * @since 13.0.0
41
-	 */
42
-	public function getPassword();
37
+    /**
38
+     * @return string
39
+     *
40
+     * @since 13.0.0
41
+     */
42
+    public function getPassword();
43 43
 }
Please login to merge, or discard this patch.
lib/public/Remote/IUser.php 1 patch
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -27,94 +27,94 @@
 block discarded – undo
27 27
  * @since 13.0.0
28 28
  */
29 29
 interface IUser {
30
-	/**
31
-	 * @return string
32
-	 *
33
-	 * @since 13.0.0
34
-	 */
35
-	public function getUserId();
30
+    /**
31
+     * @return string
32
+     *
33
+     * @since 13.0.0
34
+     */
35
+    public function getUserId();
36 36
 
37
-	/**
38
-	 * @return string
39
-	 *
40
-	 * @since 13.0.0
41
-	 */
42
-	public function getEmail();
37
+    /**
38
+     * @return string
39
+     *
40
+     * @since 13.0.0
41
+     */
42
+    public function getEmail();
43 43
 
44
-	/**
45
-	 * @return string
46
-	 *
47
-	 * @since 13.0.0
48
-	 */
49
-	public function getDisplayName();
44
+    /**
45
+     * @return string
46
+     *
47
+     * @since 13.0.0
48
+     */
49
+    public function getDisplayName();
50 50
 
51
-	/**
52
-	 * @return string
53
-	 *
54
-	 * @since 13.0.0
55
-	 */
56
-	public function getPhone();
51
+    /**
52
+     * @return string
53
+     *
54
+     * @since 13.0.0
55
+     */
56
+    public function getPhone();
57 57
 
58
-	/**
59
-	 * @return string
60
-	 *
61
-	 * @since 13.0.0
62
-	 */
63
-	public function getAddress();
58
+    /**
59
+     * @return string
60
+     *
61
+     * @since 13.0.0
62
+     */
63
+    public function getAddress();
64 64
 
65
-	/**
66
-	 * @return string
67
-	 *
68
-	 * @since 13.0.0
69
-	 */
70
-	public function getWebsite();
65
+    /**
66
+     * @return string
67
+     *
68
+     * @since 13.0.0
69
+     */
70
+    public function getWebsite();
71 71
 
72
-	/**
73
-	 * @return string
74
-	 *
75
-	 * @since 13.0.0
76
-	 */
77
-	public function getTwitter();
72
+    /**
73
+     * @return string
74
+     *
75
+     * @since 13.0.0
76
+     */
77
+    public function getTwitter();
78 78
 
79
-	/**
80
-	 * @return string[]
81
-	 *
82
-	 * @since 13.0.0
83
-	 */
84
-	public function getGroups();
79
+    /**
80
+     * @return string[]
81
+     *
82
+     * @since 13.0.0
83
+     */
84
+    public function getGroups();
85 85
 
86
-	/**
87
-	 * @return string
88
-	 *
89
-	 * @since 13.0.0
90
-	 */
91
-	public function getLanguage();
86
+    /**
87
+     * @return string
88
+     *
89
+     * @since 13.0.0
90
+     */
91
+    public function getLanguage();
92 92
 
93
-	/**
94
-	 * @return int
95
-	 *
96
-	 * @since 13.0.0
97
-	 */
98
-	public function getUsedSpace();
93
+    /**
94
+     * @return int
95
+     *
96
+     * @since 13.0.0
97
+     */
98
+    public function getUsedSpace();
99 99
 
100
-	/**
101
-	 * @return int
102
-	 *
103
-	 * @since 13.0.0
104
-	 */
105
-	public function getFreeSpace();
100
+    /**
101
+     * @return int
102
+     *
103
+     * @since 13.0.0
104
+     */
105
+    public function getFreeSpace();
106 106
 
107
-	/**
108
-	 * @return int
109
-	 *
110
-	 * @since 13.0.0
111
-	 */
112
-	public function getTotalSpace();
107
+    /**
108
+     * @return int
109
+     *
110
+     * @since 13.0.0
111
+     */
112
+    public function getTotalSpace();
113 113
 
114
-	/**
115
-	 * @return int
116
-	 *
117
-	 * @since 13.0.0
118
-	 */
119
-	public function getQuota();
114
+    /**
115
+     * @return int
116
+     *
117
+     * @since 13.0.0
118
+     */
119
+    public function getQuota();
120 120
 }
Please login to merge, or discard this patch.
lib/public/Remote/IInstance.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -27,40 +27,40 @@
 block discarded – undo
27 27
  * @since 13.0.0
28 28
  */
29 29
 interface IInstance {
30
-	/**
31
-	 * @return string The url of the remote server without protocol
32
-	 *
33
-	 * @since 13.0.0
34
-	 */
35
-	public function getUrl();
30
+    /**
31
+     * @return string The url of the remote server without protocol
32
+     *
33
+     * @since 13.0.0
34
+     */
35
+    public function getUrl();
36 36
 
37
-	/**
38
-	 * @return string The of of the remote server with protocol
39
-	 *
40
-	 * @since 13.0.0
41
-	 */
42
-	public function getFullUrl();
37
+    /**
38
+     * @return string The of of the remote server with protocol
39
+     *
40
+     * @since 13.0.0
41
+     */
42
+    public function getFullUrl();
43 43
 
44
-	/**
45
-	 * @return string The full version string in '13.1.2.3' format
46
-	 *
47
-	 * @since 13.0.0
48
-	 */
49
-	public function getVersion();
44
+    /**
45
+     * @return string The full version string in '13.1.2.3' format
46
+     *
47
+     * @since 13.0.0
48
+     */
49
+    public function getVersion();
50 50
 
51
-	/**
52
-	 * @return string 'http' or 'https'
53
-	 *
54
-	 * @since 13.0.0
55
-	 */
56
-	public function getProtocol();
51
+    /**
52
+     * @return string 'http' or 'https'
53
+     *
54
+     * @since 13.0.0
55
+     */
56
+    public function getProtocol();
57 57
 
58
-	/**
59
-	 * Check that the remote server is installed and not in maintenance mode
60
-	 *
61
-	 * @since 13.0.0
62
-	 *
63
-	 * @return bool
64
-	 */
65
-	public function isActive();
58
+    /**
59
+     * Check that the remote server is installed and not in maintenance mode
60
+     *
61
+     * @since 13.0.0
62
+     *
63
+     * @return bool
64
+     */
65
+    public function isActive();
66 66
 }
Please login to merge, or discard this patch.
lib/public/Collaboration/AutoComplete/IManager.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -30,17 +30,17 @@
 block discarded – undo
30 30
  * @since 13.0.0
31 31
  */
32 32
 interface IManager {
33
-	/**
34
-	 * @param string $className – class name of the ISorter implementation
35
-	 * @since 13.0.0
36
-	 */
37
-	public function registerSorter($className);
33
+    /**
34
+     * @param string $className – class name of the ISorter implementation
35
+     * @since 13.0.0
36
+     */
37
+    public function registerSorter($className);
38 38
 
39
-	/**
40
-	 * @param array $sorters	list of sorter IDs, seperated by "|"
41
-	 * @param array $sortArray	array representation of OCP\Collaboration\Collaborators\ISearchResult
42
-	 * @param array $context	context info of the search, keys: itemType, itemId
43
-	 * @since 13.0.0
44
-	 */
45
-	public function runSorters(array $sorters, array &$sortArray, array $context);
39
+    /**
40
+     * @param array $sorters	list of sorter IDs, seperated by "|"
41
+     * @param array $sortArray	array representation of OCP\Collaboration\Collaborators\ISearchResult
42
+     * @param array $context	context info of the search, keys: itemType, itemId
43
+     * @since 13.0.0
44
+     */
45
+    public function runSorters(array $sorters, array &$sortArray, array $context);
46 46
 }
Please login to merge, or discard this patch.
lib/private/Collaboration/AutoComplete/Manager.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 class Manager implements IManager {
31 31
 	/** @var string[] */
32
-	protected $sorters =[];
32
+	protected $sorters = [];
33 33
 
34 34
 	/** @var ISorter[]  */
35 35
 	protected $sorterInstances = [];
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
 	public function runSorters(array $sorters, array &$sortArray, array $context) {
44 44
 		$sorterInstances = $this->getSorters();
45
-		while($sorter = array_shift($sorters)) {
46
-			if(isset($sorterInstances[$sorter])) {
45
+		while ($sorter = array_shift($sorters)) {
46
+			if (isset($sorterInstances[$sorter])) {
47 47
 				$sorterInstances[$sorter]->sort($sortArray, $context);
48 48
 			} else {
49 49
 				$this->c->getLogger()->warning('No sorter for ID "{id}", skipping', [
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 	}
59 59
 
60 60
 	protected function getSorters() {
61
-		if(count($this->sorterInstances) === 0) {
61
+		if (count($this->sorterInstances) === 0) {
62 62
 			foreach ($this->sorters as $sorter) {
63 63
 				/** @var ISorter $instance */
64 64
 				$instance = $this->c->resolve($sorter);
65
-				if(!$instance instanceof ISorter) {
65
+				if (!$instance instanceof ISorter) {
66 66
 					$this->c->getLogger()->notice('Skipping sorter which is not an instance of ISorter. Class name: {class}',
67 67
 						['app' => 'core', 'class' => $sorter]);
68 68
 					continue;
69 69
 				}
70 70
 				$sorterId = trim($instance->getId());
71
-				if(trim($sorterId) === '') {
71
+				if (trim($sorterId) === '') {
72 72
 					$this->c->getLogger()->notice('Skipping sorter with empty ID. Class name: {class}',
73 73
 						['app' => 'core', 'class' => $sorter]);
74 74
 					continue;
Please login to merge, or discard this patch.
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -28,54 +28,54 @@
 block discarded – undo
28 28
 use OCP\IServerContainer;
29 29
 
30 30
 class Manager implements IManager {
31
-	/** @var string[] */
32
-	protected $sorters =[];
31
+    /** @var string[] */
32
+    protected $sorters =[];
33 33
 
34
-	/** @var ISorter[]  */
35
-	protected $sorterInstances = [];
36
-	/** @var IServerContainer */
37
-	private $c;
34
+    /** @var ISorter[]  */
35
+    protected $sorterInstances = [];
36
+    /** @var IServerContainer */
37
+    private $c;
38 38
 
39
-	public function __construct(IServerContainer $container) {
40
-		$this->c = $container;
41
-	}
39
+    public function __construct(IServerContainer $container) {
40
+        $this->c = $container;
41
+    }
42 42
 
43
-	public function runSorters(array $sorters, array &$sortArray, array $context) {
44
-		$sorterInstances = $this->getSorters();
45
-		while($sorter = array_shift($sorters)) {
46
-			if(isset($sorterInstances[$sorter])) {
47
-				$sorterInstances[$sorter]->sort($sortArray, $context);
48
-			} else {
49
-				$this->c->getLogger()->warning('No sorter for ID "{id}", skipping', [
50
-					'app' => 'core', 'id' => $sorter
51
-				]);
52
-			}
53
-		}
54
-	}
43
+    public function runSorters(array $sorters, array &$sortArray, array $context) {
44
+        $sorterInstances = $this->getSorters();
45
+        while($sorter = array_shift($sorters)) {
46
+            if(isset($sorterInstances[$sorter])) {
47
+                $sorterInstances[$sorter]->sort($sortArray, $context);
48
+            } else {
49
+                $this->c->getLogger()->warning('No sorter for ID "{id}", skipping', [
50
+                    'app' => 'core', 'id' => $sorter
51
+                ]);
52
+            }
53
+        }
54
+    }
55 55
 
56
-	public function registerSorter($className) {
57
-		$this->sorters[] = $className;
58
-	}
56
+    public function registerSorter($className) {
57
+        $this->sorters[] = $className;
58
+    }
59 59
 
60
-	protected function getSorters() {
61
-		if(count($this->sorterInstances) === 0) {
62
-			foreach ($this->sorters as $sorter) {
63
-				/** @var ISorter $instance */
64
-				$instance = $this->c->resolve($sorter);
65
-				if(!$instance instanceof ISorter) {
66
-					$this->c->getLogger()->notice('Skipping sorter which is not an instance of ISorter. Class name: {class}',
67
-						['app' => 'core', 'class' => $sorter]);
68
-					continue;
69
-				}
70
-				$sorterId = trim($instance->getId());
71
-				if(trim($sorterId) === '') {
72
-					$this->c->getLogger()->notice('Skipping sorter with empty ID. Class name: {class}',
73
-						['app' => 'core', 'class' => $sorter]);
74
-					continue;
75
-				}
76
-				$this->sorterInstances[$sorterId] = $instance;
77
-			}
78
-		}
79
-		return $this->sorterInstances;
80
-	}
60
+    protected function getSorters() {
61
+        if(count($this->sorterInstances) === 0) {
62
+            foreach ($this->sorters as $sorter) {
63
+                /** @var ISorter $instance */
64
+                $instance = $this->c->resolve($sorter);
65
+                if(!$instance instanceof ISorter) {
66
+                    $this->c->getLogger()->notice('Skipping sorter which is not an instance of ISorter. Class name: {class}',
67
+                        ['app' => 'core', 'class' => $sorter]);
68
+                    continue;
69
+                }
70
+                $sorterId = trim($instance->getId());
71
+                if(trim($sorterId) === '') {
72
+                    $this->c->getLogger()->notice('Skipping sorter with empty ID. Class name: {class}',
73
+                        ['app' => 'core', 'class' => $sorter]);
74
+                    continue;
75
+                }
76
+                $this->sorterInstances[$sorterId] = $instance;
77
+            }
78
+        }
79
+        return $this->sorterInstances;
80
+    }
81 81
 }
Please login to merge, or discard this patch.
apps/workflowengine/templates/admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 	<h2 class="inlineblock"><?php p($_['heading']); ?></h2>
27 27
 	<?php if (!empty($_['docs'])): ?>
28 28
 		<a target="_blank" rel="noreferrer noopener" class="icon-info svg"
29
-		   title="<?php p($l->t('Open documentation'));?>"
29
+		   title="<?php p($l->t('Open documentation')); ?>"
30 30
 		   href="<?php p(link_to_docs($_['docs'])); ?>">
31 31
 		</a>
32 32
 	<?php endif; ?>
Please login to merge, or discard this patch.