Completed
Pull Request — master (#4)
by Bernhard
04:08
created
src/Storage/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Entities/TaskFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.