@@ -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 | } |
@@ -19,6 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | /** |
| 21 | 21 | * @param string $taxonName |
| 22 | + * @return void |
|
| 22 | 23 | */ |
| 23 | 24 | public function filterByTaxon($taxonName); |
| 24 | 25 | |
@@ -39,6 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @param string $fieldName |
| 42 | + * @return void |
|
| 42 | 43 | */ |
| 43 | 44 | public function sortBy($fieldName); |
| 44 | 45 | |
@@ -52,6 +53,9 @@ discard block |
||
| 52 | 53 | */ |
| 53 | 54 | public function getActionsForResource(array $parameters); |
| 54 | 55 | |
| 56 | + /** |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 55 | 59 | public function checkResourceOnPage(array $parameters): void; |
| 56 | 60 | |
| 57 | 61 | /** |
@@ -59,7 +63,13 @@ discard block |
||
| 59 | 63 | */ |
| 60 | 64 | public function countItems(); |
| 61 | 65 | |
| 66 | + /** |
|
| 67 | + * @return void |
|
| 68 | + */ |
|
| 62 | 69 | public function filter(); |
| 63 | 70 | |
| 71 | + /** |
|
| 72 | + * @return void |
|
| 73 | + */ |
|
| 64 | 74 | public function bulkDelete(): void; |
| 65 | 75 | } |
@@ -17,27 +17,37 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function specifyFilterDateFrom(string $dateTime); |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function specifyFilterDateTo(string $dateTime); |
| 23 | 29 | |
| 24 | 30 | /** |
| 25 | 31 | * @param string $channelName |
| 32 | + * @return void |
|
| 26 | 33 | */ |
| 27 | 34 | public function chooseChannelFilter($channelName); |
| 28 | 35 | |
| 29 | 36 | /** |
| 30 | 37 | * @param string $currencyName |
| 38 | + * @return void |
|
| 31 | 39 | */ |
| 32 | 40 | public function chooseCurrencyFilter($currencyName); |
| 33 | 41 | |
| 34 | 42 | /** |
| 35 | 43 | * @param string $total |
| 44 | + * @return void |
|
| 36 | 45 | */ |
| 37 | 46 | public function specifyFilterTotalGreaterThan($total); |
| 38 | 47 | |
| 39 | 48 | /** |
| 40 | 49 | * @param string $total |
| 50 | + * @return void |
|
| 41 | 51 | */ |
| 42 | 52 | public function specifyFilterTotalLessThan($total); |
| 43 | 53 | } |
@@ -20,6 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $customerName |
| 23 | + * @return boolean |
|
| 23 | 24 | */ |
| 24 | 25 | public function hasCustomer($customerName); |
| 25 | 26 | |
@@ -54,6 +55,7 @@ discard block |
||
| 54 | 55 | |
| 55 | 56 | /** |
| 56 | 57 | * @param string $code |
| 58 | + * @return void |
|
| 57 | 59 | */ |
| 58 | 60 | public function specifyTrackingCode($code); |
| 59 | 61 | |
@@ -62,6 +64,9 @@ discard block |
||
| 62 | 64 | */ |
| 63 | 65 | public function canShipOrder(OrderInterface $order); |
| 64 | 66 | |
| 67 | + /** |
|
| 68 | + * @return void |
|
| 69 | + */ |
|
| 65 | 70 | public function shipOrder(OrderInterface $order); |
| 66 | 71 | |
| 67 | 72 | /** |
@@ -76,8 +81,14 @@ discard block |
||
| 76 | 81 | */ |
| 77 | 82 | public function canCompleteOrderLastPayment(OrderInterface $order); |
| 78 | 83 | |
| 84 | + /** |
|
| 85 | + * @return void |
|
| 86 | + */ |
|
| 79 | 87 | public function completeOrderLastPayment(OrderInterface $order); |
| 80 | 88 | |
| 89 | + /** |
|
| 90 | + * @return void |
|
| 91 | + */ |
|
| 81 | 92 | public function refundOrderLastPayment(OrderInterface $order); |
| 82 | 93 | |
| 83 | 94 | /** |
@@ -231,8 +242,14 @@ discard block |
||
| 231 | 242 | */ |
| 232 | 243 | public function getShippingState(); |
| 233 | 244 | |
| 245 | + /** |
|
| 246 | + * @return void |
|
| 247 | + */ |
|
| 234 | 248 | public function cancelOrder(); |
| 235 | 249 | |
| 250 | + /** |
|
| 251 | + * @return void |
|
| 252 | + */ |
|
| 236 | 253 | public function deleteOrder(); |
| 237 | 254 | |
| 238 | 255 | /** |
@@ -18,8 +18,14 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function specifyShippingAddress(AddressInterface $address); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function specifyBillingAddress(AddressInterface $address); |
| 24 | 30 | |
| 25 | 31 | /** |
@@ -21,39 +21,46 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * @param string $channelName |
| 23 | 23 | * @param int $price |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function specifyPrice($channelName, $price); |
| 26 | 27 | |
| 27 | 28 | /** |
| 28 | 29 | * @param string $channelName |
| 29 | 30 | * @param int $originalPrice |
| 31 | + * @return void |
|
| 30 | 32 | */ |
| 31 | 33 | public function specifyOriginalPrice($channelName, $originalPrice); |
| 32 | 34 | |
| 33 | 35 | /** |
| 34 | 36 | * @param string $name |
| 37 | + * @return void |
|
| 35 | 38 | */ |
| 36 | 39 | public function choosePricingCalculator($name); |
| 37 | 40 | |
| 38 | 41 | /** |
| 39 | 42 | * @param string $channelName |
| 43 | + * @return void |
|
| 40 | 44 | */ |
| 41 | 45 | public function checkChannel($channelName); |
| 42 | 46 | |
| 43 | 47 | /** |
| 44 | 48 | * @param string $code |
| 49 | + * @return void |
|
| 45 | 50 | */ |
| 46 | 51 | public function specifyCode($code); |
| 47 | 52 | |
| 48 | 53 | /** |
| 49 | 54 | * @param string $name |
| 50 | 55 | * @param string $localeCode |
| 56 | + * @return void |
|
| 51 | 57 | */ |
| 52 | 58 | public function nameItIn($name, $localeCode); |
| 53 | 59 | |
| 54 | 60 | /** |
| 55 | 61 | * @param string $slug |
| 56 | 62 | * @param string $locale |
| 63 | + * @return void |
|
| 57 | 64 | */ |
| 58 | 65 | public function specifySlugIn($slug, $locale); |
| 59 | 66 | |
@@ -61,6 +68,7 @@ discard block |
||
| 61 | 68 | * @param string $attributeName |
| 62 | 69 | * @param string $value |
| 63 | 70 | * @param string $localeCode |
| 71 | + * @return void |
|
| 64 | 72 | */ |
| 65 | 73 | public function addAttribute($attributeName, $value, $localeCode); |
| 66 | 74 | |
@@ -75,37 +83,44 @@ discard block |
||
| 75 | 83 | /** |
| 76 | 84 | * @param string $attributeName |
| 77 | 85 | * @param string $localeCode |
| 86 | + * @return void |
|
| 78 | 87 | */ |
| 79 | 88 | public function removeAttribute($attributeName, $localeCode); |
| 80 | 89 | |
| 81 | 90 | /** |
| 82 | 91 | * @param string $path |
| 83 | 92 | * @param string $type |
| 93 | + * @return void |
|
| 84 | 94 | */ |
| 85 | 95 | public function attachImage($path, $type = null); |
| 86 | 96 | |
| 87 | 97 | /** |
| 88 | 98 | * @param string[] $productsNames |
| 99 | + * @return void |
|
| 89 | 100 | */ |
| 90 | 101 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames); |
| 91 | 102 | |
| 92 | 103 | /** |
| 93 | 104 | * @param string $productName |
| 105 | + * @return void |
|
| 94 | 106 | */ |
| 95 | 107 | public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType); |
| 96 | 108 | |
| 97 | 109 | /** |
| 98 | 110 | * @param string $locale |
| 111 | + * @return void |
|
| 99 | 112 | */ |
| 100 | 113 | public function activateLanguageTab($locale); |
| 101 | 114 | |
| 102 | 115 | /** |
| 103 | 116 | * @param string $shippingCategoryName |
| 117 | + * @return void |
|
| 104 | 118 | */ |
| 105 | 119 | public function selectShippingCategory($shippingCategoryName); |
| 106 | 120 | |
| 107 | 121 | /** |
| 108 | 122 | * @param bool $isShippingRequired |
| 123 | + * @return void |
|
| 109 | 124 | */ |
| 110 | 125 | public function setShippingRequired($isShippingRequired); |
| 111 | 126 | } |
@@ -26,6 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @param string $name |
| 28 | 28 | * @param string $localeCode |
| 29 | + * @return void |
|
| 29 | 30 | */ |
| 30 | 31 | public function nameItIn($name, $localeCode); |
| 31 | 32 | |
@@ -46,10 +47,14 @@ discard block |
||
| 46 | 47 | */ |
| 47 | 48 | public function isMainTaxonChosen($taxonName); |
| 48 | 49 | |
| 50 | + /** |
|
| 51 | + * @return void |
|
| 52 | + */ |
|
| 49 | 53 | public function selectMainTaxon(TaxonInterface $taxon); |
| 50 | 54 | |
| 51 | 55 | /** |
| 52 | 56 | * @param string $channelName |
| 57 | + * @return void |
|
| 53 | 58 | */ |
| 54 | 59 | public function checkChannel($channelName); |
| 55 | 60 | |
@@ -63,24 +68,31 @@ discard block |
||
| 63 | 68 | /** |
| 64 | 69 | * @param string $path |
| 65 | 70 | * @param string $type |
| 71 | + * @return void |
|
| 66 | 72 | */ |
| 67 | 73 | public function attachImage($path, $type = null); |
| 68 | 74 | |
| 69 | 75 | /** |
| 70 | 76 | * @param string $type |
| 71 | 77 | * @param string $path |
| 78 | + * @return void |
|
| 72 | 79 | */ |
| 73 | 80 | public function changeImageWithType($type, $path); |
| 74 | 81 | |
| 75 | 82 | /** |
| 76 | 83 | * @param string $type |
| 84 | + * @return void |
|
| 77 | 85 | */ |
| 78 | 86 | public function removeImageWithType($type); |
| 79 | 87 | |
| 88 | + /** |
|
| 89 | + * @return void |
|
| 90 | + */ |
|
| 80 | 91 | public function removeFirstImage(); |
| 81 | 92 | |
| 82 | 93 | /** |
| 83 | 94 | * @param string $type |
| 95 | + * @return void |
|
| 84 | 96 | */ |
| 85 | 97 | public function modifyFirstImageType($type); |
| 86 | 98 | |