@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | function dumpSectionIfThereIsSomeContent(array $lines, $name) |
| 35 | 35 | { |
| 36 | 36 | if (!empty($lines)) { |
| 37 | - echo '==== ' . $name .' ====' . PHP_EOL; |
|
| 37 | + echo '==== ' . $name . ' ====' . PHP_EOL; |
|
| 38 | 38 | echo PHP_EOL; |
| 39 | 39 | |
| 40 | 40 | dumpArray($lines); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $parserBuilderFactory = new \Net\Bazzline\Component\ApacheServerStatusParser\Service\Builder\ParserBuilderFactory(); |
| 55 | 55 | $storageBuilder = new \Net\Bazzline\Component\ApacheServerStatusParser\Service\Builder\LocalStorageBuilder(); |
| 56 | 56 | |
| 57 | -$parserBuilder = $parserBuilderFactory->create(); |
|
| 57 | +$parserBuilder = $parserBuilderFactory->create(); |
|
| 58 | 58 | //end of dependencies |
| 59 | 59 | |
| 60 | 60 | //begin of business logic |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $storageBuilder->selectParseModeDetailOnlyUpfront(); |
| 65 | 65 | $storageBuilder->build(); |
| 66 | 66 | |
| 67 | -$listOfNameToElapsedTime['fetching'] = PHP_Timer::secondsToTimeString( |
|
| 67 | +$listOfNameToElapsedTime['fetching'] = PHP_Timer::secondsToTimeString( |
|
| 68 | 68 | PHP_Timer::stop() |
| 69 | 69 | ); |
| 70 | 70 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | function dumpSectionIfThereIsSomeContent(array $lines, $name) |
| 35 | 35 | { |
| 36 | 36 | if (!empty($lines)) { |
| 37 | - echo '==== ' . $name .' ====' . PHP_EOL; |
|
| 37 | + echo '==== ' . $name . ' ====' . PHP_EOL; |
|
| 38 | 38 | echo PHP_EOL; |
| 39 | 39 | |
| 40 | 40 | dumpArray($lines); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | : 'http://testdata.bazzline.net/apache_server_status/index.html' |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | -$parserBuilder = $parserBuilderFactory->create(); |
|
| 57 | +$parserBuilder = $parserBuilderFactory->create(); |
|
| 58 | 58 | //end of dependencies |
| 59 | 59 | |
| 60 | 60 | //begin of business logic |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | $storageBuilder->selectParseModeDetailOnlyUpfront(); |
| 65 | 65 | $storageBuilder->build(); |
| 66 | 66 | |
| 67 | -$listOfNameToElapsedTime['fetching'] = PHP_Timer::secondsToTimeString( |
|
| 67 | +$listOfNameToElapsedTime['fetching'] = PHP_Timer::secondsToTimeString( |
|
| 68 | 68 | PHP_Timer::stop() |
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | -$storage = $storageBuilder->andGetStorageAfterTheBuild(); |
|
| 71 | +$storage = $storageBuilder->andGetStorageAfterTheBuild(); |
|
| 72 | 72 | |
| 73 | 73 | dumpSectionIfThereIsSomeContent($storage->getListOfDetail(), 'Detail'); |
| 74 | 74 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | function dumpSectionIfThereIsSomeContent(array $lines, $name) |
| 35 | 35 | { |
| 36 | 36 | if (!empty($lines)) { |
| 37 | - echo '==== ' . $name .' ====' . PHP_EOL; |
|
| 37 | + echo '==== ' . $name . ' ====' . PHP_EOL; |
|
| 38 | 38 | echo PHP_EOL; |
| 39 | 39 | |
| 40 | 40 | dumpArray($lines); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | : 'http://testdata.bazzline.net/apache_server_status/index.html' |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | -$parserBuilder = $parserBuilderFactory->create(); |
|
| 57 | +$parserBuilder = $parserBuilderFactory->create(); |
|
| 58 | 58 | //end of dependencies |
| 59 | 59 | |
| 60 | 60 | //begin of business logic |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | $storageBuilder->selectParseModeAllUpfront(); |
| 65 | 65 | $storageBuilder->build(); |
| 66 | 66 | |
| 67 | -$listOfNameToElapsedTime['fetching'] = PHP_Timer::secondsToTimeString( |
|
| 67 | +$listOfNameToElapsedTime['fetching'] = PHP_Timer::secondsToTimeString( |
|
| 68 | 68 | PHP_Timer::stop() |
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | -$storage = $storageBuilder->andGetStorageAfterTheBuild(); |
|
| 71 | +$storage = $storageBuilder->andGetStorageAfterTheBuild(); |
|
| 72 | 72 | |
| 73 | 73 | dumpSectionIfThereIsSomeContent($storage->getListOfInformation(), 'Information'); |
| 74 | 74 | dumpSectionIfThereIsSomeContent($storage->getListOfDetail(), 'Detail'); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | $parserBuilder->setStorageUpfront($storage); |
| 81 | 81 | $parserBuilder->build(); |
| 82 | 82 | |
| 83 | -$listOfNameToElapsedTime['parsing'] = PHP_Timer::secondsToTimeString( |
|
| 83 | +$listOfNameToElapsedTime['parsing'] = PHP_Timer::secondsToTimeString( |
|
| 84 | 84 | PHP_Timer::stop() |
| 85 | 85 | ); |
| 86 | 86 | |