mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 13:36:13 +01:00
[CLEANUP] Lowercase null, false and true
This commit is contained in:
parent
2595b63847
commit
e286cfd8a2
11 changed files with 19 additions and 19 deletions
|
@ -27,7 +27,7 @@ class TestimonialController extends ActionController {
|
|||
/**
|
||||
* @var \OliverKlee\Tea\Domain\Repository\TestimonialRepository
|
||||
*/
|
||||
protected $testimonialRepository = NULL;
|
||||
protected $testimonialRepository = null;
|
||||
|
||||
/**
|
||||
* Injects the TestimonialRepository.
|
||||
|
|
|
@ -29,19 +29,19 @@ class TeaBeverage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
|||
* @var \OliverKlee\Tea\Domain\Model\TeaType
|
||||
* @lazy
|
||||
*/
|
||||
protected $type = NULL;
|
||||
protected $type = null;
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverKlee\Tea\Domain\Model\Addition>
|
||||
* @lazy
|
||||
*/
|
||||
protected $additions = NULL;
|
||||
protected $additions = null;
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverKlee\Tea\Domain\Model\Testimonial>
|
||||
* @lazy
|
||||
*/
|
||||
protected $testimonials = NULL;
|
||||
protected $testimonials = null;
|
||||
|
||||
/**
|
||||
* The constructor.
|
||||
|
|
|
@ -29,7 +29,7 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
|||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $caffeinated = FALSE;
|
||||
protected $caffeinated = false;
|
||||
|
||||
/**
|
||||
* @return string $title
|
||||
|
|
|
@ -23,7 +23,7 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
|||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $dateOfPosting = NULL;
|
||||
protected $dateOfPosting = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
|
|
|
@ -28,17 +28,17 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var TestimonialController
|
||||
*/
|
||||
protected $subject = NULL;
|
||||
protected $subject = null;
|
||||
|
||||
/**
|
||||
* @var ViewInterface|\PHPUnit_Framework_MockObject_MockObject
|
||||
*/
|
||||
protected $view = NULL;
|
||||
protected $view = null;
|
||||
|
||||
/**
|
||||
* @var TestimonialRepository|\PHPUnit_Framework_MockObject_MockObject
|
||||
*/
|
||||
protected $testimonialRepository = NULL;
|
||||
protected $testimonialRepository = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->subject = new TestimonialController();
|
||||
|
@ -47,7 +47,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
$this->subject->setView($this->view);
|
||||
|
||||
$this->testimonialRepository = $this->getMock(
|
||||
'OliverKlee\\Tea\\Domain\\Repository\\TestimonialRepository', array(), array(), '', FALSE
|
||||
'OliverKlee\\Tea\\Domain\\Repository\\TestimonialRepository', array(), array(), '', false
|
||||
);
|
||||
$this->subject->injectTestimonialRepository($this->testimonialRepository);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class AdditionTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var \OliverKlee\Tea\Domain\Model\Addition
|
||||
*/
|
||||
protected $subject = NULL;
|
||||
protected $subject = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->subject = new \OliverKlee\Tea\Domain\Model\Addition();
|
||||
|
|
|
@ -25,7 +25,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var \OliverKlee\Tea\Domain\Model\TeaBeverage
|
||||
*/
|
||||
protected $subject = NULL;
|
||||
protected $subject = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaBeverage();
|
||||
|
|
|
@ -23,7 +23,7 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var \OliverKlee\Tea\Domain\Model\TeaType
|
||||
*/
|
||||
protected $subject = NULL;
|
||||
protected $subject = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaType();
|
||||
|
@ -56,7 +56,7 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
*/
|
||||
public function getCaffeinatedInitiallyReturnsFalse() {
|
||||
self::assertSame(
|
||||
FALSE,
|
||||
false,
|
||||
$this->subject->getCaffeinated()
|
||||
);
|
||||
}
|
||||
|
@ -65,9 +65,9 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
* @test
|
||||
*/
|
||||
public function setCaffeinatedSetsCaffeinated() {
|
||||
$this->subject->setCaffeinated(TRUE);
|
||||
$this->subject->setCaffeinated(true);
|
||||
self::assertSame(
|
||||
TRUE,
|
||||
true,
|
||||
$this->subject->getCaffeinated()
|
||||
);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class TestimonialTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var \OliverKlee\Tea\Domain\Model\Testimonial
|
||||
*/
|
||||
protected $subject = NULL;
|
||||
protected $subject = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->subject = new \OliverKlee\Tea\Domain\Model\Testimonial();
|
||||
|
|
|
@ -28,7 +28,7 @@ class TeaBeverageRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
|
||||
*/
|
||||
protected $objectManager = NULL;
|
||||
protected $objectManager = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
|
||||
|
|
|
@ -28,7 +28,7 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
|||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
|
||||
*/
|
||||
protected $objectManager = NULL;
|
||||
protected $objectManager = null;
|
||||
|
||||
protected function setUp() {
|
||||
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
|
||||
|
|
Loading…
Reference in a new issue