@@ -9,89 +9,89 @@ |
||
9 | 9 | */ |
10 | 10 | class Product extends AbstractModel |
11 | 11 | { |
12 | - /** |
|
13 | - * Title |
|
14 | - * |
|
15 | - * @var string |
|
16 | - * @db |
|
17 | - * @validate NotEmpty |
|
18 | - */ |
|
19 | - protected $title; |
|
12 | + /** |
|
13 | + * Title |
|
14 | + * |
|
15 | + * @var string |
|
16 | + * @db |
|
17 | + * @validate NotEmpty |
|
18 | + */ |
|
19 | + protected $title; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Description |
|
23 | - * |
|
24 | - * @var string |
|
25 | - * @db |
|
26 | - * @enableRichText |
|
27 | - */ |
|
28 | - protected $description; |
|
21 | + /** |
|
22 | + * Description |
|
23 | + * |
|
24 | + * @var string |
|
25 | + * @db |
|
26 | + * @enableRichText |
|
27 | + */ |
|
28 | + protected $description; |
|
29 | 29 | |
30 | - /** |
|
31 | - * Media |
|
32 | - * |
|
33 | - * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> |
|
34 | - * @db |
|
35 | - */ |
|
36 | - protected $media; |
|
30 | + /** |
|
31 | + * Media |
|
32 | + * |
|
33 | + * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> |
|
34 | + * @db |
|
35 | + */ |
|
36 | + protected $media; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Get title |
|
40 | - * |
|
41 | - * @return string |
|
42 | - */ |
|
43 | - public function getTitle() |
|
44 | - { |
|
45 | - return $this->title; |
|
46 | - } |
|
38 | + /** |
|
39 | + * Get title |
|
40 | + * |
|
41 | + * @return string |
|
42 | + */ |
|
43 | + public function getTitle() |
|
44 | + { |
|
45 | + return $this->title; |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * Set title |
|
50 | - * |
|
51 | - * @param string $title |
|
52 | - */ |
|
53 | - public function setTitle($title) |
|
54 | - { |
|
55 | - $this->title = $title; |
|
56 | - } |
|
48 | + /** |
|
49 | + * Set title |
|
50 | + * |
|
51 | + * @param string $title |
|
52 | + */ |
|
53 | + public function setTitle($title) |
|
54 | + { |
|
55 | + $this->title = $title; |
|
56 | + } |
|
57 | 57 | |
58 | - /** |
|
59 | - * Get description |
|
60 | - * |
|
61 | - * @return string |
|
62 | - */ |
|
63 | - public function getDescription() |
|
64 | - { |
|
65 | - return $this->description; |
|
66 | - } |
|
58 | + /** |
|
59 | + * Get description |
|
60 | + * |
|
61 | + * @return string |
|
62 | + */ |
|
63 | + public function getDescription() |
|
64 | + { |
|
65 | + return $this->description; |
|
66 | + } |
|
67 | 67 | |
68 | - /** |
|
69 | - * Set description |
|
70 | - * |
|
71 | - * @param string $description |
|
72 | - */ |
|
73 | - public function setDescription($description) |
|
74 | - { |
|
75 | - $this->description = $description; |
|
76 | - } |
|
68 | + /** |
|
69 | + * Set description |
|
70 | + * |
|
71 | + * @param string $description |
|
72 | + */ |
|
73 | + public function setDescription($description) |
|
74 | + { |
|
75 | + $this->description = $description; |
|
76 | + } |
|
77 | 77 | |
78 | - /** |
|
79 | - * Get media |
|
80 | - * |
|
81 | - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage |
|
82 | - */ |
|
83 | - public function getMedia() |
|
84 | - { |
|
85 | - return $this->media; |
|
86 | - } |
|
78 | + /** |
|
79 | + * Get media |
|
80 | + * |
|
81 | + * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage |
|
82 | + */ |
|
83 | + public function getMedia() |
|
84 | + { |
|
85 | + return $this->media; |
|
86 | + } |
|
87 | 87 | |
88 | - /** |
|
89 | - * Set media |
|
90 | - * |
|
91 | - * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $media |
|
92 | - */ |
|
93 | - public function setMedia($media) |
|
94 | - { |
|
95 | - $this->media = $media; |
|
96 | - } |
|
88 | + /** |
|
89 | + * Set media |
|
90 | + * |
|
91 | + * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $media |
|
92 | + */ |
|
93 | + public function setMedia($media) |
|
94 | + { |
|
95 | + $this->media = $media; |
|
96 | + } |
|
97 | 97 | } |
@@ -15,60 +15,60 @@ |
||
15 | 15 | class Voucher extends AbstractModel |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * Code |
|
20 | - * |
|
21 | - * @var string |
|
22 | - * @db |
|
23 | - * @validate NotEmpty |
|
24 | - */ |
|
25 | - protected $code; |
|
18 | + /** |
|
19 | + * Code |
|
20 | + * |
|
21 | + * @var string |
|
22 | + * @db |
|
23 | + * @validate NotEmpty |
|
24 | + */ |
|
25 | + protected $code; |
|
26 | 26 | |
27 | - /** |
|
28 | - * Expires |
|
29 | - * |
|
30 | - * @var \DateTime |
|
31 | - * @db |
|
32 | - */ |
|
33 | - protected $expires; |
|
27 | + /** |
|
28 | + * Expires |
|
29 | + * |
|
30 | + * @var \DateTime |
|
31 | + * @db |
|
32 | + */ |
|
33 | + protected $expires; |
|
34 | 34 | |
35 | - /** |
|
36 | - * Get code |
|
37 | - * |
|
38 | - * @return string |
|
39 | - */ |
|
40 | - public function getCode() |
|
41 | - { |
|
42 | - return $this->code; |
|
43 | - } |
|
35 | + /** |
|
36 | + * Get code |
|
37 | + * |
|
38 | + * @return string |
|
39 | + */ |
|
40 | + public function getCode() |
|
41 | + { |
|
42 | + return $this->code; |
|
43 | + } |
|
44 | 44 | |
45 | - /** |
|
46 | - * Set code |
|
47 | - * |
|
48 | - * @param string $code |
|
49 | - */ |
|
50 | - public function setCode($code) |
|
51 | - { |
|
52 | - $this->code = $code; |
|
53 | - } |
|
45 | + /** |
|
46 | + * Set code |
|
47 | + * |
|
48 | + * @param string $code |
|
49 | + */ |
|
50 | + public function setCode($code) |
|
51 | + { |
|
52 | + $this->code = $code; |
|
53 | + } |
|
54 | 54 | |
55 | - /** |
|
56 | - * Get expires |
|
57 | - * |
|
58 | - * @return \DateTime |
|
59 | - */ |
|
60 | - public function getExpires() |
|
61 | - { |
|
62 | - return $this->expires; |
|
63 | - } |
|
55 | + /** |
|
56 | + * Get expires |
|
57 | + * |
|
58 | + * @return \DateTime |
|
59 | + */ |
|
60 | + public function getExpires() |
|
61 | + { |
|
62 | + return $this->expires; |
|
63 | + } |
|
64 | 64 | |
65 | - /** |
|
66 | - * Set expires |
|
67 | - * |
|
68 | - * @param \DateTime $expires |
|
69 | - */ |
|
70 | - public function setExpires($expires) |
|
71 | - { |
|
72 | - $this->expires = $expires; |
|
73 | - } |
|
65 | + /** |
|
66 | + * Set expires |
|
67 | + * |
|
68 | + * @param \DateTime $expires |
|
69 | + */ |
|
70 | + public function setExpires($expires) |
|
71 | + { |
|
72 | + $this->expires = $expires; |
|
73 | + } |
|
74 | 74 | } |
@@ -17,27 +17,27 @@ |
||
17 | 17 | class ComposerUtility |
18 | 18 | { |
19 | 19 | |
20 | - /** |
|
21 | - * @throws Exception |
|
22 | - */ |
|
23 | - public static function checkContribLibs() |
|
24 | - { |
|
25 | - // avoid diuble class |
|
26 | - static $done = false; |
|
27 | - if ($done === true) { |
|
28 | - return; |
|
29 | - } |
|
30 | - $done = true; |
|
20 | + /** |
|
21 | + * @throws Exception |
|
22 | + */ |
|
23 | + public static function checkContribLibs() |
|
24 | + { |
|
25 | + // avoid diuble class |
|
26 | + static $done = false; |
|
27 | + if ($done === true) { |
|
28 | + return; |
|
29 | + } |
|
30 | + $done = true; |
|
31 | 31 | |
32 | - // include libs loader |
|
33 | - $autoloaderFile = ExtensionManagementUtility::extPath( |
|
34 | - 'shopize', |
|
35 | - 'Resources/Private/Contrib/vendor/autoload.php' |
|
36 | - ); |
|
37 | - if (!is_file($autoloaderFile)) { |
|
38 | - throw new Exception('You have to run "cd typo3conf/ext/shopize/Resources/Private/Contrib/ && composer install"!', |
|
39 | - 12367812); |
|
40 | - } |
|
41 | - GeneralUtility::requireFile($autoloaderFile); |
|
42 | - } |
|
32 | + // include libs loader |
|
33 | + $autoloaderFile = ExtensionManagementUtility::extPath( |
|
34 | + 'shopize', |
|
35 | + 'Resources/Private/Contrib/vendor/autoload.php' |
|
36 | + ); |
|
37 | + if (!is_file($autoloaderFile)) { |
|
38 | + throw new Exception('You have to run "cd typo3conf/ext/shopize/Resources/Private/Contrib/ && composer install"!', |
|
39 | + 12367812); |
|
40 | + } |
|
41 | + GeneralUtility::requireFile($autoloaderFile); |
|
42 | + } |
|
43 | 43 | } |
@@ -17,56 +17,56 @@ |
||
17 | 17 | class CheckoutController extends AbstractController |
18 | 18 | { |
19 | 19 | |
20 | - /** |
|
21 | - * Payment service |
|
22 | - * |
|
23 | - * @var \FRUIT\Shopize\Service\PaymentService |
|
24 | - * @inject |
|
25 | - */ |
|
26 | - protected $paymentService; |
|
20 | + /** |
|
21 | + * Payment service |
|
22 | + * |
|
23 | + * @var \FRUIT\Shopize\Service\PaymentService |
|
24 | + * @inject |
|
25 | + */ |
|
26 | + protected $paymentService; |
|
27 | 27 | |
28 | - /** |
|
29 | - * Billing action |
|
30 | - */ |
|
31 | - public function billingAction() |
|
32 | - { |
|
33 | - } |
|
28 | + /** |
|
29 | + * Billing action |
|
30 | + */ |
|
31 | + public function billingAction() |
|
32 | + { |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * Shipment action |
|
37 | - */ |
|
38 | - public function shipmentAction() |
|
39 | - { |
|
40 | - } |
|
35 | + /** |
|
36 | + * Shipment action |
|
37 | + */ |
|
38 | + public function shipmentAction() |
|
39 | + { |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Payment action |
|
44 | - */ |
|
45 | - public function paymentAction() |
|
46 | - { |
|
47 | - $this->view->assign('paymentPossibilities', $this->paymentService->getPaymentPossibilities()); |
|
48 | - } |
|
42 | + /** |
|
43 | + * Payment action |
|
44 | + */ |
|
45 | + public function paymentAction() |
|
46 | + { |
|
47 | + $this->view->assign('paymentPossibilities', $this->paymentService->getPaymentPossibilities()); |
|
48 | + } |
|
49 | 49 | |
50 | - /** |
|
51 | - * Confirm action |
|
52 | - */ |
|
53 | - public function confirmAction() |
|
54 | - { |
|
55 | - } |
|
50 | + /** |
|
51 | + * Confirm action |
|
52 | + */ |
|
53 | + public function confirmAction() |
|
54 | + { |
|
55 | + } |
|
56 | 56 | |
57 | - /** |
|
58 | - * Check action |
|
59 | - */ |
|
60 | - public function checkAction() |
|
61 | - { |
|
62 | - // @todo run checks here |
|
63 | - $this->forward('finish'); |
|
64 | - } |
|
57 | + /** |
|
58 | + * Check action |
|
59 | + */ |
|
60 | + public function checkAction() |
|
61 | + { |
|
62 | + // @todo run checks here |
|
63 | + $this->forward('finish'); |
|
64 | + } |
|
65 | 65 | |
66 | - /** |
|
67 | - * Finish action |
|
68 | - */ |
|
69 | - public function finishAction() |
|
70 | - { |
|
71 | - } |
|
66 | + /** |
|
67 | + * Finish action |
|
68 | + */ |
|
69 | + public function finishAction() |
|
70 | + { |
|
71 | + } |
|
72 | 72 | } |
@@ -15,29 +15,29 @@ |
||
15 | 15 | class ProductController extends AbstractController |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * Product repository |
|
20 | - * |
|
21 | - * @var \FRUIT\Shopize\Domain\Repository\ProductRepository |
|
22 | - * @inject |
|
23 | - */ |
|
24 | - protected $productRepository; |
|
18 | + /** |
|
19 | + * Product repository |
|
20 | + * |
|
21 | + * @var \FRUIT\Shopize\Domain\Repository\ProductRepository |
|
22 | + * @inject |
|
23 | + */ |
|
24 | + protected $productRepository; |
|
25 | 25 | |
26 | - /** |
|
27 | - * List action |
|
28 | - */ |
|
29 | - public function listAction() |
|
30 | - { |
|
31 | - $this->view->assign('products', $this->productRepository->findAll()); |
|
32 | - } |
|
26 | + /** |
|
27 | + * List action |
|
28 | + */ |
|
29 | + public function listAction() |
|
30 | + { |
|
31 | + $this->view->assign('products', $this->productRepository->findAll()); |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * Detail action |
|
36 | - * |
|
37 | - * @param \FRUIT\Shopize\Domain\Model\Product $product |
|
38 | - */ |
|
39 | - public function detailAction(Product $product) |
|
40 | - { |
|
41 | - $this->view->assign('product', $product); |
|
42 | - } |
|
34 | + /** |
|
35 | + * Detail action |
|
36 | + * |
|
37 | + * @param \FRUIT\Shopize\Domain\Model\Product $product |
|
38 | + */ |
|
39 | + public function detailAction(Product $product) |
|
40 | + { |
|
41 | + $this->view->assign('product', $product); |
|
42 | + } |
|
43 | 43 | } |
@@ -16,28 +16,28 @@ |
||
16 | 16 | class PaymentService |
17 | 17 | { |
18 | 18 | |
19 | - /** |
|
20 | - * PaymentService constructor. |
|
21 | - */ |
|
22 | - public function __construct() |
|
23 | - { |
|
24 | - ComposerUtility::checkContribLibs(); |
|
19 | + /** |
|
20 | + * PaymentService constructor. |
|
21 | + */ |
|
22 | + public function __construct() |
|
23 | + { |
|
24 | + ComposerUtility::checkContribLibs(); |
|
25 | 25 | |
26 | - // @todo check SSL connection here and drop a error (disable for debugging) |
|
27 | - } |
|
26 | + // @todo check SSL connection here and drop a error (disable for debugging) |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * Get payment possibilities |
|
31 | - * |
|
32 | - * @return array |
|
33 | - */ |
|
34 | - public function getPaymentPossibilities() |
|
35 | - { |
|
36 | - $gatewayFactory = Omnipay::getFactory(); |
|
29 | + /** |
|
30 | + * Get payment possibilities |
|
31 | + * |
|
32 | + * @return array |
|
33 | + */ |
|
34 | + public function getPaymentPossibilities() |
|
35 | + { |
|
36 | + $gatewayFactory = Omnipay::getFactory(); |
|
37 | 37 | |
38 | - return [ |
|
39 | - $gatewayFactory->create('Dummy'), |
|
40 | - $gatewayFactory->create('PayPal_Express'), |
|
41 | - ]; |
|
42 | - } |
|
38 | + return [ |
|
39 | + $gatewayFactory->create('Dummy'), |
|
40 | + $gatewayFactory->create('PayPal_Express'), |
|
41 | + ]; |
|
42 | + } |
|
43 | 43 | } |