Passed
Push — master ( 599964...a3ab0c )
by Robin
16:02 queued 14s
created
lib/public/Share_Backend_Collection.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
  * @since 5.0.0
32 32
  */
33 33
 interface Share_Backend_Collection extends Share_Backend {
34
-	/**
35
-	 * Get the sources of the children of the item
36
-	 * @param string $itemSource
37
-	 * @return array Returns an array of children each inside an array with the keys: source, target, and file_path if applicable
38
-	 * @since 5.0.0
39
-	 */
40
-	public function getChildren($itemSource);
34
+    /**
35
+     * Get the sources of the children of the item
36
+     * @param string $itemSource
37
+     * @return array Returns an array of children each inside an array with the keys: source, target, and file_path if applicable
38
+     * @since 5.0.0
39
+     */
40
+    public function getChildren($itemSource);
41 41
 }
Please login to merge, or discard this patch.
lib/public/AppFramework/Http/DataDownloadResponse.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -29,36 +29,36 @@
 block discarded – undo
29 29
  * @since 8.0.0
30 30
  */
31 31
 class DataDownloadResponse extends DownloadResponse {
32
-	/**
33
-	 * @var string
34
-	 */
35
-	private $data;
32
+    /**
33
+     * @var string
34
+     */
35
+    private $data;
36 36
 
37
-	/**
38
-	 * Creates a response that prompts the user to download the text
39
-	 * @param string $data text to be downloaded
40
-	 * @param string $filename the name that the downloaded file should have
41
-	 * @param string $contentType the mimetype that the downloaded file should have
42
-	 * @since 8.0.0
43
-	 */
44
-	public function __construct($data, $filename, $contentType) {
45
-		$this->data = $data;
46
-		parent::__construct($filename, $contentType);
47
-	}
37
+    /**
38
+     * Creates a response that prompts the user to download the text
39
+     * @param string $data text to be downloaded
40
+     * @param string $filename the name that the downloaded file should have
41
+     * @param string $contentType the mimetype that the downloaded file should have
42
+     * @since 8.0.0
43
+     */
44
+    public function __construct($data, $filename, $contentType) {
45
+        $this->data = $data;
46
+        parent::__construct($filename, $contentType);
47
+    }
48 48
 
49
-	/**
50
-	 * @param string $data
51
-	 * @since 8.0.0
52
-	 */
53
-	public function setData($data) {
54
-		$this->data = $data;
55
-	}
49
+    /**
50
+     * @param string $data
51
+     * @since 8.0.0
52
+     */
53
+    public function setData($data) {
54
+        $this->data = $data;
55
+    }
56 56
 
57
-	/**
58
-	 * @return string
59
-	 * @since 8.0.0
60
-	 */
61
-	public function render() {
62
-		return $this->data;
63
-	}
57
+    /**
58
+     * @return string
59
+     * @since 8.0.0
60
+     */
61
+    public function render() {
62
+        return $this->data;
63
+    }
64 64
 }
Please login to merge, or discard this patch.
lib/public/DB/QueryBuilder/IQueryFunction.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
  * @since 8.2.0
27 27
  */
28 28
 interface IQueryFunction {
29
-	/**
30
-	 * @return string
31
-	 * @since 8.2.0
32
-	 */
33
-	public function __toString();
29
+    /**
30
+     * @return string
31
+     * @since 8.2.0
32
+     */
33
+    public function __toString();
34 34
 }
Please login to merge, or discard this patch.
lib/public/DB/QueryBuilder/ILiteral.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
  * @since 8.2.0
27 27
  */
28 28
 interface ILiteral {
29
-	/**
30
-	 * @return string
31
-	 * @since 8.2.0
32
-	 */
33
-	public function __toString();
29
+    /**
30
+     * @return string
31
+     * @since 8.2.0
32
+     */
33
+    public function __toString();
34 34
 }
Please login to merge, or discard this patch.
lib/public/DB/QueryBuilder/IParameter.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
  * @since 8.2.0
27 27
  */
28 28
 interface IParameter {
29
-	/**
30
-	 * @return string
31
-	 * @since 8.2.0
32
-	 */
33
-	public function __toString();
29
+    /**
30
+     * @return string
31
+     * @since 8.2.0
32
+     */
33
+    public function __toString();
34 34
 }
Please login to merge, or discard this patch.
lib/public/App/ManagerEvent.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 	 * @since 9.0.0
85 85
 	 */
86 86
 	public function getGroups() {
87
-		return array_map(function ($group) {
87
+		return array_map(function($group) {
88 88
 			/** @var \OCP\IGroup $group */
89 89
 			return $group->getGID();
90 90
 		}, $this->groups);
Please login to merge, or discard this patch.
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -32,73 +32,73 @@
 block discarded – undo
32 32
  * @since 9.0.0
33 33
  */
34 34
 class ManagerEvent extends Event {
35
-	/**
36
-	 * @deprecated 22.0.0
37
-	 */
38
-	public const EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp';
35
+    /**
36
+     * @deprecated 22.0.0
37
+     */
38
+    public const EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp';
39 39
 
40
-	/**
41
-	 * @deprecated 22.0.0
42
-	 */
43
-	public const EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups';
40
+    /**
41
+     * @deprecated 22.0.0
42
+     */
43
+    public const EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups';
44 44
 
45
-	/**
46
-	 * @deprecated 22.0.0
47
-	 */
48
-	public const EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp';
45
+    /**
46
+     * @deprecated 22.0.0
47
+     */
48
+    public const EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp';
49 49
 
50
-	/**
51
-	 * @since 9.1.0
52
-	 * @deprecated 22.0.0
53
-	 */
54
-	public const EVENT_APP_UPDATE = 'OCP\App\IAppManager::updateApp';
50
+    /**
51
+     * @since 9.1.0
52
+     * @deprecated 22.0.0
53
+     */
54
+    public const EVENT_APP_UPDATE = 'OCP\App\IAppManager::updateApp';
55 55
 
56
-	/** @var string */
57
-	protected $event;
58
-	/** @var string */
59
-	protected $appID;
60
-	/** @var \OCP\IGroup[]|null */
61
-	protected $groups;
56
+    /** @var string */
57
+    protected $event;
58
+    /** @var string */
59
+    protected $appID;
60
+    /** @var \OCP\IGroup[]|null */
61
+    protected $groups;
62 62
 
63
-	/**
64
-	 * DispatcherEvent constructor.
65
-	 *
66
-	 * @param string $event
67
-	 * @param $appID
68
-	 * @param \OCP\IGroup[]|null $groups
69
-	 * @since 9.0.0
70
-	 */
71
-	public function __construct($event, $appID, array $groups = null) {
72
-		$this->event = $event;
73
-		$this->appID = $appID;
74
-		$this->groups = $groups;
75
-	}
63
+    /**
64
+     * DispatcherEvent constructor.
65
+     *
66
+     * @param string $event
67
+     * @param $appID
68
+     * @param \OCP\IGroup[]|null $groups
69
+     * @since 9.0.0
70
+     */
71
+    public function __construct($event, $appID, array $groups = null) {
72
+        $this->event = $event;
73
+        $this->appID = $appID;
74
+        $this->groups = $groups;
75
+    }
76 76
 
77
-	/**
78
-	 * @return string
79
-	 * @since 9.0.0
80
-	 */
81
-	public function getEvent() {
82
-		return $this->event;
83
-	}
77
+    /**
78
+     * @return string
79
+     * @since 9.0.0
80
+     */
81
+    public function getEvent() {
82
+        return $this->event;
83
+    }
84 84
 
85
-	/**
86
-	 * @return string
87
-	 * @since 9.0.0
88
-	 */
89
-	public function getAppID() {
90
-		return $this->appID;
91
-	}
85
+    /**
86
+     * @return string
87
+     * @since 9.0.0
88
+     */
89
+    public function getAppID() {
90
+        return $this->appID;
91
+    }
92 92
 
93
-	/**
94
-	 * returns the group Ids
95
-	 * @return string[]
96
-	 * @since 9.0.0
97
-	 */
98
-	public function getGroups() {
99
-		return array_map(function ($group) {
100
-			/** @var \OCP\IGroup $group */
101
-			return $group->getGID();
102
-		}, $this->groups);
103
-	}
93
+    /**
94
+     * returns the group Ids
95
+     * @return string[]
96
+     * @since 9.0.0
97
+     */
98
+    public function getGroups() {
99
+        return array_map(function ($group) {
100
+            /** @var \OCP\IGroup $group */
101
+            return $group->getGID();
102
+        }, $this->groups);
103
+    }
104 104
 }
Please login to merge, or discard this patch.
lib/public/IMemcache.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -37,55 +37,55 @@
 block discarded – undo
37 37
  * @since 8.1.0
38 38
  */
39 39
 interface IMemcache extends ICache {
40
-	/**
41
-	 * Set a value in the cache if it's not already stored
42
-	 *
43
-	 * @param string $key
44
-	 * @param mixed $value
45
-	 * @param int $ttl Time To Live in seconds. Defaults to 60*60*24
46
-	 * @return bool
47
-	 * @since 8.1.0
48
-	 */
49
-	public function add($key, $value, $ttl = 0);
40
+    /**
41
+     * Set a value in the cache if it's not already stored
42
+     *
43
+     * @param string $key
44
+     * @param mixed $value
45
+     * @param int $ttl Time To Live in seconds. Defaults to 60*60*24
46
+     * @return bool
47
+     * @since 8.1.0
48
+     */
49
+    public function add($key, $value, $ttl = 0);
50 50
 
51
-	/**
52
-	 * Increase a stored number
53
-	 *
54
-	 * @param string $key
55
-	 * @param int $step
56
-	 * @return int | bool
57
-	 * @since 8.1.0
58
-	 */
59
-	public function inc($key, $step = 1);
51
+    /**
52
+     * Increase a stored number
53
+     *
54
+     * @param string $key
55
+     * @param int $step
56
+     * @return int | bool
57
+     * @since 8.1.0
58
+     */
59
+    public function inc($key, $step = 1);
60 60
 
61
-	/**
62
-	 * Decrease a stored number
63
-	 *
64
-	 * @param string $key
65
-	 * @param int $step
66
-	 * @return int | bool
67
-	 * @since 8.1.0
68
-	 */
69
-	public function dec($key, $step = 1);
61
+    /**
62
+     * Decrease a stored number
63
+     *
64
+     * @param string $key
65
+     * @param int $step
66
+     * @return int | bool
67
+     * @since 8.1.0
68
+     */
69
+    public function dec($key, $step = 1);
70 70
 
71
-	/**
72
-	 * Compare and set
73
-	 *
74
-	 * @param string $key
75
-	 * @param mixed $old
76
-	 * @param mixed $new
77
-	 * @return bool
78
-	 * @since 8.1.0
79
-	 */
80
-	public function cas($key, $old, $new);
71
+    /**
72
+     * Compare and set
73
+     *
74
+     * @param string $key
75
+     * @param mixed $old
76
+     * @param mixed $new
77
+     * @return bool
78
+     * @since 8.1.0
79
+     */
80
+    public function cas($key, $old, $new);
81 81
 
82
-	/**
83
-	 * Compare and delete
84
-	 *
85
-	 * @param string $key
86
-	 * @param mixed $old
87
-	 * @return bool
88
-	 * @since 8.1.0
89
-	 */
90
-	public function cad($key, $old);
82
+    /**
83
+     * Compare and delete
84
+     *
85
+     * @param string $key
86
+     * @param mixed $old
87
+     * @return bool
88
+     * @since 8.1.0
89
+     */
90
+    public function cad($key, $old);
91 91
 }
Please login to merge, or discard this patch.
lib/private/Http/Client/Response.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 	 */
55 55
 	public function getBody() {
56 56
 		return $this->stream ?
57
-			$this->response->getBody()->detach():
58
-			$this->response->getBody()->getContents();
57
+			$this->response->getBody()->detach() : $this->response->getBody()->getContents();
59 58
 	}
60 59
 
61 60
 	/**
Please login to merge, or discard this patch.
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -33,57 +33,57 @@
 block discarded – undo
33 33
  * @package OC\Http
34 34
  */
35 35
 class Response implements IResponse {
36
-	/** @var ResponseInterface */
37
-	private $response;
36
+    /** @var ResponseInterface */
37
+    private $response;
38 38
 
39
-	/**
40
-	 * @var bool
41
-	 */
42
-	private $stream;
39
+    /**
40
+     * @var bool
41
+     */
42
+    private $stream;
43 43
 
44
-	/**
45
-	 * @param ResponseInterface $response
46
-	 * @param bool $stream
47
-	 */
48
-	public function __construct(ResponseInterface $response, $stream = false) {
49
-		$this->response = $response;
50
-		$this->stream = $stream;
51
-	}
44
+    /**
45
+     * @param ResponseInterface $response
46
+     * @param bool $stream
47
+     */
48
+    public function __construct(ResponseInterface $response, $stream = false) {
49
+        $this->response = $response;
50
+        $this->stream = $stream;
51
+    }
52 52
 
53
-	/**
54
-	 * @return string|resource
55
-	 */
56
-	public function getBody() {
57
-		return $this->stream ?
58
-			$this->response->getBody()->detach():
59
-			$this->response->getBody()->getContents();
60
-	}
53
+    /**
54
+     * @return string|resource
55
+     */
56
+    public function getBody() {
57
+        return $this->stream ?
58
+            $this->response->getBody()->detach():
59
+            $this->response->getBody()->getContents();
60
+    }
61 61
 
62
-	/**
63
-	 * @return int
64
-	 */
65
-	public function getStatusCode(): int {
66
-		return $this->response->getStatusCode();
67
-	}
62
+    /**
63
+     * @return int
64
+     */
65
+    public function getStatusCode(): int {
66
+        return $this->response->getStatusCode();
67
+    }
68 68
 
69
-	/**
70
-	 * @param string $key
71
-	 * @return string
72
-	 */
73
-	public function getHeader(string $key): string {
74
-		$headers = $this->response->getHeader($key);
69
+    /**
70
+     * @param string $key
71
+     * @return string
72
+     */
73
+    public function getHeader(string $key): string {
74
+        $headers = $this->response->getHeader($key);
75 75
 
76
-		if (count($headers) === 0) {
77
-			return '';
78
-		}
76
+        if (count($headers) === 0) {
77
+            return '';
78
+        }
79 79
 
80
-		return $headers[0];
81
-	}
80
+        return $headers[0];
81
+    }
82 82
 
83
-	/**
84
-	 * @return array
85
-	 */
86
-	public function getHeaders(): array {
87
-		return $this->response->getHeaders();
88
-	}
83
+    /**
84
+     * @return array
85
+     */
86
+    public function getHeaders(): array {
87
+        return $this->response->getHeaders();
88
+    }
89 89
 }
Please login to merge, or discard this patch.
lib/private/NaturalSort_DefaultCollator.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
 namespace OC;
26 26
 
27 27
 class NaturalSort_DefaultCollator {
28
-	public function compare($a, $b) {
29
-		$result = strcasecmp($a, $b);
30
-		if ($result === 0) {
31
-			if ($a === $b) {
32
-				return 0;
33
-			}
34
-			return ($a > $b) ? -1 : 1;
35
-		}
36
-		return ($result < 0) ? -1 : 1;
37
-	}
28
+    public function compare($a, $b) {
29
+        $result = strcasecmp($a, $b);
30
+        if ($result === 0) {
31
+            if ($a === $b) {
32
+                return 0;
33
+            }
34
+            return ($a > $b) ? -1 : 1;
35
+        }
36
+        return ($result < 0) ? -1 : 1;
37
+    }
38 38
 }
Please login to merge, or discard this patch.