Completed
Push — master ( 741f1a...42bbb8 )
by Bernhard
03:50
created
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/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/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/DotEnvConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function __construct($path = '.')
44 44
     {
45
-        parent::__construct(realpath(__DIR__ . '/../'));
45
+        parent::__construct(realpath(__DIR__.'/../'));
46 46
         $this->pushService = $this->env('PUSH_SERVICE');
47 47
     }
48 48
 
Please login to merge, or discard this patch.
src/Formatter/Flat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @var string LINE_BREAK
39 39
      */
40
-    const LINE_BREAK = ';' . PHP_EOL;
40
+    const LINE_BREAK = ';'.PHP_EOL;
41 41
 
42 42
     /**
43 43
      * Default character sequence for segment separation
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                     $booking->getComment(),
72 72
                     $booking->isPushed() ? 'jira '.date('Y-m-d H:i:s').'' : ''
73 73
                 )
74
-            ) . self::LINE_BREAK;
74
+            ).self::LINE_BREAK;
75 75
         }
76 76
         return $result;
77 77
     }
Please login to merge, or discard this patch.
src/Storage/File.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @var string LINE_BREAK
42 42
      */
43
-    const LINE_BREAK = ';' . PHP_EOL;
43
+    const LINE_BREAK = ';'.PHP_EOL;
44 44
 
45 45
     /**
46 46
      * Default character sequence for segment separation
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     protected function storeNewestStorageContent($bookString)
143 143
     {
144 144
         $path = $this->getLogFilePath();
145
-        file_put_contents($path, $bookString . $this->getStorageContent());
145
+        file_put_contents($path, $bookString.$this->getStorageContent());
146 146
     }
147 147
 
148 148
     /**
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
                 // increase the booking counter
222 222
                 if (!$booking->isMetaBooking() || $countMeta) {
223
-                    $bookingCount ++;
223
+                    $bookingCount++;
224 224
                 }
225 225
 
226 226
                 // if clipping is not omitted we will add the rear clipping to our collection.
Please login to merge, or discard this patch.
src/Command/Track.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,7 @@
 block discarded – undo
21 21
 
22 22
 use Symfony\Component\Console\Command\Command;
23 23
 use Symfony\Component\Console\Input\InputArgument;
24
-use Symfony\Component\Console\Input\InputDefinition;
25 24
 use Symfony\Component\Console\Input\InputInterface;
26
-use Symfony\Component\Console\Input\InputOption;
27 25
 use Symfony\Component\Console\Output\OutputInterface;
28 26
 use Wicked\Timely\Entities\Booking;
29 27
 use Wicked\Timely\Storage\StorageFactory;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,12 +119,12 @@
 block discarded – undo
119 119
             if ($lastBooking instanceof Booking && $lastBooking->getTicketId() === PauseEntity::PAUSE_TAG_START) {
120 120
                 // create a new pause instance
121 121
                 $now = new \DateTime();
122
-                $pause = new PauseEntity('', true, $now->getTimestamp()-1);
122
+                $pause = new PauseEntity('', true, $now->getTimestamp() - 1);
123 123
                 $storage->store($pause);
124 124
             }
125 125
             $storage->store($booking);
126 126
         } catch (\Exception $e) {
127
-            $output->writeln('<error>' . $e->getMessage() . '</error>');
127
+            $output->writeln('<error>'.$e->getMessage().'</error>');
128 128
             return 1;
129 129
         }
130 130
 
Please login to merge, or discard this patch.
src/Command/AbstractReadCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
                 substr(strtolower(self::OPTION_TO), 0, 1),
114 114
                 InputOption::VALUE_REQUIRED,
115 115
                 'Show up to a certain date'
116
-            )->setHelp($this->getHelp() . PHP_EOL . PHP_EOL . <<<'EOF'
116
+            )->setHelp($this->getHelp().PHP_EOL.PHP_EOL.<<<'EOF'
117 117
 The tracked times in question can also be filter by supplying the optional (ticket) identifier:
118 118
 
119 119
   <info>timely %command.name% FOO-42</info>
Please login to merge, or discard this patch.
src/PushServices/Authentication/UnixPasswordRetrievalStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function getPassword()
93 93
     {
94
-        $password = $this->promptSilent($this->output, 'Please enter password for your push service account "' . $this->configuration->getJiraUser() . '":');
94
+        $password = $this->promptSilent($this->output, 'Please enter password for your push service account "'.$this->configuration->getJiraUser().'":');
95 95
         if (empty($password)) {
96 96
             $this->output->writeln('<error>Empty password is not possible...</error>');
97 97
 
Please login to merge, or discard this patch.