Completed
Pull Request — master (#38)
by Sam
02:50
created
tests/cli/Database/LimitTraitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@
 block discarded – undo
22 22
 		$mock = $this->getMockForTrait('\Jalle19\StatusManager\Database\LimitTrait');
23 23
 
24 24
 		$mock->expects($this->once())
25
-		     ->method('limit');
25
+			 ->method('limit');
26 26
 
27 27
 		$mock->filterByLimit(10);
28 28
 
29 29
 		$mock->expects($this->never())
30
-		     ->method('limit');
30
+			 ->method('limit');
31 31
 
32 32
 		$mock->filterByLimit(null);
33 33
 	}
Please login to merge, or discard this patch.
tests/cli/Database/SubscriptionQueryTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
 	{
23 23
 		/* @var \PHPUnit_Framework_MockObject_MockObject|SubscriptionQuery $mock */
24 24
 		$mock = $this->getMockBuilder(SubscriptionQuery::class)
25
-		             ->setMethods(['filterByStopped'])
26
-		             ->getMock();
25
+					 ->setMethods(['filterByStopped'])
26
+					 ->getMock();
27 27
 
28 28
 		$mock->expects($expects)
29
-		     ->method('filterByStopped');
29
+			 ->method('filterByStopped');
30 30
 
31 31
 		$mock->filterByTimeFrame(new TimeFrame($timeFrame));
32 32
 	}
Please login to merge, or discard this patch.
tests/cli/Database/UserQueryTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	{
21 21
 		$mock = $this->getMockedUserQuery();
22 22
 		$mock->expects($this->exactly(4))
23
-		     ->method('filterByName');
23
+			 ->method('filterByName');
24 24
 
25 25
 		$ignoredUsers = [
26 26
 			'foo',
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	{
40 40
 		$mock = $this->getMockedUserQuery();
41 41
 		$mock->expects($this->once())
42
-		     ->method('filterByName');
42
+			 ->method('filterByName');
43 43
 
44 44
 		$mock->filterIgnoredUsers([]);
45 45
 	}
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 	private function getMockedUserQuery()
52 52
 	{
53 53
 		return $this->getMockBuilder(UserQuery::class)
54
-		            ->setMethods(['filterByName'])
55
-		            ->getMock();
54
+					->setMethods(['filterByName'])
55
+					->getMock();
56 56
 	}
57 57
 
58 58
 }
Please login to merge, or discard this patch.
tests/cli/Manager/ClientManagerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
 
46 46
 		// Create two clients and connect them
47 47
 		$this->_clientMock = $this->getMockBuilder(ConnectionInterface::class)
48
-		                          ->setMethods(['send', 'close'])
49
-		                          ->getMock();
48
+								  ->setMethods(['send', 'close'])
49
+								  ->getMock();
50 50
 
51 51
 		$this->_anotherClientMock = clone $this->_clientMock;
52 52
 
Please login to merge, or discard this patch.
src/cli/Manager/AbstractClientManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
 			}
210 210
 			catch (RequestFailedException $e)
211 211
 			{
212
-				$this->logger->error('The request failed: ' . $e->getMessage());
212
+				$this->logger->error('The request failed: '.$e->getMessage());
213 213
 			}
214 214
 			catch (UnhandledMessageException $e)
215 215
 			{
Please login to merge, or discard this patch.
src/cli/Manager/HttpRequestManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 		$socket->listen($configuration->getHttpListenPort(), $configuration->getListenAddress());
44 44
 
45 45
 		// Configure the web server
46
-		$webroot                = realpath(__DIR__ . '/../../client/app');
46
+		$webroot                = realpath(__DIR__.'/../../client/app');
47 47
 		$this->_staticWebServer = new StaticWebServer(new HttpServer($socket), $webroot, $logger);
48 48
 
49 49
 		// Configure the authentication handler
Please login to merge, or discard this patch.
src/cli/Configuration/Parser.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
33 33
 		// Create the configuration object
34 34
 		$config = new Configuration();
35 35
 		$config->setDatabasePath($configuration['database_path'])
36
-		       ->setLogPath($configuration['log_path'])
37
-		       ->setInstances(self::parseInstances($configuration))
38
-		       ->setAccessToken($configuration['access_token'])
39
-		       ->setUpdateInterval($configuration['update_interval'])
40
-		       ->setListenAddress($configuration['listen_address'])
41
-		       ->setListenPort($configuration['listen_port'])
42
-		       ->setHttpListenPort($configuration['http_listen_port'])
43
-		       ->setHttpUsername($configuration['http_username'])
44
-		       ->setHttpPassword($configuration['http_password']);
36
+			   ->setLogPath($configuration['log_path'])
37
+			   ->setInstances(self::parseInstances($configuration))
38
+			   ->setAccessToken($configuration['access_token'])
39
+			   ->setUpdateInterval($configuration['update_interval'])
40
+			   ->setListenAddress($configuration['listen_address'])
41
+			   ->setListenPort($configuration['listen_port'])
42
+			   ->setHttpListenPort($configuration['http_listen_port'])
43
+			   ->setHttpUsername($configuration['http_username'])
44
+			   ->setHttpPassword($configuration['http_password']);
45 45
 
46 46
 		return $config;
47 47
 	}
Please login to merge, or discard this patch.
src/cli/Database/InputQuery.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
 	) {
45 45
 
46 46
 		return $this->filterByInstanceName($instanceName)
47
-		            ->filterByNetwork(Subscription::parseNetwork($status, $instanceStatus->getAvailableNetworks()))
48
-		            ->filterByMux(Subscription::parseMux($status, $instanceStatus->getAvailableMuxes()))
49
-		            ->addDescendingOrderByColumn('started');
47
+					->filterByNetwork(Subscription::parseNetwork($status, $instanceStatus->getAvailableNetworks()))
48
+					->filterByMux(Subscription::parseMux($status, $instanceStatus->getAvailableMuxes()))
49
+					->addDescendingOrderByColumn('started');
50 50
 	}
51 51
 
52 52
 }
Please login to merge, or discard this patch.
src/cli/Database/Subscription.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		// Check if the service string contains /$mux/
29 29
 		foreach ($availableMuxes as $mux)
30 30
 		{
31
-			if (strpos($service, '/' . $mux->name . '/') !== false)
31
+			if (strpos($service, '/'.$mux->name.'/') !== false)
32 32
 			{
33 33
 				return $mux->name;
34 34
 			}
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		// Check if the service string contains /$network/
52 52
 		foreach ($availableNetworks as $network)
53 53
 		{
54
-			if (strpos($service, '/' . $network->networkname . '/') !== false)
54
+			if (strpos($service, '/'.$network->networkname.'/') !== false)
55 55
 			{
56 56
 				return $network->networkname;
57 57
 			}
Please login to merge, or discard this patch.