Passed
Push — master ( 17a1e4...acd6da )
by Daimona
01:27
created
includes/Wiki/Page/PageBotList.php 1 patch
Spacing   +11 added lines, -13 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\Page;
4 4
 
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 	/**
12 12
 	 * @private Use self::get()
13 13
 	 */
14
-	public function __construct() {
14
+	public function __construct () {
15 15
 		parent::__construct( Config::getInstance()->get( 'list-title' ) );
16 16
 	}
17 17
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	 *
21 21
 	 * @return self
22 22
 	 */
23
-	public static function get() : self {
23
+	public static function get () : self {
24 24
 		static $instance = null;
25 25
 		if ( $instance === null ) {
26 26
 			$instance = new self;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 * @param string[] $groups
33 33
 	 * @return int|null
34 34
 	 */
35
-	public static function getOverrideTimestamp( array $groups ) : ?int {
35
+	public static function getOverrideTimestamp ( array $groups ) : ?int {
36 36
 		if ( array_intersect_key( $groups, [ 'override-perm' => true, 'override' => true ] ) ) {
37 37
 			// A one-time override takes precedence
38 38
 			$day = $groups[ 'override' ] ?? $groups[ 'override-perm' ];
@@ -48,17 +48,15 @@  discard block
 block discarded – undo
48 48
 	 * @param array $groups
49 49
 	 * @return int
50 50
 	 */
51
-	public static function getValidFlagTimestamp( array $groups ): int {
52
-		$checkuser = isset( $groups['checkuser'] ) ?
53
-			\DateTime::createFromFormat( 'd/m/Y', $groups['checkuser'] )->getTimestamp() :
54
-			0;
55
-		$bureaucrat = isset( $groups['bureaucrat'] ) ?
56
-			\DateTime::createFromFormat( 'd/m/Y', $groups['bureaucrat'] )->getTimestamp() :
57
-			0;
51
+	public static function getValidFlagTimestamp ( array $groups ): int {
52
+		$checkuser = isset( $groups[ 'checkuser' ] ) ?
53
+			\DateTime::createFromFormat( 'd/m/Y', $groups[ 'checkuser' ] )->getTimestamp() : 0;
54
+		$bureaucrat = isset( $groups[ 'bureaucrat' ] ) ?
55
+			\DateTime::createFromFormat( 'd/m/Y', $groups[ 'bureaucrat' ] )->getTimestamp() : 0;
58 56
 
59 57
 		$timestamp = max( $bureaucrat, $checkuser );
60 58
 		if ( $timestamp === 0 ) {
61
-			$timestamp = \DateTime::createFromFormat( 'd/m/Y', $groups['sysop'] )->getTimestamp();
59
+			$timestamp = \DateTime::createFromFormat( 'd/m/Y', $groups[ 'sysop' ] )->getTimestamp();
62 60
 		}
63 61
 		return $timestamp;
64 62
 	}
@@ -68,7 +66,7 @@  discard block
 block discarded – undo
68 66
 	 *
69 67
 	 * @return array[]
70 68
 	 */
71
-	public function getAdminsList() : array {
69
+	public function getAdminsList () : array {
72 70
 		return json_decode( $this->getContent(), true );
73 71
 	}
74 72
 }
Please login to merge, or discard this patch.