@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $delete = $this->convertOption($input->getOption('delete')); |
| 75 | 75 | $compress = $this->convertOption($input->getOption('compress')); |
| 76 | 76 | |
| 77 | - $this->output->writeln($this->getApplication()->getLongVersion() . ', running a cleanup'); |
|
| 77 | + $this->output->writeln($this->getApplication()->getLongVersion().', running a cleanup'); |
|
| 78 | 78 | |
| 79 | 79 | if ($delete === null && $compress === null) { |
| 80 | 80 | throw new \InvalidArgumentException('Neither the --delete or --compress options were passed. No operation will be completed.'); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $this->deleteResults($delete); |
| 88 | 88 | $this->compressResults($compress); |
| 89 | 89 | |
| 90 | - $output->writeln(' > Applying <info>' . count($this->em->getUnitOfWork()->getScheduledEntityDeletions()) . '</info> cleanup operations'); |
|
| 90 | + $output->writeln(' > Applying <info>'.count($this->em->getUnitOfWork()->getScheduledEntityDeletions()).'</info> cleanup operations'); |
|
| 91 | 91 | $this->em->flush(); |
| 92 | 92 | $output->writeln('<info>Cleanup finished</info>'); |
| 93 | 93 | } |
@@ -103,13 +103,13 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | private function prepareArchive() |
| 105 | 105 | { |
| 106 | - $archiveDir = $this->getContainer()->get('kernel')->getRootDir() . '/logs/'; |
|
| 107 | - $header = $this->getApplication()->getName() . ' ' . $this->getApplication()->getVersion() . ', running a cleanup'; |
|
| 106 | + $archiveDir = $this->getContainer()->get('kernel')->getRootDir().'/logs/'; |
|
| 107 | + $header = $this->getApplication()->getName().' '.$this->getApplication()->getVersion().', running a cleanup'; |
|
| 108 | 108 | |
| 109 | - $this->archiveFile = $archiveDir . 'overwatch_archive_' . date('YmdHis') . '.log'; |
|
| 110 | - $this->output->writeln(' > Preparing archive file <info>' . $this->archiveFile . '</info>'); |
|
| 109 | + $this->archiveFile = $archiveDir.'overwatch_archive_'.date('YmdHis').'.log'; |
|
| 110 | + $this->output->writeln(' > Preparing archive file <info>'.$this->archiveFile.'</info>'); |
|
| 111 | 111 | |
| 112 | - if (!file_put_contents($this->archiveFile, $header . PHP_EOL, FILE_APPEND)) { |
|
| 112 | + if (!file_put_contents($this->archiveFile, $header.PHP_EOL, FILE_APPEND)) { |
|
| 113 | 113 | throw new \InvalidArgumentException('Could not write to the archive file.'); |
| 114 | 114 | } |
| 115 | 115 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | return; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - $this->output->writeln(' > Finding results older than <info>' . $delete->format('Y-m-d H:i:s') . '</info> to delete'); |
|
| 126 | + $this->output->writeln(' > Finding results older than <info>'.$delete->format('Y-m-d H:i:s').'</info> to delete'); |
|
| 127 | 127 | $resultsToCleanup = $this->resultRepo->getResultsOlderThan($delete); |
| 128 | 128 | |
| 129 | 129 | foreach ($resultsToCleanup as $row) { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | $lastResult = ResultStatus::PASSED; |
| 146 | - $this->output->writeln(' > Finding results older than <info>' . $compress->format('Y-m-d H:i:s') . '</info> to compress'); |
|
| 146 | + $this->output->writeln(' > Finding results older than <info>'.$compress->format('Y-m-d H:i:s').'</info> to compress'); |
|
| 147 | 147 | $resultsToCleanup = $this->resultRepo->getResultsOlderThan($compress); |
| 148 | 148 | |
| 149 | 149 | foreach ($resultsToCleanup as $row) { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | private function archiveResult(TestResult $result) |
| 161 | 161 | { |
| 162 | 162 | if ($this->archiveFile !== null) { |
| 163 | - file_put_contents($this->archiveFile, (string) $result . PHP_EOL, FILE_APPEND); |
|
| 163 | + file_put_contents($this->archiveFile, (string) $result.PHP_EOL, FILE_APPEND); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | $this->em->remove($result); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public function __construct($alias, $code = 0, $previous = null) |
| 13 | 13 | { |
| 14 | 14 | parent::__construct( |
| 15 | - 'Expectation with ' . $alias . ' could not be found.', |
|
| 15 | + 'Expectation with '.$alias.' could not be found.', |
|
| 16 | 16 | $code, |
| 17 | 17 | $previous |
| 18 | 18 | ); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -16,6 +16,6 @@ |
||
| 16 | 16 | $exception = new ExpectationNotFoundException($badAlias); |
| 17 | 17 | |
| 18 | 18 | $this->assertInstanceOf('\OutOfBoundsException', $exception); |
| 19 | - $this->assertEquals($exception->getMessage(), 'Expectation with ' . $badAlias . ' could not be found.'); |
|
| 19 | + $this->assertEquals($exception->getMessage(), 'Expectation with '.$badAlias.' could not be found.'); |
|
| 20 | 20 | } |
| 21 | 21 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $this->processConfiguration(new Configuration(), $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.yml'); |
| 27 | 27 | } |
| 28 | 28 | } |