Passed
Push — master ( 3f333d...b5a9ea )
by Daimona
02:08
created
includes/Task/Subtask/FailedUpdates.php 1 patch
Spacing   +15 added lines, -15 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\Task\Subtask;
4 4
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	/**
16 16
 	 * @inheritDoc
17 17
 	 */
18
-	public function runInternal() : int {
18
+	public function runInternal () : int {
19 19
 		$failed = $this->getFailures();
20 20
 		if ( $failed ) {
21 21
 			$this->updateBurList( $failed );
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @return PageRiconferma[]
34 34
 	 */
35
-	private function getFailures() : array {
36
-		$ret = [];
35
+	private function getFailures () : array {
36
+		$ret = [ ];
37 37
 		$allPages = $this->getDataProvider()->getPagesToClose();
38 38
 		foreach ( $allPages as $page ) {
39 39
 			if ( $page->getOutcome() & PageRiconferma::OUTCOME_FAIL ) {
40
-				$ret[] = $page;
40
+				$ret[ ] = $page;
41 41
 			}
42 42
 		}
43 43
 		return $ret;
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * @param PageRiconferma[] $pages
48 48
 	 */
49
-	protected function updateBurList( array $pages ) {
49
+	protected function updateBurList ( array $pages ) {
50 50
 		$this->getLogger()->info( 'Checking if bur list needs updating.' );
51 51
 
52
-		$remove = [];
52
+		$remove = [ ];
53 53
 		foreach ( $pages as $page ) {
54 54
 			$user = $page->getUser();
55 55
 			if ( $user->inGroup( 'bureaucrat' ) &&
56 56
 				( $page->getOutcome() & PageRiconferma::OUTCOME_FAIL )
57 57
 			) {
58
-				$remove[] = $user;
58
+				$remove[ ] = $user;
59 59
 			}
60 60
 		}
61 61
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 *
86 86
 	 * @param PageRiconferma[] $pages
87 87
 	 */
88
-	protected function requestRemoval( array $pages ) {
88
+	protected function requestRemoval ( array $pages ) {
89 89
 		$this->getLogger()->info(
90 90
 			'Requesting removal on meta for: ' . implode( ', ', $pages )
91 91
 		);
@@ -124,16 +124,16 @@  discard block
 block discarded – undo
124 124
 	 *
125 125
 	 * @param PageRiconferma[] $pages
126 126
 	 */
127
-	protected function updateAnnunci( array $pages ) {
127
+	protected function updateAnnunci ( array $pages ) {
128 128
 		$this->getLogger()->info( 'Updating annunci' );
129 129
 		$section = 1;
130 130
 
131
-		$names = [];
131
+		$names = [ ];
132 132
 		$text = '';
133 133
 		$msg = $this->msg( 'annunci-text' );
134 134
 		foreach ( $pages as $page ) {
135 135
 			$user = $page->getUser()->getName();
136
-			$names[] = $user;
136
+			$names[ ] = $user;
137 137
 			$text .= $msg->params( [ '$user' => $user ] )->text();
138 138
 		}
139 139
 
@@ -167,17 +167,17 @@  discard block
 block discarded – undo
167 167
 	 *
168 168
 	 * @param PageRiconferma[] $pages
169 169
 	 */
170
-	protected function updateUltimeNotizie( array $pages ) {
170
+	protected function updateUltimeNotizie ( array $pages ) {
171 171
 		$this->getLogger()->info( 'Updating ultime notizie' );
172 172
 		$notiziePage = new Page( $this->getConfig()->get( 'ultimenotizie-page-title' ) );
173 173
 
174
-		$names = [];
174
+		$names = [ ];
175 175
 		$text = '';
176 176
 		$msg = $this->msg( 'ultimenotizie-text' );
177 177
 		foreach ( $pages as $page ) {
178 178
 			$user = $page->getUser()->getName();
179 179
 			$title = $page->getTitle();
180
-			$names[] = $user;
180
+			$names[ ] = $user;
181 181
 			$text .= $msg->params( [ '$user' => $user, '$title' => $title ] )->text();
182 182
 		}
183 183
 
Please login to merge, or discard this patch.