| @@ -46,7 +46,7 @@ | ||
| 46 | 46 | $startBooking = null; | 
| 47 | 47 | $intermediateBookings = array(); | 
| 48 | 48 | $bookingsCount = count($bookings) - 1; | 
| 49 | -        for ($i = $bookingsCount; $i >= 0; $i --) { | |
| 49 | +        for ($i = $bookingsCount; $i >= 0; $i--) { | |
| 50 | 50 | $booking = $bookings[$i]; | 
| 51 | 51 | // set the start booking | 
| 52 | 52 |              if (is_null($startBooking) && $booking->canStartTask($includePauses)) { | 
| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | // print the total amount of time spent | 
| 92 | 92 | $result .= ' | 
| 93 | 93 | ==================================================== | 
| 94 | -Total: ca. ' . Date::secondsToUnits(Date::roundByInterval($this->totalDuration, 900)) . ' | |
| 94 | +Total: ca. ' . Date::secondsToUnits(Date::roundByInterval($this->totalDuration, 900)).' | |
| 95 | 95 | ===================================================='; | 
| 96 | 96 | |
| 97 | 97 | // return the string | 
| @@ -122,7 +122,7 @@ discard block | ||
| 122 | 122 | Date::secondsToUnits($task->getDuration()), | 
| 123 | 123 | $task->getComment() | 
| 124 | 124 | ) | 
| 125 | - ) . ' | |
| 125 | + ).' | |
| 126 | 126 | '; | 
| 127 | 127 | $total += $task->getDuration(); | 
| 128 | 128 | } | 
| @@ -132,13 +132,13 @@ discard block | ||
| 132 | 132 | $lastBooking = end($tasks)->getEndBooking(); | 
| 133 | 133 | |
| 134 | 134 | // begin the string generation | 
| 135 | - $result = $ticketId . ' ' . $startTime . ' -> ' . $lastBooking->getTime() . ' | |
| 135 | + $result = $ticketId.' '.$startTime.' -> '.$lastBooking->getTime().' | |
| 136 | 136 | ==================================================== | 
| 137 | 137 | ' . $ticketList; | 
| 138 | 138 | |
| 139 | 139 | // print the total and end with another linebreak without indention to break groups apart | 
| 140 | 140 | $result .= '------------------------------------------------- | 
| 141 | - ' . Date::secondsToUnits(Date::roundByInterval($total, 900)) . ' | |
| 141 | + ' . Date::secondsToUnits(Date::roundByInterval($total, 900)).' | |
| 142 | 142 | |
| 143 | 143 | '; | 
| 144 | 144 | $this->totalDuration += $total; | 
| @@ -92,7 +92,7 @@ | ||
| 92 | 92 |              if ($lastBooking->getTicketId() === PauseEntity::PAUSE_TAG_START) { | 
| 93 | 93 | // create a new pause instance | 
| 94 | 94 | $now = new \DateTime(); | 
| 95 | -                $pause = new PauseEntity('', true, $now->getTimestamp()-1); | |
| 95 | +                $pause = new PauseEntity('', true, $now->getTimestamp() - 1); | |
| 96 | 96 | $storage->store($pause); | 
| 97 | 97 | } | 
| 98 | 98 | $storage->store($booking); | 
| @@ -71,7 +71,7 @@ | ||
| 71 | 71 | $booking->getComment(), | 
| 72 | 72 |                      $booking->isPushed() ? 'jira '.date('Y-m-d H:i:s').'' : '' | 
| 73 | 73 | ) | 
| 74 | - ) . self::LINE_BREAK . "\n"; | |
| 74 | + ).self::LINE_BREAK."\n"; | |
| 75 | 75 | } | 
| 76 | 76 | return $result; | 
| 77 | 77 | } | 
| @@ -76,7 +76,7 @@ discard block | ||
| 76 | 76 | public function __construct() | 
| 77 | 77 |      { | 
| 78 | 78 | // calculate the default file path | 
| 79 | - $this->logFilePath = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . self::DATA_NAME; | |
| 79 | + $this->logFilePath = dirname(dirname(__DIR__)).DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.self::DATA_NAME; | |
| 80 | 80 | // check if the file exists, if not create it | 
| 81 | 81 |          if (!is_file($this->logFilePath)) { | 
| 82 | 82 | touch($this->logFilePath); | 
| @@ -141,7 +141,7 @@ discard block | ||
| 141 | 141 | protected function storeNewestStorageContent($bookString) | 
| 142 | 142 |      { | 
| 143 | 143 | $path = $this->getLogFilePath(); | 
| 144 | - file_put_contents($path, $bookString . $this->getStorageContent()); | |
| 144 | + file_put_contents($path, $bookString.$this->getStorageContent()); | |
| 145 | 145 | } | 
| 146 | 146 | |
| 147 | 147 | /** | 
| @@ -218,7 +218,7 @@ discard block | ||
| 218 | 218 | |
| 219 | 219 | // increase the booking counter | 
| 220 | 220 |                  if (!$booking->isMetaBooking() || $countMeta) { | 
| 221 | - $bookingCount ++; | |
| 221 | + $bookingCount++; | |
| 222 | 222 | } | 
| 223 | 223 | |
| 224 | 224 | // if clipping is not omitted we will add the rear clipping to our collection. | 
| @@ -213,8 +213,8 @@ | ||
| 213 | 213 | return ''; | 
| 214 | 214 | } | 
| 215 | 215 | $command = "/usr/bin/env bash -c 'read -s -p \"" | 
| 216 | - . addslashes($prompt) | |
| 217 | - . "\" mypassword && echo \$mypassword'"; | |
| 216 | + . addslashes($prompt) | |
| 217 | + . "\" mypassword && echo \$mypassword'"; | |
| 218 | 218 | $password = rtrim(shell_exec($command)); | 
| 219 | 219 |          $output->writeln(''); | 
| 220 | 220 | return $password; | 
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 | */ | 
| 41 | 41 | public function __construct($path = '.') | 
| 42 | 42 |      { | 
| 43 | - parent::__construct(realpath(__DIR__ . '/../')); | |
| 43 | + parent::__construct(realpath(__DIR__.'/../')); | |
| 44 | 44 | } | 
| 45 | 45 | |
| 46 | 46 | /** |