@@ -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 |
@@ -20,13 +20,13 @@ discard block |
||
20 | 20 | [ |
21 | 21 | [ |
22 | 22 | [ |
23 | - 'data' => [ 'text' => 'plus! 0/6' ] |
|
23 | + 'data' => ['text' => 'plus! 0/6'] |
|
24 | 24 | ], |
25 | 25 | [ |
26 | - 'data' => [ 'text' => 'plus! 2/0' ] |
|
26 | + 'data' => ['text' => 'plus! 2/0'] |
|
27 | 27 | ], |
28 | 28 | [ |
29 | - 'data' => [ 'text' => 'plus! 1/0' ] |
|
29 | + 'data' => ['text' => 'plus! 1/0'] |
|
30 | 30 | ] |
31 | 31 | ], |
32 | 32 | [ |
@@ -37,13 +37,13 @@ discard block |
||
37 | 37 | [ |
38 | 38 | [ |
39 | 39 | [ |
40 | - 'data' => [ 'text' => 'plus! 0/3' ] |
|
40 | + 'data' => ['text' => 'plus! 0/3'] |
|
41 | 41 | ], |
42 | 42 | [ |
43 | - 'data' => [ 'text' => 'plus! 2/0' ] |
|
43 | + 'data' => ['text' => 'plus! 2/0'] |
|
44 | 44 | ], |
45 | 45 | [ |
46 | - 'data' => [ 'text' => 'plus! @developer 2/1' ] |
|
46 | + 'data' => ['text' => 'plus! @developer 2/1'] |
|
47 | 47 | ] |
48 | 48 | ], |
49 | 49 | [ |