@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | interface ThankYouPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function goToOrderDetails(); |
21 | 24 | |
22 | 25 | /** |
@@ -41,5 +44,8 @@ discard block |
||
41 | 44 | |
42 | 45 | public function hasRegistrationButton(): bool; |
43 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
44 | 50 | public function createAccount(): void; |
45 | 51 | } |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | use Symfony\Component\Dotenv\Dotenv; |
5 | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | 6 | |
7 | -require __DIR__.'/../vendor/autoload.php'; |
|
7 | +require __DIR__ . '/../vendor/autoload.php'; |
|
8 | 8 | |
9 | 9 | // The check is to ensure we don't use .env in production |
10 | 10 | if (!isset($_SERVER['APP_ENV']) && !isset($_ENV['APP_ENV'])) { |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.'); |
13 | 13 | } |
14 | 14 | |
15 | - $envFile = file_exists(__DIR__.'/../.env') ? __DIR__.'/../.env' : __DIR__.'/../.env.dist'; |
|
15 | + $envFile = file_exists(__DIR__ . '/../.env') ? __DIR__ . '/../.env' : __DIR__ . '/../.env.dist'; |
|
16 | 16 | (new Dotenv())->load($envFile); |
17 | 17 | } |
18 | 18 |
@@ -90,6 +90,6 @@ |
||
90 | 90 | |
91 | 91 | <info>php %command.full_name% public --symlink --relative</info> |
92 | 92 | |
93 | -EOT; |
|
93 | +eot; |
|
94 | 94 | } |
95 | 95 | } |
@@ -18,13 +18,20 @@ |
||
18 | 18 | |
19 | 19 | interface CreatePageInterface extends SymfonyPageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function fillAddressData(AddressInterface $address); |
22 | 25 | |
23 | 26 | /** |
24 | 27 | * @param string $name |
28 | + * @return void |
|
25 | 29 | */ |
26 | 30 | public function selectCountry($name); |
27 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
28 | 35 | public function addAddress(); |
29 | 36 | |
30 | 37 | /** |
@@ -19,10 +19,14 @@ |
||
19 | 19 | { |
20 | 20 | public function checkValidationMessageFor(string $element, string $message): bool; |
21 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function reset(); |
23 | 26 | |
24 | 27 | /** |
25 | 28 | * @param string $email |
29 | + * @return void |
|
26 | 30 | */ |
27 | 31 | public function specifyEmail($email); |
28 | 32 | } |
@@ -17,10 +17,19 @@ |
||
17 | 17 | |
18 | 18 | interface ResetPasswordPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function reset(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function specifyNewPassword(string $password): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function specifyConfirmPassword(string $password): void; |
25 | 34 | |
26 | 35 | public function checkValidationMessageFor(string $element, string $message): bool; |
@@ -20,6 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @throws \RuntimeException |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function chooseDifferentBillingAddress(); |
25 | 26 | |
@@ -36,17 +37,25 @@ discard block |
||
36 | 37 | */ |
37 | 38 | public function checkValidationMessageFor($element, $message); |
38 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
39 | 43 | public function specifyBillingAddress(AddressInterface $billingAddress); |
40 | 44 | |
41 | 45 | /** |
42 | 46 | * @param string $province |
47 | + * @return void |
|
43 | 48 | */ |
44 | 49 | public function selectBillingAddressProvince($province); |
45 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
46 | 54 | public function specifyShippingAddress(AddressInterface $shippingAddress); |
47 | 55 | |
48 | 56 | /** |
49 | 57 | * @param string $province |
58 | + * @return void |
|
50 | 59 | */ |
51 | 60 | public function selectShippingAddressProvince($province); |
52 | 61 | |
@@ -55,17 +64,25 @@ discard block |
||
55 | 64 | */ |
56 | 65 | public function canSignIn(); |
57 | 66 | |
67 | + /** |
|
68 | + * @return void |
|
69 | + */ |
|
58 | 70 | public function signIn(); |
59 | 71 | |
60 | 72 | /** |
61 | 73 | * @param string $email |
74 | + * @return void |
|
62 | 75 | */ |
63 | 76 | public function specifyEmail($email); |
64 | 77 | |
78 | + /** |
|
79 | + * @return void |
|
80 | + */ |
|
65 | 81 | public function specifyShippingAddressFullName(string $fullName); |
66 | 82 | |
67 | 83 | /** |
68 | 84 | * @param string $password |
85 | + * @return void |
|
69 | 86 | */ |
70 | 87 | public function specifyPassword($password); |
71 | 88 | |
@@ -81,17 +98,25 @@ discard block |
||
81 | 98 | */ |
82 | 99 | public function getShippingAddressCountry(); |
83 | 100 | |
101 | + /** |
|
102 | + * @return void |
|
103 | + */ |
|
84 | 104 | public function nextStep(); |
85 | 105 | |
106 | + /** |
|
107 | + * @return void |
|
108 | + */ |
|
86 | 109 | public function backToStore(); |
87 | 110 | |
88 | 111 | /** |
89 | 112 | * @param string $provinceName |
113 | + * @return void |
|
90 | 114 | */ |
91 | 115 | public function specifyBillingAddressProvince($provinceName); |
92 | 116 | |
93 | 117 | /** |
94 | 118 | * @param string $provinceName |
119 | + * @return void |
|
95 | 120 | */ |
96 | 121 | public function specifyShippingAddressProvince($provinceName); |
97 | 122 | |
@@ -105,8 +130,14 @@ discard block |
||
105 | 130 | */ |
106 | 131 | public function hasBillingAddressInput(); |
107 | 132 | |
133 | + /** |
|
134 | + * @return void |
|
135 | + */ |
|
108 | 136 | public function selectShippingAddressFromAddressBook(AddressInterface $address); |
109 | 137 | |
138 | + /** |
|
139 | + * @return void |
|
140 | + */ |
|
110 | 141 | public function selectBillingAddressFromAddressBook(AddressInterface $address); |
111 | 142 | |
112 | 143 | /** |
@@ -84,6 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * @param string $source |
87 | + * @param string $content |
|
87 | 88 | * |
88 | 89 | * @throws \RuntimeException |
89 | 90 | */ |
@@ -96,6 +97,7 @@ discard block |
||
96 | 97 | |
97 | 98 | /** |
98 | 99 | * @param string $source |
100 | + * @param string $content |
|
99 | 101 | * |
100 | 102 | * @throws \RuntimeException |
101 | 103 | */ |
@@ -21,9 +21,13 @@ discard block |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * @throws \InvalidArgumentException |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function logIn(UserInterface $user); |
26 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
27 | 31 | public function logOut(); |
28 | 32 | |
29 | 33 | /** |
@@ -33,5 +37,8 @@ discard block |
||
33 | 37 | */ |
34 | 38 | public function getCurrentToken(); |
35 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
36 | 43 | public function restoreToken(TokenInterface $token); |
37 | 44 | } |