Passed
Push — master ( 8ab78d...b9a76e )
by Daimona
01:43
created
includes/Wiki/User.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare( strict_types=1 );
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace BotRiconferme\Wiki;
4 4
 
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
 	/**
17 17
 	 * @param string $name
18 18
 	 */
19
-	public function __construct( string $name ) {
19
+	public function __construct ( string $name ) {
20 20
 		$this->name = $name;
21 21
 	}
22 22
 
23 23
 	/**
24 24
 	 * @return string
25 25
 	 */
26
-	public function getName() : string {
26
+	public function getName () : string {
27 27
 		return $this->name;
28 28
 	}
29 29
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @return string[]
34 34
 	 */
35
-	public function getGroups() : array {
35
+	public function getGroups () : array {
36 36
 		return array_keys( $this->getGroupsWithDates() );
37 37
 	}
38 38
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 *
43 43
 	 * @return string[]
44 44
 	 */
45
-	public function getGroupsWithDates() : array {
45
+	public function getGroupsWithDates () : array {
46 46
 		if ( $this->groups === null ) {
47 47
 			$usersList = PageBotList::get()->getAdminsList();
48 48
 			$this->groups = $usersList[ $this->name ];
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 * @param string $groupName
57 57
 	 * @return bool
58 58
 	 */
59
-	public function inGroup( string $groupName ) : bool {
59
+	public function inGroup ( string $groupName ) : bool {
60 60
 		return in_array( $groupName, $this->getGroups() );
61 61
 	}
62 62
 
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
 	 *
66 66
 	 * @inheritDoc
67 67
 	 */
68
-	public function getRegex() : string {
68
+	public function getRegex () : string {
69 69
 		return str_replace( ' ', '[ _]', preg_quote( $this->name ) );
70 70
 	}
71 71
 
72 72
 	/**
73 73
 	 * @return string
74 74
 	 */
75
-	public function __toString() {
75
+	public function __toString () {
76 76
 		return $this->name;
77 77
 	}
78 78
 }
Please login to merge, or discard this patch.