Passed
Push — master ( 68f7f1...9dee14 )
by Daimona
01:31
created
includes/Task/Subtask/ArchivePages.php 1 patch
Spacing   +12 added lines, -12 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
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	/**
15 15
 	 * @inheritDoc
16 16
 	 */
17
-	public function runInternal() : int {
17
+	public function runInternal () : int {
18 18
 		$pages = $this->getDataProvider()->getPagesToClose();
19 19
 
20 20
 		if ( !$pages ) {
@@ -33,15 +33,15 @@  discard block
 block discarded – undo
33 33
 	 * @param PageRiconferma[] $pages
34 34
 	 * @see UpdatesAround::addToMainPage()
35 35
 	 */
36
-	protected function removeFromMainPage( array $pages ) {
36
+	protected function removeFromMainPage ( array $pages ) {
37 37
 		$this->getLogger()->info(
38 38
 			'Removing from main: ' . implode( ', ', $pages )
39 39
 		);
40 40
 
41 41
 		$mainPage = new Page( $this->getConfig()->get( 'main-page-title' ) );
42
-		$remove = [];
42
+		$remove = [ ];
43 43
 		foreach ( $pages as $page ) {
44
-			$remove[] = '{{' . $page->getTitle() . '}}';
44
+			$remove[ ] = '{{' . $page->getTitle() . '}}';
45 45
 		}
46 46
 
47 47
 		$newContent = str_replace( $remove, '', $mainPage->getContent() );
@@ -70,17 +70,17 @@  discard block
 block discarded – undo
70 70
 	 *
71 71
 	 * @param PageRiconferma[] $pages
72 72
 	 */
73
-	protected function addToArchive( array $pages ) {
73
+	protected function addToArchive ( array $pages ) {
74 74
 		$this->getLogger()->info(
75 75
 			'Adding to archive: ' . implode( ', ', $pages )
76 76
 		);
77 77
 
78
-		$simple = $votes = [];
78
+		$simple = $votes = [ ];
79 79
 		foreach ( $pages as $page ) {
80 80
 			if ( $page->isVote() ) {
81
-				$votes[] = $page;
81
+				$votes[ ] = $page;
82 82
 			} else {
83
-				$simple[] = $page;
83
+				$simple[ ] = $page;
84 84
 			}
85 85
 		}
86 86
 
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 	 * @param string $archiveTitle
102 102
 	 * @param array $pages
103 103
 	 */
104
-	private function reallyAddToArchive( string $archiveTitle, array $pages ) {
104
+	private function reallyAddToArchive ( string $archiveTitle, array $pages ) {
105 105
 		$archivePage = new Page( "$archiveTitle/" . date( 'Y' ) );
106 106
 
107 107
 		$append = "\n";
108
-		$archivedList = [];
108
+		$archivedList = [ ];
109 109
 		foreach ( $pages as $page ) {
110 110
 			$append .= '{{' . $page->getTitle() . "}}\n";
111
-			$archivedList[] = $page->getUserNum();
111
+			$archivedList[ ] = $page->getUserNum();
112 112
 		}
113 113
 
114 114
 		$summary = $this->msg( 'close-archive-summary' )
Please login to merge, or discard this patch.