@@ -20,8 +20,12 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $shippingMethod |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function selectShippingMethod($shippingMethod); |
25 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
26 | 30 | public function continueCheckout(); |
27 | 31 | } |
@@ -23,11 +23,13 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @param string $description |
25 | 25 | * @param string $languageCode |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function describeItAs($description, $languageCode); |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * @param TaxonInterface $taxon |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function chooseParent(TaxonInterface $taxon); |
33 | 35 | |
@@ -39,11 +41,13 @@ discard block |
||
39 | 41 | /** |
40 | 42 | * @param string $name |
41 | 43 | * @param string $languageCode |
44 | + * @return void |
|
42 | 45 | */ |
43 | 46 | public function nameIt($name, $languageCode); |
44 | 47 | |
45 | 48 | /** |
46 | 49 | * @param string $slug |
50 | + * @return void |
|
47 | 51 | */ |
48 | 52 | public function specifySlug($slug); |
49 | 53 | |
@@ -55,6 +59,7 @@ discard block |
||
55 | 59 | /** |
56 | 60 | * @param string $path |
57 | 61 | * @param string $code |
62 | + * @return void |
|
58 | 63 | */ |
59 | 64 | public function attachImage($path, $code = null); |
60 | 65 | |
@@ -72,11 +77,18 @@ discard block |
||
72 | 77 | |
73 | 78 | /** |
74 | 79 | * @param string $code |
80 | + * @return void |
|
75 | 81 | */ |
76 | 82 | public function removeImageWithCode($code); |
77 | 83 | |
84 | + /** |
|
85 | + * @return void |
|
86 | + */ |
|
78 | 87 | public function removeFirstImage(); |
79 | 88 | |
89 | + /** |
|
90 | + * @return void |
|
91 | + */ |
|
80 | 92 | public function enableSlugModification(); |
81 | 93 | |
82 | 94 | /** |
@@ -87,6 +99,7 @@ discard block |
||
87 | 99 | /** |
88 | 100 | * @param string $code |
89 | 101 | * @param string $path |
102 | + * @return void |
|
90 | 103 | */ |
91 | 104 | public function changeImageWithCode($code, $path); |
92 | 105 |
@@ -50,6 +50,6 @@ |
||
50 | 50 | $parent = $this->taxonRepository->find($parentId); |
51 | 51 | Assert::notNull($parent, sprintf('There is no parent taxon with id %d.', $parentId)); |
52 | 52 | |
53 | - return $parent->getSlug().self::SLUG_SEPARATOR.$taxonSlug; |
|
53 | + return $parent->getSlug() . self::SLUG_SEPARATOR . $taxonSlug; |
|
54 | 54 | } |
55 | 55 | } |
@@ -44,12 +44,12 @@ |
||
44 | 44 | $taxonRepository->find(1)->willReturn($parent); |
45 | 45 | $parent->getSlug()->willReturn('board-games'); |
46 | 46 | |
47 | - $this->generate('Battle games', 1)->shouldReturn('board-games/battle-games');; |
|
47 | + $this->generate('Battle games', 1)->shouldReturn('board-games/battle-games'); ; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | function it_generates_slug_based_on_new_taxon_name_if_this_taxon_has_no_parent() |
51 | 51 | { |
52 | - $this->generate('Board games')->shouldReturn('board-games');; |
|
52 | + $this->generate('Board games')->shouldReturn('board-games'); ; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | function it_throws_exception_if_parent_taxon_with_given_id_does_not_exist( |
@@ -167,7 +167,7 @@ |
||
167 | 167 | */ |
168 | 168 | public function thisOrderHasNotBeenPaidForDays(OrderInterface $order, $amount, $time) |
169 | 169 | { |
170 | - $order->setCheckoutCompletedAt(new \DateTime('-'.$amount.' '.$time)); |
|
170 | + $order->setCheckoutCompletedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
171 | 171 | $this->orderManager->flush(); |
172 | 172 | |
173 | 173 | $this->unpaidOrdersStateUpdater->cancel(); |