@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | catch (PropelException $e) |
54 | 54 | { |
55 | - throw new RequestFailedException('A database error occured: ' . $e->getMessage()); |
|
55 | + throw new RequestFailedException('A database error occured: '.$e->getMessage()); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | return false; |
@@ -209,7 +209,7 @@ |
||
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 | { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | // Check that all mandatory values are defined |
52 | 52 | foreach (self::$mandatoryValues as $mandatoryValue) |
53 | 53 | if (!isset($this->_configuration[$mandatoryValue]) || ($this->_configuration[$mandatoryValue] != '0' && empty($this->_configuration[$mandatoryValue]))) |
54 | - throw new InvalidConfigurationException('Mandatory configuration value "' . $mandatoryValue . '" is missing'); |
|
54 | + throw new InvalidConfigurationException('Mandatory configuration value "'.$mandatoryValue.'" is missing'); |
|
55 | 55 | |
56 | 56 | if (!is_readable($this->_configuration['database_path'])) |
57 | 57 | throw new InvalidConfigurationException('The database path does not exist or is not writable'); |
@@ -33,12 +33,12 @@ |
||
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']); |
|
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 | 42 | |
43 | 43 | return $config; |
44 | 44 | } |
@@ -44,11 +44,11 @@ |
||
44 | 44 | // Parse the configuration file |
45 | 45 | try |
46 | 46 | { |
47 | - return (array)Yaml::parse(file_get_contents($this->_file)); |
|
47 | + return (array) Yaml::parse(file_get_contents($this->_file)); |
|
48 | 48 | } |
49 | 49 | catch (ParseException $e) |
50 | 50 | { |
51 | - throw new InvalidConfigurationException('Failed to parse the specified configuration file: ' . $e->getMessage()); |
|
51 | + throw new InvalidConfigurationException('Failed to parse the specified configuration file: '.$e->getMessage()); |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 |
@@ -22,12 +22,12 @@ |
||
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 | } |
@@ -22,11 +22,11 @@ |
||
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 | } |