@@ -118,8 +118,6 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Execute the command |
| 120 | 120 | * |
| 121 | - * @param \Symfony\Component\Console\Input\InputInterface $input The command input |
|
| 122 | - * @param \Symfony\Component\Console\Output\OutputInterface $output The command output |
|
| 123 | 121 | * |
| 124 | 122 | * @return void |
| 125 | 123 | * |
@@ -137,8 +135,6 @@ discard block |
||
| 137 | 135 | /** |
| 138 | 136 | * Execute the command |
| 139 | 137 | * |
| 140 | - * @param \Symfony\Component\Console\Input\InputInterface $input The command input |
|
| 141 | - * @param \Symfony\Component\Console\Output\OutputInterface $output The command output |
|
| 142 | 138 | * |
| 143 | 139 | * @return void |
| 144 | 140 | * |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * {@inheritDoc} |
| 127 | 127 | * @see \Symfony\Component\Console\Command\Command::execute() |
| 128 | 128 | */ |
| 129 | - protected function assertConsistentResume () { |
|
| 129 | + protected function assertConsistentResume() { |
|
| 130 | 130 | $storage = StorageFactory::getStorage(); |
| 131 | 131 | $lastBooking = $storage->retrieveLast(true); |
| 132 | 132 | if ($lastBooking->getTicketId() !== PauseEntity::PAUSE_TAG_START) { |
@@ -145,9 +145,9 @@ discard block |
||
| 145 | 145 | * {@inheritDoc} |
| 146 | 146 | * @see \Symfony\Component\Console\Command\Command::execute() |
| 147 | 147 | */ |
| 148 | - protected function assertConsistentPause () { |
|
| 148 | + protected function assertConsistentPause() { |
|
| 149 | 149 | $storage = StorageFactory::getStorage(); |
| 150 | - $lastBooking = $storage->retrieveLast(true);error_log(var_export($lastBooking, true)); |
|
| 150 | + $lastBooking = $storage->retrieveLast(true); error_log(var_export($lastBooking, true)); |
|
| 151 | 151 | if ($lastBooking instanceof PauseEntity) { |
| 152 | 152 | throw new \Exception('There already seems to be an ongoing pause'); |
| 153 | 153 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | public function __construct() |
| 70 | 70 | { |
| 71 | 71 | // calculate the default file path |
| 72 | - $this->logFilePath = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . self::DATA_NAME; |
|
| 72 | + $this->logFilePath = dirname(dirname(__DIR__)).DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.self::DATA_NAME; |
|
| 73 | 73 | // check if the file exists, if not create it |
| 74 | 74 | if (!is_file($this->logFilePath)) { |
| 75 | 75 | touch($this->logFilePath); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | // write the new booking to the beginning of the file |
| 103 | 103 | $path = $this->getLogFilePath(); |
| 104 | - file_put_contents($path, $bookString . file_get_contents($path)); |
|
| 104 | + file_put_contents($path, $bookString.file_get_contents($path)); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | // increase the booking counter |
| 179 | 179 | if (!$booking->isMetaBooking() || $countMeta) { |
| 180 | - $bookingCount ++; |
|
| 180 | + $bookingCount++; |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | // if clipping is not omitted we will add the rear clipping to our collection. |