Completed
Push — master ( 1f8449...3785e1 )
by Bernhard
12:25
created
src/Formatter/Grouped.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Wicked\Timely\Formatter;
21 21
 
22 22
 use Wicked\Timely\Entities\Booking;
23
-use Wicked\Timely\Entities\Pause;
24 23
 use Wicked\Timely\Entities\TaskFactory;
25 24
 use Wicked\Timely\Helper\Date;
26 25
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         // print the total amount of time spent
92 92
         $result .= '
93 93
 ====================================================
94
-Total: ' . Date::secondsToUnits($this->totalDuration) . '
94
+Total: ' . Date::secondsToUnits($this->totalDuration).'
95 95
 ====================================================';
96 96
 
97 97
         // return the string
@@ -122,23 +122,23 @@  discard block
 block discarded – undo
122 122
                 Date::secondsToUnits($task->getDuration()),
123 123
                 $booking->getComment()
124 124
                 )
125
-            ) . '
125
+            ).'
126 126
     ';
127 127
             $this->totalDuration += $total += $task->getDuration();
128 128
         }
129 129
 
130 130
         // we also need the first and last element of the array
131
-        $firstBooking= reset($tasks)->getStartBooking();
131
+        $firstBooking = reset($tasks)->getStartBooking();
132 132
         $lastBooking = end($tasks)->getEndBooking();
133 133
 
134 134
         // begin the string generation
135
-        $result = $ticketId . '     ' .  $firstBooking->getTime() . ' -> ' . $lastBooking->getTime() . '
135
+        $result = $ticketId.'     '.$firstBooking->getTime().' -> '.$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($total) . '
141
+    ' . Date::secondsToUnits($total).'
142 142
 
143 143
 ';
144 144
         // return the string
Please login to merge, or discard this patch.
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
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
                 // increase the booking counter
161 161
                 if (!$booking->isMetaBooking()) {
162
-                    $bookingCount ++;
162
+                    $bookingCount++;
163 163
                 }
164 164
 
165 165
                 // collect keys we found something for, for later re-use
Please login to merge, or discard this patch.