@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function testExistingConfigurationFile() |
| 27 | 27 | { |
| 28 | 28 | |
| 29 | - $this->file = sys_get_temp_dir().DIRECTORY_SEPARATOR.Monitor::CONFIG_FILENAME; |
|
| 29 | + $this->file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . Monitor::CONFIG_FILENAME; |
|
| 30 | 30 | |
| 31 | 31 | // Dump the configuration set by the enduser |
| 32 | 32 | $configuration = [ |
@@ -51,13 +51,13 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | $content = ''; |
| 53 | 53 | foreach ($configuration as $name => $section) { |
| 54 | - $content .= Yaml::dump([$name => $section], 4).PHP_EOL; |
|
| 54 | + $content .= Yaml::dump([$name => $section], 4) . PHP_EOL; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | file_put_contents($this->file, $content); |
| 58 | 58 | |
| 59 | 59 | //Test if the enduser configuration is kept by the ConfigurationLoader |
| 60 | - $configurationLoader = new ConfigurationLoader(); |
|
| 60 | + $configurationLoader = new ConfigurationLoader(); |
|
| 61 | 61 | |
| 62 | 62 | $configurationDumper = new ConfigurationDumper(); |
| 63 | 63 | $filesystem = new Filesystem(); |
@@ -123,9 +123,9 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function testDefaultConfigurationFile() |
| 125 | 125 | { |
| 126 | - $testFile = sys_get_temp_dir().DIRECTORY_SEPARATOR.Monitor::CONFIG_FILENAME; |
|
| 126 | + $testFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . Monitor::CONFIG_FILENAME; |
|
| 127 | 127 | |
| 128 | - $configurationLoader = new ConfigurationLoader(); |
|
| 128 | + $configurationLoader = new ConfigurationLoader(); |
|
| 129 | 129 | $configurationDumper = new ConfigurationDumper(); |
| 130 | 130 | $filesystem = new Filesystem(); |
| 131 | 131 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | parent::configure(); |
| 29 | 29 | |
| 30 | - $configurationLoader = new ConfigurationLoader(); |
|
| 30 | + $configurationLoader = new ConfigurationLoader(); |
|
| 31 | 31 | $configurationDumper = new ConfigurationDumper(); |
| 32 | 32 | |
| 33 | 33 | $filesystem = new Filesystem(); |
@@ -44,20 +44,20 @@ discard block |
||
| 44 | 44 | SIGNATURE; |
| 45 | 45 | |
| 46 | 46 | $this |
| 47 | - ->setDisplayName($signature."\n".'Irongate Monitor Application') |
|
| 47 | + ->setDisplayName($signature . "\n" . 'Irongate Monitor Application') |
|
| 48 | 48 | ->setName('monitor') |
| 49 | 49 | ->setVersion(Monitor::VERSION) |
| 50 | 50 | ->addOption('config', 'c', Option::OPTIONAL_VALUE, 'Config file path', rtrim(getcwd(), DIRECTORY_SEPARATOR)) |
| 51 | 51 | ->beginCommand('init') |
| 52 | 52 | ->setDescription('Create a default configuration file if you do not have one') |
| 53 | - ->setHandler(function () use ($configurationLoader, $configurationDumper, $filesystem) { |
|
| 53 | + ->setHandler(function() use ($configurationLoader, $configurationDumper, $filesystem) { |
|
| 54 | 54 | return new InitHandler($configurationLoader, $configurationDumper, $filesystem); |
| 55 | 55 | }) |
| 56 | 56 | ->setHelp('php <info>bin/monitor</info> init') |
| 57 | 57 | ->end() |
| 58 | 58 | ->beginCommand('run') |
| 59 | 59 | ->setDescription('Launch the monitor process') |
| 60 | - ->setHandler(function () use ($configurationLoader) { |
|
| 60 | + ->setHandler(function() use ($configurationLoader) { |
|
| 61 | 61 | return new RunHandler($configurationLoader); |
| 62 | 62 | }) |
| 63 | 63 | ->setHelp('php <info>bin/monitor</info> init') |