@@ -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 | /** |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | // increase the booking counter |
| 166 | 166 | if (!$booking->isMetaBooking()) { |
| 167 | - $bookingCount ++; |
|
| 167 | + $bookingCount++; |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | // if clipping is not omitted we will add the rear clipping to our collection. |
@@ -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)) { |