mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-09 23:56:14 +01:00
[CLEANUP] Drop closing PHP tags and do some more minor cleanup.
This commit is contained in:
parent
4f245f1944
commit
f8a77f270f
23 changed files with 44 additions and 67 deletions
|
@ -73,5 +73,4 @@ class TestimonialController extends ActionController {
|
||||||
public function setView(ViewInterface $view) {
|
public function setView(ViewInterface $view) {
|
||||||
$this->view = $view;
|
$this->view = $view;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -52,5 +52,4 @@ class Addition extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
|
||||||
public function setTitle($title) {
|
public function setTitle($title) {
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -180,6 +180,4 @@ class TeaBeverage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
public function removeTestimonial(\OliverKlee\Tea\Domain\Model\Testimonial $testimonialToRemove) {
|
public function removeTestimonial(\OliverKlee\Tea\Domain\Model\Testimonial $testimonialToRemove) {
|
||||||
$this->testimonials->detach($testimonialToRemove);
|
$this->testimonials->detach($testimonialToRemove);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
?>
|
|
|
@ -80,5 +80,4 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
public function isCaffeinated() {
|
public function isCaffeinated() {
|
||||||
return $this->getCaffeinated();
|
return $this->getCaffeinated();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -93,5 +93,4 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
public function setText($text) {
|
public function setText($text) {
|
||||||
$this->text = $text;
|
$this->text = $text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -31,5 +31,4 @@ namespace OliverKlee\Tea\Domain\Repository;
|
||||||
* @author Oliver Klee <typo3-coding@oliverklee.de>
|
* @author Oliver Klee <typo3-coding@oliverklee.de>
|
||||||
*/
|
*/
|
||||||
class TeaBeverageRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
|
class TeaBeverageRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -31,5 +31,4 @@ namespace OliverKlee\Tea\Domain\Repository;
|
||||||
* @author Oliver Klee <typo3-coding@oliverklee.de>
|
* @author Oliver Klee <typo3-coding@oliverklee.de>
|
||||||
*/
|
*/
|
||||||
class TestimonialRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
|
class TestimonialRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -103,5 +103,4 @@ $TCA['tx_tea_domain_model_addition'] = array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
?>
|
|
|
@ -166,5 +166,4 @@ $TCA['tx_tea_domain_model_teabeverage'] = array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
?>
|
|
|
@ -111,5 +111,4 @@ $TCA['tx_tea_domain_model_teatype'] = array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
?>
|
|
|
@ -130,5 +130,4 @@ $TCA['tx_tea_domain_model_testimonial'] = array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
?>
|
|
|
@ -1,4 +1,4 @@
|
||||||
Tea example
|
Tea example
|
||||||
===========
|
===========
|
||||||
|
|
||||||
This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.
|
This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.
|
||||||
|
|
|
@ -40,7 +40,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
|
||||||
/**
|
/**
|
||||||
* @var TestimonialController
|
* @var TestimonialController
|
||||||
*/
|
*/
|
||||||
protected $subject;
|
protected $subject = NULL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ViewInterface
|
* @var ViewInterface
|
||||||
|
@ -87,5 +87,4 @@ class TestimonialControllerTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
|
||||||
|
|
||||||
$this->subject->indexAction();
|
$this->subject->indexAction();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -1,29 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
namespace OliverKlee\Tea\Tests;
|
namespace OliverKlee\Tea\Tests;
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* Copyright notice
|
* Copyright notice
|
||||||
*
|
*
|
||||||
* (c) 2013 Oliver Klee <typo3-coding@oliverklee.de>, oliverklee.de
|
* (c) 2013 Oliver Klee <typo3-coding@oliverklee.de>, oliverklee.de
|
||||||
*
|
*
|
||||||
* All rights reserved
|
* All rights reserved
|
||||||
*
|
*
|
||||||
* This script is part of the TYPO3 project. The TYPO3 project is
|
* This script is part of the TYPO3 project. The TYPO3 project is
|
||||||
* free software; you can redistribute it and/or modify
|
* free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* The GNU General Public License can be found at
|
* The GNU General Public License can be found at
|
||||||
* http://www.gnu.org/copyleft/gpl.html.
|
* http://www.gnu.org/copyleft/gpl.html.
|
||||||
*
|
*
|
||||||
* This script is distributed in the hope that it will be useful,
|
* This script is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* This copyright notice MUST APPEAR in all copies of the script!
|
* This copyright notice MUST APPEAR in all copies of the script!
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test case.
|
* Test case.
|
||||||
|
@ -65,5 +65,4 @@ class AdditionTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
$this->subject->getTitle()
|
$this->subject->getTitle()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -195,5 +195,4 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
$this->subject->getTestimonials()->contains($newItem)
|
$this->subject->getTestimonials()->contains($newItem)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -86,5 +86,4 @@ class TeaTypeTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
$this->subject->getCaffeinated()
|
$this->subject->getCaffeinated()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -109,5 +109,4 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
$this->subject->getText()
|
$this->subject->getText()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -59,5 +59,4 @@ class TeaBeverageRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
|
||||||
$this->subject
|
$this->subject
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -59,5 +59,4 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
|
||||||
$this->subject
|
$this->subject
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -40,5 +40,3 @@ $EM_CONF[$_EXTKEY] = array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
?>
|
|
|
@ -15,4 +15,3 @@ if (!defined('TYPO3_MODE')) {
|
||||||
'Testimonial' => 'index',
|
'Testimonial' => 'index',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
|
|
@ -134,4 +134,3 @@ $TCA['tx_tea_domain_model_testimonial'] = array(
|
||||||
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_testimonial.gif'
|
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_testimonial.gif'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
?>
|
|
|
@ -169,4 +169,4 @@ CREATE TABLE tx_tea_teabeverage_addition_mm (
|
||||||
|
|
||||||
KEY uid_local (uid_local),
|
KEY uid_local (uid_local),
|
||||||
KEY uid_foreign (uid_foreign)
|
KEY uid_foreign (uid_foreign)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue