@@ -26,10 +26,10 @@ |
||
| 26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
| 27 | 27 | { |
| 28 | 28 | $helper = $this->getHelper('question'); |
| 29 | - if(($begin = $input->getOption('begin')) === null) { |
|
| 29 | + if (($begin = $input->getOption('begin')) === null) { |
|
| 30 | 30 | $begin = $helper->ask($input, $output, new Question('Please enter the sprint begin date: ')); |
| 31 | 31 | } |
| 32 | - if(($end = $input->getOption('end')) === null) { |
|
| 32 | + if (($end = $input->getOption('end')) === null) { |
|
| 33 | 33 | $end = $helper->ask($input, $output, new Question('Please enter the sprint end date: ')); |
| 34 | 34 | } |
| 35 | 35 | $sprint = $this->getContainer()->get(SprintManager::class)->createSprint(new \DateTime($begin), new \DateTime($end)); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | ->willReturnCallback(function($beginDate) { |
| 102 | 102 | $sprint = $this->getSprintMock(3); |
| 103 | 103 | |
| 104 | - return ($beginDate < $sprint->getEndedAt()) ? [$sprint]: []; |
|
| 104 | + return ($beginDate < $sprint->getEndedAt()) ? [$sprint] : []; |
|
| 105 | 105 | }); |
| 106 | 106 | return $repositoryMock; |
| 107 | 107 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | ->setBeginAt(new \DateTime('-3 days')) |
| 115 | 115 | ->setEndedAt(new \DateTime('+11 days')) |
| 116 | 116 | ; |
| 117 | - if($id !== null) { |
|
| 117 | + if ($id !== null) { |
|
| 118 | 118 | $sprint->setId($id); |
| 119 | 119 | } |
| 120 | 120 | return $sprint; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | const STATUS_IN_PROGRESS = 'in_progress'; |
| 14 | 14 | const STATUS_REVIEW = 'review'; |
| 15 | 15 | const STATUS_TO_RELEASE = 'to_release'; |
| 16 | - const STATUS_DONE= 'done'; |
|
| 16 | + const STATUS_DONE = 'done'; |
|
| 17 | 17 | |
| 18 | 18 | public function getCardType(): string; |
| 19 | 19 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | continue; |
| 48 | 48 | } |
| 49 | 49 | $messages = $this->processColumnCards($columnData['id'], $column, $currentSprint); |
| 50 | - foreach($messages as $type => $message) { |
|
| 50 | + foreach ($messages as $type => $message) { |
|
| 51 | 51 | yield $type => $message; |
| 52 | 52 | } |
| 53 | 53 | yield "info" => "Column {$columnData['name']} has been synchronized"; |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | protected function processColumnCards(string $columnId, array $column, Sprint $sprint = null) |
| 63 | 63 | { |
| 64 | 64 | $cards = $this->gateway->getColumnCards($columnId); |
| 65 | - yield "info" => count($cards) . " cards to synchronize with status {$column['status']}"; |
|
| 65 | + yield "info" => count($cards)." cards to synchronize with status {$column['status']}"; |
|
| 66 | 66 | foreach ($cards as $card) { |
| 67 | 67 | $titleParts = explode('|', $card['name']); |
| 68 | - $extraData = isset($titleParts[1]) ? trim($titleParts[1]): ''; |
|
| 68 | + $extraData = isset($titleParts[1]) ? trim($titleParts[1]) : ''; |
|
| 69 | 69 | |
| 70 | 70 | $estimations = $this->getCardEstimations($card, $extraData); |
| 71 | 71 | |