Completed
Pull Request — master (#14)
by
unknown
01:36
created
src/Command/Track.php 1 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/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.
src/Formatter/Flat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 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 . "\n";
74
+            ).self::LINE_BREAK."\n";
75 75
         }
76 76
         return $result;
77 77
     }
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
@@ -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);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     protected function storeNewestStorageContent($bookString)
142 142
     {
143 143
         $path = $this->getLogFilePath();
144
-        file_put_contents($path, $bookString . $this->getStorageContent());
144
+        file_put_contents($path, $bookString.$this->getStorageContent());
145 145
     }
146 146
 
147 147
     /**
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
                 // increase the booking counter
220 220
                 if (!$booking->isMetaBooking() || $countMeta) {
221
-                    $bookingCount ++;
221
+                    $bookingCount++;
222 222
                 }
223 223
 
224 224
                 // if clipping is not omitted we will add the rear clipping to our collection.
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,7 +18,7 @@
 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
 
24 24
     public function setJiraPassword($value) {
Please login to merge, or discard this patch.
src/Command/Push.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,8 +213,8 @@
 block discarded – undo
213 213
             return '';
214 214
         }
215 215
         $command = "/usr/bin/env bash -c 'read -s -p \""
216
-                   . addslashes($prompt)
217
-                   . "\" mypassword && echo \$mypassword'";
216
+                    . addslashes($prompt)
217
+                    . "\" mypassword && echo \$mypassword'";
218 218
         $password = rtrim(shell_exec($command));
219 219
         $output->writeln('');
220 220
         return $password;
Please login to merge, or discard this patch.