@@ -15,52 +15,52 @@ |
||
| 15 | 15 | class Voucher extends AbstractModel |
| 16 | 16 | { |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Code |
|
| 20 | - * |
|
| 21 | - * @var string |
|
| 22 | - * @db |
|
| 23 | - */ |
|
| 24 | - protected $code; |
|
| 18 | + /** |
|
| 19 | + * Code |
|
| 20 | + * |
|
| 21 | + * @var string |
|
| 22 | + * @db |
|
| 23 | + */ |
|
| 24 | + protected $code; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Expires |
|
| 28 | - * |
|
| 29 | - * @var \DateTime |
|
| 30 | - * @db |
|
| 31 | - */ |
|
| 32 | - protected $expires; |
|
| 26 | + /** |
|
| 27 | + * Expires |
|
| 28 | + * |
|
| 29 | + * @var \DateTime |
|
| 30 | + * @db |
|
| 31 | + */ |
|
| 32 | + protected $expires; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * @return string |
|
| 36 | - */ |
|
| 37 | - public function getCode() |
|
| 38 | - { |
|
| 39 | - return $this->code; |
|
| 40 | - } |
|
| 34 | + /** |
|
| 35 | + * @return string |
|
| 36 | + */ |
|
| 37 | + public function getCode() |
|
| 38 | + { |
|
| 39 | + return $this->code; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * @param string $code |
|
| 44 | - */ |
|
| 45 | - public function setCode($code) |
|
| 46 | - { |
|
| 47 | - $this->code = $code; |
|
| 48 | - } |
|
| 42 | + /** |
|
| 43 | + * @param string $code |
|
| 44 | + */ |
|
| 45 | + public function setCode($code) |
|
| 46 | + { |
|
| 47 | + $this->code = $code; |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - /** |
|
| 51 | - * @return \DateTime |
|
| 52 | - */ |
|
| 53 | - public function getExpires() |
|
| 54 | - { |
|
| 55 | - return $this->expires; |
|
| 56 | - } |
|
| 50 | + /** |
|
| 51 | + * @return \DateTime |
|
| 52 | + */ |
|
| 53 | + public function getExpires() |
|
| 54 | + { |
|
| 55 | + return $this->expires; |
|
| 56 | + } |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * @param \DateTime $expires |
|
| 60 | - */ |
|
| 61 | - public function setExpires($expires) |
|
| 62 | - { |
|
| 63 | - $this->expires = $expires; |
|
| 64 | - } |
|
| 58 | + /** |
|
| 59 | + * @param \DateTime $expires |
|
| 60 | + */ |
|
| 61 | + public function setExpires($expires) |
|
| 62 | + { |
|
| 63 | + $this->expires = $expires; |
|
| 64 | + } |
|
| 65 | 65 | |
| 66 | 66 | } |
@@ -14,28 +14,28 @@ |
||
| 14 | 14 | class VoucherTest extends \TYPO3\CMS\Core\Tests\UnitTestCase |
| 15 | 15 | { |
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * @var Voucher |
|
| 19 | - */ |
|
| 20 | - protected $fileDomainModelInstance; |
|
| 17 | + /** |
|
| 18 | + * @var Voucher |
|
| 19 | + */ |
|
| 20 | + protected $fileDomainModelInstance; |
|
| 21 | 21 | |
| 22 | - /** |
|
| 23 | - * Setup |
|
| 24 | - * |
|
| 25 | - * @return void |
|
| 26 | - */ |
|
| 27 | - protected function setUp() |
|
| 28 | - { |
|
| 29 | - $this->fileDomainModelInstance = new Voucher(); |
|
| 30 | - } |
|
| 22 | + /** |
|
| 23 | + * Setup |
|
| 24 | + * |
|
| 25 | + * @return void |
|
| 26 | + */ |
|
| 27 | + protected function setUp() |
|
| 28 | + { |
|
| 29 | + $this->fileDomainModelInstance = new Voucher(); |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @test |
|
| 34 | - */ |
|
| 35 | - public function codeCanBeSet() |
|
| 36 | - { |
|
| 37 | - $code = 'a6g87fg0na98sdf'; |
|
| 38 | - $this->fileDomainModelInstance->setCode($code); |
|
| 39 | - $this->assertEquals($code, $this->fileDomainModelInstance->getCode()); |
|
| 40 | - } |
|
| 32 | + /** |
|
| 33 | + * @test |
|
| 34 | + */ |
|
| 35 | + public function codeCanBeSet() |
|
| 36 | + { |
|
| 37 | + $code = 'a6g87fg0na98sdf'; |
|
| 38 | + $this->fileDomainModelInstance->setCode($code); |
|
| 39 | + $this->assertEquals($code, $this->fileDomainModelInstance->getCode()); |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | $EM_CONF[$_EXTKEY] = array( |
| 11 | - 'title' => 'Shopize', |
|
| 12 | - 'description' => 'Create a structure for buyable tables/models and one plugin for the different output of shop views. The extension is shipped with one default product table, but the aim of the extension is to "shopize" every table/model. It is completely independent and configurable! Use your own models as product items in this shop. We need feedback about the concept! Development on https://github.com/lochmueller/shopize', |
|
| 13 | - 'category' => 'fe', |
|
| 14 | - 'version' => '0.1.0', |
|
| 15 | - 'state' => 'beta', |
|
| 16 | - 'clearcacheonload' => 1, |
|
| 17 | - 'author' => 'Tim Lochmüller', |
|
| 18 | - 'author_email' => '[email protected]', |
|
| 19 | - 'constraints' => array( |
|
| 20 | - 'depends' => array( |
|
| 21 | - 'typo3' => '6.2.0-8.1.99', |
|
| 22 | - 'autoloader' => '2.0.0-0.0.0', |
|
| 23 | - ), |
|
| 24 | - ), |
|
| 11 | + 'title' => 'Shopize', |
|
| 12 | + 'description' => 'Create a structure for buyable tables/models and one plugin for the different output of shop views. The extension is shipped with one default product table, but the aim of the extension is to "shopize" every table/model. It is completely independent and configurable! Use your own models as product items in this shop. We need feedback about the concept! Development on https://github.com/lochmueller/shopize', |
|
| 13 | + 'category' => 'fe', |
|
| 14 | + 'version' => '0.1.0', |
|
| 15 | + 'state' => 'beta', |
|
| 16 | + 'clearcacheonload' => 1, |
|
| 17 | + 'author' => 'Tim Lochmüller', |
|
| 18 | + 'author_email' => '[email protected]', |
|
| 19 | + 'constraints' => array( |
|
| 20 | + 'depends' => array( |
|
| 21 | + 'typo3' => '6.2.0-8.1.99', |
|
| 22 | + 'autoloader' => '2.0.0-0.0.0', |
|
| 23 | + ), |
|
| 24 | + ), |
|
| 25 | 25 | ); |