@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $eventDispatcher->addSubscriber($inputErrorManager); |
| 101 | 101 | |
| 102 | 102 | // Configure the event loop and start the application |
| 103 | - $eventLoop->addPeriodicTimer($configuration->getUpdateInterval(), function () use ($eventDispatcher) |
|
| 103 | + $eventLoop->addPeriodicTimer($configuration->getUpdateInterval(), function() use ($eventDispatcher) |
|
| 104 | 104 | { |
| 105 | 105 | // Emit an event on each tick |
| 106 | 106 | $eventDispatcher->dispatch(Events::MAIN_LOOP_TICK); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | $manager = new ConnectionManagerSingle(); |
| 154 | 154 | $manager->setConfiguration([ |
| 155 | 155 | 'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper', |
| 156 | - 'dsn' => 'sqlite:' . $configuration->getDatabasePath(), |
|
| 156 | + 'dsn' => 'sqlite:'.$configuration->getDatabasePath(), |
|
| 157 | 157 | 'user' => null, |
| 158 | 158 | 'password' => '', |
| 159 | 159 | 'attributes' => [ |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function getFriendlyName() |
| 36 | 36 | { |
| 37 | - return $this->getNetwork() . '/' . $this->getMux(); |
|
| 37 | + return $this->getNetwork().'/'.$this->getMux(); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | // Remove the channel name and the beginning slash from the service string |
| 52 | 52 | $channel = $subscriptionStatus->channel; |
| 53 | - $service = preg_replace('/\/' . preg_quote($channel, '/') . '$/', '', $service); |
|
| 53 | + $service = preg_replace('/\/'.preg_quote($channel, '/').'$/', '', $service); |
|
| 54 | 54 | |
| 55 | 55 | // Split on the first slash |
| 56 | 56 | $slash = strpos($service, '/'); |
@@ -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; |
@@ -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'); |
@@ -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 | |
@@ -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 | { |
@@ -43,7 +43,7 @@ |
||
| 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 |