mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 06:36:12 +01:00

[CLEANUP] Drop closing PHP tags and do some more minor cleanup.

This commit is contained in:
Oliver Klee 2013-12-23 13:24:40 +01:00
parent 4f245f1944
commit f8a77f270f
23 changed files with 44 additions and 67 deletions

View file

@ -73,5 +73,4 @@ class TestimonialController extends ActionController {
public function setView(ViewInterface $view) {
$this->view = $view;
}
}
?>
}

View file

@ -52,5 +52,4 @@ class Addition extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject {
public function setTitle($title) {
$this->title = $title;
}
}
?>
}

View file

@ -180,6 +180,4 @@ class TeaBeverage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
public function removeTestimonial(\OliverKlee\Tea\Domain\Model\Testimonial $testimonialToRemove) {
$this->testimonials->detach($testimonialToRemove);
}
}
?>
}

View file

@ -80,5 +80,4 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
public function isCaffeinated() {
return $this->getCaffeinated();
}
}
?>
}

View file

@ -93,5 +93,4 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
public function setText($text) {
$this->text = $text;
}
}
?>
}

View file

@ -31,5 +31,4 @@ namespace OliverKlee\Tea\Domain\Repository;
* @author Oliver Klee <typo3-coding@oliverklee.de>
*/
class TeaBeverageRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
}
?>
}

View file

@ -31,5 +31,4 @@ namespace OliverKlee\Tea\Domain\Repository;
* @author Oliver Klee <typo3-coding@oliverklee.de>
*/
class TestimonialRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
}
?>
}

View file

@ -103,5 +103,4 @@ $TCA['tx_tea_domain_model_addition'] = array(
),
),
),
);
?>
);

View file

@ -166,5 +166,4 @@ $TCA['tx_tea_domain_model_teabeverage'] = array(
),
),
),
);
?>
);

View file

@ -111,5 +111,4 @@ $TCA['tx_tea_domain_model_teatype'] = array(
),
),
),
);
?>
);

View file

@ -130,5 +130,4 @@ $TCA['tx_tea_domain_model_testimonial'] = array(
),
),
),
);
?>
);

View file

@ -1,4 +1,4 @@
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.

View file

@ -40,7 +40,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
/**
* @var TestimonialController
*/
protected $subject;
protected $subject = NULL;
/**
* @var ViewInterface
@ -87,5 +87,4 @@ class TestimonialControllerTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
$this->subject->indexAction();
}
}
?>
}

View file

@ -1,29 +1,29 @@
<?php
namespace OliverKlee\Tea\Tests;
/***************************************************************
* Copyright notice
*
* (c) 2013 Oliver Klee <typo3-coding@oliverklee.de>, oliverklee.de
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/***************************************************************
* Copyright notice
*
* (c) 2013 Oliver Klee <typo3-coding@oliverklee.de>, oliverklee.de
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Test case.
@ -65,5 +65,4 @@ class AdditionTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
$this->subject->getTitle()
);
}
}
?>
}

View file

@ -195,5 +195,4 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
$this->subject->getTestimonials()->contains($newItem)
);
}
}
?>
}

View file

@ -86,5 +86,4 @@ class TeaTypeTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
$this->subject->getCaffeinated()
);
}
}
?>
}

View file

@ -109,5 +109,4 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
$this->subject->getText()
);
}
}
?>
}

View file

@ -59,5 +59,4 @@ class TeaBeverageRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
$this->subject
);
}
}
?>
}

View file

@ -59,5 +59,4 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCa
$this->subject
);
}
}
?>
}

View file

@ -40,5 +40,3 @@ $EM_CONF[$_EXTKEY] = array(
),
),
);
?>

View file

@ -15,4 +15,3 @@ if (!defined('TYPO3_MODE')) {
'Testimonial' => 'index',
)
);
?>

View file

@ -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'
),
);
?>

View file

@ -169,4 +169,4 @@ CREATE TABLE tx_tea_teabeverage_addition_mm (
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
);