Passed
Push — master ( 4908d8...fbbdc6 )
by Joas
16:12 queued 12s
created
apps/files_versions/lib/Sabre/RestoreFolder.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -31,49 +31,49 @@
 block discarded – undo
31 31
 use Sabre\DAV\INode;
32 32
 
33 33
 class RestoreFolder implements ICollection, IMoveTarget {
34
-	public function createFile($name, $data = null) {
35
-		throw new Forbidden();
36
-	}
34
+    public function createFile($name, $data = null) {
35
+        throw new Forbidden();
36
+    }
37 37
 
38
-	public function createDirectory($name) {
39
-		throw new Forbidden();
40
-	}
38
+    public function createDirectory($name) {
39
+        throw new Forbidden();
40
+    }
41 41
 
42
-	public function getChild($name) {
43
-		return null;
44
-	}
42
+    public function getChild($name) {
43
+        return null;
44
+    }
45 45
 
46
-	public function delete() {
47
-		throw new Forbidden();
48
-	}
46
+    public function delete() {
47
+        throw new Forbidden();
48
+    }
49 49
 
50
-	public function getName() {
51
-		return 'restore';
52
-	}
50
+    public function getName() {
51
+        return 'restore';
52
+    }
53 53
 
54
-	public function setName($name) {
55
-		throw new Forbidden();
56
-	}
54
+    public function setName($name) {
55
+        throw new Forbidden();
56
+    }
57 57
 
58
-	public function getLastModified(): int {
59
-		return 0;
60
-	}
58
+    public function getLastModified(): int {
59
+        return 0;
60
+    }
61 61
 
62
-	public function getChildren(): array {
63
-		return [];
64
-	}
62
+    public function getChildren(): array {
63
+        return [];
64
+    }
65 65
 
66
-	public function childExists($name): bool {
67
-		return false;
68
-	}
66
+    public function childExists($name): bool {
67
+        return false;
68
+    }
69 69
 
70
-	public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
71
-		if (!($sourceNode instanceof VersionFile)) {
72
-			return false;
73
-		}
70
+    public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
71
+        if (!($sourceNode instanceof VersionFile)) {
72
+            return false;
73
+        }
74 74
 
75
-		$sourceNode->rollBack();
76
-		return true;
77
-	}
75
+        $sourceNode->rollBack();
76
+        return true;
77
+    }
78 78
 
79 79
 }
Please login to merge, or discard this patch.
apps/cloud_federation_api/lib/Config.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -33,26 +33,26 @@
 block discarded – undo
33 33
  */
34 34
 class Config {
35 35
 
36
-	/** @var ICloudFederationProviderManager */
37
-	private $cloudFederationProviderManager;
36
+    /** @var ICloudFederationProviderManager */
37
+    private $cloudFederationProviderManager;
38 38
 
39
-	public function __construct(ICloudFederationProviderManager $cloudFederationProviderManager) {
40
-		$this->cloudFederationProviderManager = $cloudFederationProviderManager;
41
-	}
39
+    public function __construct(ICloudFederationProviderManager $cloudFederationProviderManager) {
40
+        $this->cloudFederationProviderManager = $cloudFederationProviderManager;
41
+    }
42 42
 
43
-	/**
44
-	 * get a list of supported share types
45
-	 *
46
-	 * @param string $resourceType
47
-	 * @return array
48
-	 */
49
-	public function getSupportedShareTypes($resourceType) {
50
-		try {
51
-			$provider = $this->cloudFederationProviderManager->getCloudFederationProvider($resourceType);
52
-			return $provider->getSupportedShareTypes();
53
-		} catch (\Exception $e) {
54
-			return [];
55
-		}
56
-	}
43
+    /**
44
+     * get a list of supported share types
45
+     *
46
+     * @param string $resourceType
47
+     * @return array
48
+     */
49
+    public function getSupportedShareTypes($resourceType) {
50
+        try {
51
+            $provider = $this->cloudFederationProviderManager->getCloudFederationProvider($resourceType);
52
+            return $provider->getSupportedShareTypes();
53
+        } catch (\Exception $e) {
54
+            return [];
55
+        }
56
+    }
57 57
 
58 58
 }
Please login to merge, or discard this patch.
apps/systemtags/lib/Settings/Admin.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -29,29 +29,29 @@
 block discarded – undo
29 29
 
30 30
 class Admin implements ISettings {
31 31
 
32
-	/**
33
-	 * @return TemplateResponse
34
-	 */
35
-	public function getForm() {
36
-		return new TemplateResponse('systemtags', 'admin', [], '');
37
-	}
32
+    /**
33
+     * @return TemplateResponse
34
+     */
35
+    public function getForm() {
36
+        return new TemplateResponse('systemtags', 'admin', [], '');
37
+    }
38 38
 
39
-	/**
40
-	 * @return string the section ID, e.g. 'sharing'
41
-	 */
42
-	public function getSection() {
43
-		return 'server';
44
-	}
39
+    /**
40
+     * @return string the section ID, e.g. 'sharing'
41
+     */
42
+    public function getSection() {
43
+        return 'server';
44
+    }
45 45
 
46
-	/**
47
-	 * @return int whether the form should be rather on the top or bottom of
48
-	 * the admin section. The forms are arranged in ascending order of the
49
-	 * priority values. It is required to return a value between 0 and 100.
50
-	 *
51
-	 * E.g.: 70
52
-	 */
53
-	public function getPriority() {
54
-		return 70;
55
-	}
46
+    /**
47
+     * @return int whether the form should be rather on the top or bottom of
48
+     * the admin section. The forms are arranged in ascending order of the
49
+     * priority values. It is required to return a value between 0 and 100.
50
+     *
51
+     * E.g.: 70
52
+     */
53
+    public function getPriority() {
54
+        return 70;
55
+    }
56 56
 
57 57
 }
Please login to merge, or discard this patch.
apps/workflowengine/lib/Settings/Section.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -29,45 +29,45 @@
 block discarded – undo
29 29
 use OCP\Settings\IIconSection;
30 30
 
31 31
 class Section implements IIconSection {
32
-	/** @var IL10N */
33
-	private $l;
34
-	/** @var IURLGenerator */
35
-	private $url;
32
+    /** @var IL10N */
33
+    private $l;
34
+    /** @var IURLGenerator */
35
+    private $url;
36 36
 
37
-	/**
38
-	 * @param IURLGenerator $url
39
-	 * @param IL10N $l
40
-	 */
41
-	public function __construct(IURLGenerator $url, IL10N $l) {
42
-		$this->url = $url;
43
-		$this->l = $l;
44
-	}
37
+    /**
38
+     * @param IURLGenerator $url
39
+     * @param IL10N $l
40
+     */
41
+    public function __construct(IURLGenerator $url, IL10N $l) {
42
+        $this->url = $url;
43
+        $this->l = $l;
44
+    }
45 45
 
46
-	/**
47
-	 * {@inheritdoc}
48
-	 */
49
-	public function getID() {
50
-		return 'workflow';
51
-	}
46
+    /**
47
+     * {@inheritdoc}
48
+     */
49
+    public function getID() {
50
+        return 'workflow';
51
+    }
52 52
 
53
-	/**
54
-	 * {@inheritdoc}
55
-	 */
56
-	public function getName() {
57
-		return $this->l->t('Flow');
58
-	}
53
+    /**
54
+     * {@inheritdoc}
55
+     */
56
+    public function getName() {
57
+        return $this->l->t('Flow');
58
+    }
59 59
 
60
-	/**
61
-	 * {@inheritdoc}
62
-	 */
63
-	public function getPriority() {
64
-		return 55;
65
-	}
60
+    /**
61
+     * {@inheritdoc}
62
+     */
63
+    public function getPriority() {
64
+        return 55;
65
+    }
66 66
 
67
-	/**
68
-	 * {@inheritdoc}
69
-	 */
70
-	public function getIcon() {
71
-		return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
72
-	}
67
+    /**
68
+     * {@inheritdoc}
69
+     */
70
+    public function getIcon() {
71
+        return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
72
+    }
73 73
 }
Please login to merge, or discard this patch.
lib/public/Files/File.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -42,72 +42,72 @@
 block discarded – undo
42 42
  * @since 6.0.0
43 43
  */
44 44
 interface File extends Node {
45
-	/**
46
-	 * Get the content of the file as string
47
-	 *
48
-	 * @return string
49
-	 * @throws NotPermittedException
50
-	 * @throws LockedException
51
-	 * @since 6.0.0
52
-	 */
53
-	public function getContent();
45
+    /**
46
+     * Get the content of the file as string
47
+     *
48
+     * @return string
49
+     * @throws NotPermittedException
50
+     * @throws LockedException
51
+     * @since 6.0.0
52
+     */
53
+    public function getContent();
54 54
 
55
-	/**
56
-	 * Write to the file from string data
57
-	 *
58
-	 * @param string|resource $data
59
-	 * @throws NotPermittedException
60
-	 * @throws GenericFileException
61
-	 * @throws LockedException
62
-	 * @since 6.0.0
63
-	 */
64
-	public function putContent($data);
55
+    /**
56
+     * Write to the file from string data
57
+     *
58
+     * @param string|resource $data
59
+     * @throws NotPermittedException
60
+     * @throws GenericFileException
61
+     * @throws LockedException
62
+     * @since 6.0.0
63
+     */
64
+    public function putContent($data);
65 65
 
66
-	/**
67
-	 * Get the mimetype of the file
68
-	 *
69
-	 * @return string
70
-	 * @since 6.0.0
71
-	 */
72
-	public function getMimeType();
66
+    /**
67
+     * Get the mimetype of the file
68
+     *
69
+     * @return string
70
+     * @since 6.0.0
71
+     */
72
+    public function getMimeType();
73 73
 
74
-	/**
75
-	 * Open the file as stream, resulting resource can be operated as stream like the result from php's own fopen
76
-	 *
77
-	 * @param string $mode
78
-	 * @return resource
79
-	 * @throws NotPermittedException
80
-	 * @throws LockedException
81
-	 * @since 6.0.0
82
-	 */
83
-	public function fopen($mode);
74
+    /**
75
+     * Open the file as stream, resulting resource can be operated as stream like the result from php's own fopen
76
+     *
77
+     * @param string $mode
78
+     * @return resource
79
+     * @throws NotPermittedException
80
+     * @throws LockedException
81
+     * @since 6.0.0
82
+     */
83
+    public function fopen($mode);
84 84
 
85
-	/**
86
-	 * Compute the hash of the file
87
-	 * Type of hash is set with $type and can be anything supported by php's hash_file
88
-	 *
89
-	 * @param string $type
90
-	 * @param bool $raw
91
-	 * @return string
92
-	 * @since 6.0.0
93
-	 */
94
-	public function hash($type, $raw = false);
85
+    /**
86
+     * Compute the hash of the file
87
+     * Type of hash is set with $type and can be anything supported by php's hash_file
88
+     *
89
+     * @param string $type
90
+     * @param bool $raw
91
+     * @return string
92
+     * @since 6.0.0
93
+     */
94
+    public function hash($type, $raw = false);
95 95
 
96
-	/**
97
-	 * Get the stored checksum for this file
98
-	 *
99
-	 * @return string
100
-	 * @since 9.0.0
101
-	 * @throws InvalidPathException
102
-	 * @throws NotFoundException
103
-	 */
104
-	public function getChecksum();
96
+    /**
97
+     * Get the stored checksum for this file
98
+     *
99
+     * @return string
100
+     * @since 9.0.0
101
+     * @throws InvalidPathException
102
+     * @throws NotFoundException
103
+     */
104
+    public function getChecksum();
105 105
 
106
-	/**
107
-	 * Get the extension of this file
108
-	 *
109
-	 * @return string
110
-	 * @since 15.0.0
111
-	 */
112
-	public function getExtension(): string;
106
+    /**
107
+     * Get the extension of this file
108
+     *
109
+     * @return string
110
+     * @since 15.0.0
111
+     */
112
+    public function getExtension(): string;
113 113
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/EntityContext/IUrl.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
  * @since 18.0.0
33 33
  */
34 34
 interface IUrl {
35
-	/**
36
-	 * returns a URL that is related to the entity, e.g. the link to a share
37
-	 *
38
-	 * @since 18.0.0
39
-	 */
40
-	public function getUrl(): string;
35
+    /**
36
+     * returns a URL that is related to the entity, e.g. the link to a share
37
+     *
38
+     * @since 18.0.0
39
+     */
40
+    public function getUrl(): string;
41 41
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/EntityContext/IDisplayName.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
  * @since 18.0.0
33 33
  */
34 34
 interface IDisplayName {
35
-	/**
36
-	 * returns the end user facing name of the object related to the entity
37
-	 *
38
-	 * @since 18.0.0
39
-	 */
40
-	public function getDisplayName(): string;
35
+    /**
36
+     * returns the end user facing name of the object related to the entity
37
+     *
38
+     * @since 18.0.0
39
+     */
40
+    public function getDisplayName(): string;
41 41
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/EntityContext/IIcon.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
  * @since 18.0.0
33 33
  */
34 34
 interface IIcon {
35
-	/**
36
-	 * returns a URL to an icon that is related to the entity, for instance
37
-	 * a group icon for groups.
38
-	 *
39
-	 * @since 18.0.0
40
-	 */
41
-	public function getIconUrl(): string;
35
+    /**
36
+     * returns a URL to an icon that is related to the entity, for instance
37
+     * a group icon for groups.
38
+     *
39
+     * @since 18.0.0
40
+     */
41
+    public function getIconUrl(): string;
42 42
 }
Please login to merge, or discard this patch.
apps/files/lib/Db/TransferOwnership.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -37,24 +37,24 @@
 block discarded – undo
37 37
  * @method string getNodeName()
38 38
  */
39 39
 class TransferOwnership extends Entity {
40
-	/** @var string */
41
-	protected $sourceUser;
40
+    /** @var string */
41
+    protected $sourceUser;
42 42
 
43
-	/** @var string */
44
-	protected $targetUser;
43
+    /** @var string */
44
+    protected $targetUser;
45 45
 
46
-	/** @var integer */
47
-	protected $fileId;
46
+    /** @var integer */
47
+    protected $fileId;
48 48
 
49
-	/** @var string */
50
-	protected $nodeName;
49
+    /** @var string */
50
+    protected $nodeName;
51 51
 
52
-	public function __construct() {
53
-		$this->addType('sourceUser', 'string');
54
-		$this->addType('targetUser', 'string');
55
-		$this->addType('fileId', 'integer');
56
-		$this->addType('nodeName', 'string');
57
-	}
52
+    public function __construct() {
53
+        $this->addType('sourceUser', 'string');
54
+        $this->addType('targetUser', 'string');
55
+        $this->addType('fileId', 'integer');
56
+        $this->addType('nodeName', 'string');
57
+    }
58 58
 
59 59
 
60 60
 }
Please login to merge, or discard this patch.