Passed
Push — master ( b37a49...348454 )
by Joas
15:41 queued 15s
created
lib/public/Notification/IDismissableNotifier.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
  */
36 36
 interface IDismissableNotifier extends INotifier {
37 37
 
38
-	/**
39
-	 * @param INotification $notification
40
-	 * @throws \InvalidArgumentException In case the handler can't handle the notification
41
-	 *
42
-	 * @since 18.0.0
43
-	 */
44
-	public function dismissNotification(INotification $notification): void;
38
+    /**
39
+     * @param INotification $notification
40
+     * @throws \InvalidArgumentException In case the handler can't handle the notification
41
+     *
42
+     * @since 18.0.0
43
+     */
44
+    public function dismissNotification(INotification $notification): void;
45 45
 }
Please login to merge, or discard this patch.
apps/files/lib/Db/TransferOwnershipMapper.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -30,20 +30,20 @@
 block discarded – undo
30 30
 use OCP\IDBConnection;
31 31
 
32 32
 class TransferOwnershipMapper extends QBMapper {
33
-	public function __construct(IDBConnection $db) {
34
-		parent::__construct($db, 'user_transfer_owner', TransferOwnership::class);
35
-	}
33
+    public function __construct(IDBConnection $db) {
34
+        parent::__construct($db, 'user_transfer_owner', TransferOwnership::class);
35
+    }
36 36
 
37
-	public function getById(int $id): TransferOwnership {
38
-		$qb = $this->db->getQueryBuilder();
37
+    public function getById(int $id): TransferOwnership {
38
+        $qb = $this->db->getQueryBuilder();
39 39
 
40
-		$qb->select('*')
41
-			->from($this->getTableName())
42
-			->where(
43
-				$qb->expr()->eq('id', $qb->createNamedParameter($id))
44
-			);
40
+        $qb->select('*')
41
+            ->from($this->getTableName())
42
+            ->where(
43
+                $qb->expr()->eq('id', $qb->createNamedParameter($id))
44
+            );
45 45
 
46
-		return $this->findEntity($qb);
47
-	}
46
+        return $this->findEntity($qb);
47
+    }
48 48
 
49 49
 }
Please login to merge, or discard this patch.
apps/files/lib/Migration/Version11301Date20191205150729.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -31,47 +31,47 @@
 block discarded – undo
31 31
 
32 32
 class Version11301Date20191205150729 extends SimpleMigrationStep {
33 33
 
34
-	/**
35
-	 * @param IOutput $output
36
-	 * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
37
-	 * @param array $options
38
-	 * @return null|ISchemaWrapper
39
-	 */
40
-	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
41
-		/** @var ISchemaWrapper $schema */
42
-		$schema = $schemaClosure();
34
+    /**
35
+     * @param IOutput $output
36
+     * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
37
+     * @param array $options
38
+     * @return null|ISchemaWrapper
39
+     */
40
+    public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
41
+        /** @var ISchemaWrapper $schema */
42
+        $schema = $schemaClosure();
43 43
 
44
-		$table = $schema->createTable('user_transfer_owner');
45
-		$table->addColumn('id', 'bigint', [
46
-			'autoincrement' => true,
47
-			'notnull' => true,
48
-			'length' => 20,
49
-			'unsigned' => true,
50
-		]);
51
-		$table->addColumn('source_user', 'string', [
52
-			'notnull' => true,
53
-			'length' => 64,
54
-		]);
55
-		$table->addColumn('target_user', 'string', [
56
-			'notnull' => true,
57
-			'length' => 64,
58
-		]);
59
-		$table->addColumn('file_id', 'bigint', [
60
-			'notnull' => true,
61
-			'length' => 20,
62
-		]);
63
-		$table->addColumn('node_name', 'string', [
64
-			'notnull' => true,
65
-			'length' => 255,
66
-		]);
67
-		$table->setPrimaryKey(['id']);
44
+        $table = $schema->createTable('user_transfer_owner');
45
+        $table->addColumn('id', 'bigint', [
46
+            'autoincrement' => true,
47
+            'notnull' => true,
48
+            'length' => 20,
49
+            'unsigned' => true,
50
+        ]);
51
+        $table->addColumn('source_user', 'string', [
52
+            'notnull' => true,
53
+            'length' => 64,
54
+        ]);
55
+        $table->addColumn('target_user', 'string', [
56
+            'notnull' => true,
57
+            'length' => 64,
58
+        ]);
59
+        $table->addColumn('file_id', 'bigint', [
60
+            'notnull' => true,
61
+            'length' => 20,
62
+        ]);
63
+        $table->addColumn('node_name', 'string', [
64
+            'notnull' => true,
65
+            'length' => 255,
66
+        ]);
67
+        $table->setPrimaryKey(['id']);
68 68
 
69
-		// Quite radical, we just assume no one updates cross beta with a pending request.
70
-		// Do not try this at home
71
-		if ($schema->hasTable('user_transfer_ownership')) {
72
-			$schema->dropTable('user_transfer_ownership');
73
-		}
69
+        // Quite radical, we just assume no one updates cross beta with a pending request.
70
+        // Do not try this at home
71
+        if ($schema->hasTable('user_transfer_ownership')) {
72
+            $schema->dropTable('user_transfer_ownership');
73
+        }
74 74
 
75
-		return $schema;
76
-	}
75
+        return $schema;
76
+    }
77 77
 }
Please login to merge, or discard this patch.
lib/public/User/Events/BeforePasswordUpdatedEvent.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -31,52 +31,52 @@
 block discarded – undo
31 31
  */
32 32
 class BeforePasswordUpdatedEvent extends Event {
33 33
 
34
-	/** @var IUser */
35
-	private $user;
34
+    /** @var IUser */
35
+    private $user;
36 36
 
37
-	/** @var string */
38
-	private $password;
37
+    /** @var string */
38
+    private $password;
39 39
 
40
-	/** @var string|null */
41
-	private $recoveryPassword;
40
+    /** @var string|null */
41
+    private $recoveryPassword;
42 42
 
43
-	/**
44
-	 * @param IUser $user
45
-	 * @param string $password
46
-	 * @param string|null $recoveryPassword
47
-	 * @since 18.0.0
48
-	 */
49
-	public function __construct(IUser $user,
50
-								string $password,
51
-								string $recoveryPassword = null) {
52
-		parent::__construct();
53
-		$this->user = $user;
54
-		$this->password = $password;
55
-		$this->recoveryPassword = $recoveryPassword;
56
-	}
43
+    /**
44
+     * @param IUser $user
45
+     * @param string $password
46
+     * @param string|null $recoveryPassword
47
+     * @since 18.0.0
48
+     */
49
+    public function __construct(IUser $user,
50
+                                string $password,
51
+                                string $recoveryPassword = null) {
52
+        parent::__construct();
53
+        $this->user = $user;
54
+        $this->password = $password;
55
+        $this->recoveryPassword = $recoveryPassword;
56
+    }
57 57
 
58
-	/**
59
-	 * @return IUser
60
-	 * @since 18.0.0
61
-	 */
62
-	public function getUser(): IUser {
63
-		return $this->user;
64
-	}
58
+    /**
59
+     * @return IUser
60
+     * @since 18.0.0
61
+     */
62
+    public function getUser(): IUser {
63
+        return $this->user;
64
+    }
65 65
 
66
-	/**
67
-	 * @return string
68
-	 * @since 18.0.0
69
-	 */
70
-	public function getPassword(): string {
71
-		return $this->password;
72
-	}
66
+    /**
67
+     * @return string
68
+     * @since 18.0.0
69
+     */
70
+    public function getPassword(): string {
71
+        return $this->password;
72
+    }
73 73
 
74
-	/**
75
-	 * @return string|null
76
-	 * @since 18.0.0
77
-	 */
78
-	public function getRecoveryPassword(): ?string {
79
-		return $this->recoveryPassword;
80
-	}
74
+    /**
75
+     * @return string|null
76
+     * @since 18.0.0
77
+     */
78
+    public function getRecoveryPassword(): ?string {
79
+        return $this->recoveryPassword;
80
+    }
81 81
 
82 82
 }
Please login to merge, or discard this patch.
lib/public/User/Events/UserLoggedInWithCookieEvent.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -34,33 +34,33 @@
 block discarded – undo
34 34
  */
35 35
 class UserLoggedInWithCookieEvent extends Event {
36 36
 
37
-	/** @var IUser */
38
-	private $user;
37
+    /** @var IUser */
38
+    private $user;
39 39
 
40
-	/** @var string|null */
41
-	private $password;
40
+    /** @var string|null */
41
+    private $password;
42 42
 
43
-	/**
44
-	 * @since 18.0.0
45
-	 */
46
-	public function __construct(IUser $user, ?string $password) {
47
-		parent::__construct();
48
-		$this->user = $user;
49
-		$this->password = $password;
50
-	}
43
+    /**
44
+     * @since 18.0.0
45
+     */
46
+    public function __construct(IUser $user, ?string $password) {
47
+        parent::__construct();
48
+        $this->user = $user;
49
+        $this->password = $password;
50
+    }
51 51
 
52
-	/**
53
-	 * @since 18.0.0
54
-	 */
55
-	public function getUser(): IUser {
56
-		return $this->user;
57
-	}
52
+    /**
53
+     * @since 18.0.0
54
+     */
55
+    public function getUser(): IUser {
56
+        return $this->user;
57
+    }
58 58
 
59
-	/**
60
-	 * @since 18.0.0
61
-	 */
62
-	public function getPassword(): ?string {
63
-		return $this->password;
64
-	}
59
+    /**
60
+     * @since 18.0.0
61
+     */
62
+    public function getPassword(): ?string {
63
+        return $this->password;
64
+    }
65 65
 
66 66
 }
Please login to merge, or discard this patch.
lib/public/User/Events/PasswordUpdatedEvent.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -31,52 +31,52 @@
 block discarded – undo
31 31
  */
32 32
 class PasswordUpdatedEvent extends Event {
33 33
 
34
-	/** @var IUser */
35
-	private $user;
34
+    /** @var IUser */
35
+    private $user;
36 36
 
37
-	/** @var string */
38
-	private $password;
37
+    /** @var string */
38
+    private $password;
39 39
 
40
-	/** @var string|null */
41
-	private $recoveryPassword;
40
+    /** @var string|null */
41
+    private $recoveryPassword;
42 42
 
43
-	/**
44
-	 * @param IUser $user
45
-	 * @param string $password
46
-	 * @param string|null $recoveryPassword
47
-	 * @since 18.0.0
48
-	 */
49
-	public function __construct(IUser $user,
50
-								string $password,
51
-								string $recoveryPassword = null) {
52
-		parent::__construct();
53
-		$this->user = $user;
54
-		$this->password = $password;
55
-		$this->recoveryPassword = $recoveryPassword;
56
-	}
43
+    /**
44
+     * @param IUser $user
45
+     * @param string $password
46
+     * @param string|null $recoveryPassword
47
+     * @since 18.0.0
48
+     */
49
+    public function __construct(IUser $user,
50
+                                string $password,
51
+                                string $recoveryPassword = null) {
52
+        parent::__construct();
53
+        $this->user = $user;
54
+        $this->password = $password;
55
+        $this->recoveryPassword = $recoveryPassword;
56
+    }
57 57
 
58
-	/**
59
-	 * @return IUser
60
-	 * @since 18.0.0
61
-	 */
62
-	public function getUser(): IUser {
63
-		return $this->user;
64
-	}
58
+    /**
59
+     * @return IUser
60
+     * @since 18.0.0
61
+     */
62
+    public function getUser(): IUser {
63
+        return $this->user;
64
+    }
65 65
 
66
-	/**
67
-	 * @return string
68
-	 * @since 18.0.0
69
-	 */
70
-	public function getPassword(): string {
71
-		return $this->password;
72
-	}
66
+    /**
67
+     * @return string
68
+     * @since 18.0.0
69
+     */
70
+    public function getPassword(): string {
71
+        return $this->password;
72
+    }
73 73
 
74
-	/**
75
-	 * @return string|null
76
-	 * @since 18.0.0
77
-	 */
78
-	public function getRecoveryPassword(): ?string {
79
-		return $this->recoveryPassword;
80
-	}
74
+    /**
75
+     * @return string|null
76
+     * @since 18.0.0
77
+     */
78
+    public function getRecoveryPassword(): ?string {
79
+        return $this->recoveryPassword;
80
+    }
81 81
 
82 82
 }
Please login to merge, or discard this patch.
lib/public/User/Events/BeforeUserCreatedEvent.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -33,34 +33,34 @@
 block discarded – undo
33 33
  */
34 34
 class BeforeUserCreatedEvent extends Event {
35 35
 
36
-	/** @var string */
37
-	private $uid;
36
+    /** @var string */
37
+    private $uid;
38 38
 
39
-	/** @var string */
40
-	private $password;
39
+    /** @var string */
40
+    private $password;
41 41
 
42
-	/**
43
-	 * @since 18.0.0
44
-	 */
45
-	public function __construct(string $uid,
46
-								string $password) {
47
-		parent::__construct();
48
-		$this->uid = $uid;
49
-		$this->password = $password;
50
-	}
42
+    /**
43
+     * @since 18.0.0
44
+     */
45
+    public function __construct(string $uid,
46
+                                string $password) {
47
+        parent::__construct();
48
+        $this->uid = $uid;
49
+        $this->password = $password;
50
+    }
51 51
 
52
-	/**
53
-	 * @since 18.0.0
54
-	 */
55
-	public function getUid(): string {
56
-		return $this->uid;
57
-	}
52
+    /**
53
+     * @since 18.0.0
54
+     */
55
+    public function getUid(): string {
56
+        return $this->uid;
57
+    }
58 58
 
59
-	/**
60
-	 * @since 18.0.0
61
-	 */
62
-	public function getPassword(): string {
63
-		return $this->password;
64
-	}
59
+    /**
60
+     * @since 18.0.0
61
+     */
62
+    public function getPassword(): string {
63
+        return $this->password;
64
+    }
65 65
 
66 66
 }
Please login to merge, or discard this patch.
lib/public/DirectEditing/IToken.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -32,54 +32,54 @@
 block discarded – undo
32 32
  */
33 33
 interface IToken {
34 34
 
35
-	/**
36
-	 * Extend the token validity time
37
-	 *
38
-	 * @since 18.0.0
39
-	 */
40
-	public function extend(): void;
35
+    /**
36
+     * Extend the token validity time
37
+     *
38
+     * @since 18.0.0
39
+     */
40
+    public function extend(): void;
41 41
 
42
-	/**
43
-	 * Invalidate the token
44
-	 *
45
-	 * @since 18.0.0
46
-	 */
47
-	public function invalidate(): void;
42
+    /**
43
+     * Invalidate the token
44
+     *
45
+     * @since 18.0.0
46
+     */
47
+    public function invalidate(): void;
48 48
 
49
-	/**
50
-	 * Check if the token has already been used
51
-	 *
52
-	 * @since 18.0.0
53
-	 * @return bool
54
-	 */
55
-	public function hasBeenAccessed(): bool;
49
+    /**
50
+     * Check if the token has already been used
51
+     *
52
+     * @since 18.0.0
53
+     * @return bool
54
+     */
55
+    public function hasBeenAccessed(): bool;
56 56
 
57
-	/**
58
-	 * Change to the user scope of the token
59
-	 *
60
-	 * @since 18.0.0
61
-	 */
62
-	public function useTokenScope(): void;
57
+    /**
58
+     * Change to the user scope of the token
59
+     *
60
+     * @since 18.0.0
61
+     */
62
+    public function useTokenScope(): void;
63 63
 
64
-	/**
65
-	 * Get the file that is related to the token
66
-	 *
67
-	 * @since 18.0.0
68
-	 * @return File
69
-	 * @throws NotFoundException
70
-	 */
71
-	public function getFile(): File;
64
+    /**
65
+     * Get the file that is related to the token
66
+     *
67
+     * @since 18.0.0
68
+     * @return File
69
+     * @throws NotFoundException
70
+     */
71
+    public function getFile(): File;
72 72
 
73
-	/**
74
-	 * @since 18.0.0
75
-	 * @return string
76
-	 */
77
-	public function getEditor(): string;
73
+    /**
74
+     * @since 18.0.0
75
+     * @return string
76
+     */
77
+    public function getEditor(): string;
78 78
 
79
-	/**
80
-	 * @since 18.0.0
81
-	 * @return string
82
-	 */
83
-	public function getUser(): string;
79
+    /**
80
+     * @since 18.0.0
81
+     * @return string
82
+     */
83
+    public function getUser(): string;
84 84
 
85 85
 }
Please login to merge, or discard this patch.
lib/public/Group/Events/BeforeUserAddedEvent.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -34,35 +34,35 @@
 block discarded – undo
34 34
  */
35 35
 class BeforeUserAddedEvent extends Event {
36 36
 
37
-	/** @var IGroup */
38
-	private $group;
37
+    /** @var IGroup */
38
+    private $group;
39 39
 
40
-	/*** @var IUser */
41
-	private $user;
40
+    /*** @var IUser */
41
+    private $user;
42 42
 
43
-	/**
44
-	 * @since 18.0.0
45
-	 */
46
-	public function __construct(IGroup $group, IUser $user) {
47
-		parent::__construct();
48
-		$this->group = $group;
49
-		$this->user = $user;
50
-	}
43
+    /**
44
+     * @since 18.0.0
45
+     */
46
+    public function __construct(IGroup $group, IUser $user) {
47
+        parent::__construct();
48
+        $this->group = $group;
49
+        $this->user = $user;
50
+    }
51 51
 
52
-	/**
53
-	 * @return IGroup
54
-	 * @since 18.0.0
55
-	 */
56
-	public function getGroup(): IGroup {
57
-		return $this->group;
58
-	}
52
+    /**
53
+     * @return IGroup
54
+     * @since 18.0.0
55
+     */
56
+    public function getGroup(): IGroup {
57
+        return $this->group;
58
+    }
59 59
 
60
-	/**
61
-	 * @return IUser
62
-	 * @since 18.0.0
63
-	 */
64
-	public function getUser(): IUser {
65
-		return $this->user;
66
-	}
60
+    /**
61
+     * @return IUser
62
+     * @since 18.0.0
63
+     */
64
+    public function getUser(): IUser {
65
+        return $this->user;
66
+    }
67 67
 
68 68
 }
Please login to merge, or discard this patch.