Completed
Push — master ( 81d10e...3eebf6 )
by Bernhard
01:55
created
src/Command/Track.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
 use Symfony\Component\Console\Command\Command;
23 23
 use Symfony\Component\Console\Input\InputArgument;
24 24
 use Symfony\Component\Console\Input\InputInterface;
25
-use Symfony\Component\Console\Input\InputOption;
26 25
 use Symfony\Component\Console\Output\OutputInterface;
27 26
 use Wicked\Timely\Entities\Booking;
28 27
 use Wicked\Timely\Storage\StorageFactory;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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);
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.
src/Command/Pause.php 2 patches
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -118,8 +118,6 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * Assert that a given "resume" command makes sense
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
 block discarded – undo
137 135
     /**
138 136
      * Assert that a given "start" command makes sense
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
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
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,7 +145,7 @@  discard block
 block discarded – undo
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 150
         $lastBooking = $storage->retrieveLast(true);
151 151
         if ($lastBooking->getTicketId() === PauseEntity::PAUSE_TAG_START) {
Please login to merge, or discard this patch.
src/Command/Show.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,9 +20,7 @@
 block discarded – undo
20 20
 namespace Wicked\Timely\Command;
21 21
 
22 22
 use Symfony\Component\Console\Command\Command;
23
-use Symfony\Component\Console\Input\InputArgument;
24 23
 use Symfony\Component\Console\Input\InputInterface;
25
-use Symfony\Component\Console\Input\InputOption;
26 24
 use Symfony\Component\Console\Output\OutputInterface;
27 25
 use Wicked\Timely\Storage\StorageFactory;
28 26
 use Wicked\Timely\Formatter\FormatterFactory;
Please login to merge, or discard this patch.
src/Entities/Pause.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,6 @@
 block discarded – undo
67 67
     /**
68 68
      * Whether or not this booking can be the start of a task
69 69
      *
70
-     * @param boolean $includePause Whether or not pauses are included as task building bookings
71 70
      *
72 71
      * @return boolean
73 72
      */
Please login to merge, or discard this patch.
src/DotEnvConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct($path = '.')
20 20
     {
21
-        parent::__construct(realpath(__DIR__ . '/../'));
21
+        parent::__construct(realpath(__DIR__.'/../'));
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Formatter/Grouped.php 1 patch
Spacing   +4 added lines, -4 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: 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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Entities/Booking.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      * @param null|string|integer $time     [optional] Time of this booking. Defaults to NULL
155 155
      * @param bool                $pushed   [optional] If pushed to jira worklog
156 156
      */
157
-    public function __construct($comment, $ticketId = '', $time = null, $pushed=false)
157
+    public function __construct($comment, $ticketId = '', $time = null, $pushed = false)
158 158
     {
159 159
         // get the arguments
160 160
         $this->ticketId = trim($ticketId);
Please login to merge, or discard this patch.
src/Entities/BookingFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return \Wicked\Timely\Entities\Booking
42 42
      */
43
-    public static function getBooking($comment, $ticketId = '', $time = null, $pushed=false)
43
+    public static function getBooking($comment, $ticketId = '', $time = null, $pushed = false)
44 44
     {
45 45
         switch ($ticketId) {
46 46
 
Please login to merge, or discard this patch.