Passed
Push — master ( eb1346...80c7da )
by Daimona
03:15 queued 43s
created
includes/Bot.php 1 patch
Spacing   +7 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;
4 4
 
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 	const VERSION = '1.0';
13 13
 
14
-	public function __construct() {
14
+	public function __construct () {
15 15
 		$this->logger = new Logger;
16 16
 	}
17 17
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * @param string $mode
22 22
 	 * @param string|null $name
23 23
 	 */
24
-	private function run( string $mode = TaskManager::MODE_COMPLETE, string $name = null ) {
24
+	private function run ( string $mode = TaskManager::MODE_COMPLETE, string $name = null ) {
25 25
 		$activity = $mode === TaskManager::MODE_COMPLETE ? TaskManager::MODE_COMPLETE : "$mode $name";
26 26
 		$this->logger->info( "Running $activity" );
27 27
 		$manager = new TaskManager;
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
 		$base = "Execution of $activity";
31 31
 		if ( $res->isOK() ) {
32 32
 			$msg = $res->getStatus() === TaskResult::STATUS_NOTHING ?
33
-				': nothing to do' :
34
-				' completed successfully';
33
+				': nothing to do' : ' completed successfully';
35 34
 			$this->logger->info( $base . $msg . ".\n$line\n\n" );
36 35
 		} else {
37 36
 			$this->logger->error( "$base failed.\n$res\n$line\n\n" );
@@ -41,7 +40,7 @@  discard block
 block discarded – undo
41 40
 	/**
42 41
 	 * Entry point for the whole process
43 42
 	 */
44
-	public function runAll() {
43
+	public function runAll () {
45 44
 		$this->run();
46 45
 	}
47 46
 
@@ -50,7 +49,7 @@  discard block
 block discarded – undo
50 49
 	 *
51 50
 	 * @param string $task
52 51
 	 */
53
-	public function runTask( string $task ) {
52
+	public function runTask ( string $task ) {
54 53
 		$this->run( TaskManager::MODE_TASK, $task );
55 54
 	}
56 55
 
@@ -59,7 +58,7 @@  discard block
 block discarded – undo
59 58
 	 *
60 59
 	 * @param string $subtask
61 60
 	 */
62
-	public function runSubtask( string $subtask ) {
61
+	public function runSubtask ( string $subtask ) {
63 62
 		$this->run( TaskManager::MODE_SUBTASK, $subtask );
64 63
 	}
65 64
 }
Please login to merge, or discard this patch.