mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-12 23:36:13 +01:00
[TASK] Fix php cs related to official configuration (#341)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
02e3633756
commit
f0127b3b64
8 changed files with 12 additions and 10 deletions
|
@ -16,7 +16,7 @@ class TeaController extends ActionController
|
||||||
/**
|
/**
|
||||||
* @var TeaRepository
|
* @var TeaRepository
|
||||||
*/
|
*/
|
||||||
private $teaRepository = null;
|
private $teaRepository;
|
||||||
|
|
||||||
public function injectTeaRepository(TeaRepository $teaRepository): void
|
public function injectTeaRepository(TeaRepository $teaRepository): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,7 @@ class Tea extends AbstractEntity
|
||||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference|null
|
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference|null
|
||||||
* @Lazy
|
* @Lazy
|
||||||
*/
|
*/
|
||||||
protected $image = null;
|
protected $image;
|
||||||
|
|
||||||
public function getTitle(): string
|
public function getTitle(): string
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,12 +25,12 @@ class TeaRepositoryTest extends FunctionalTestCase
|
||||||
/**
|
/**
|
||||||
* @var TeaRepository
|
* @var TeaRepository
|
||||||
*/
|
*/
|
||||||
private $subject = null;
|
private $subject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var PersistenceManager
|
* @var PersistenceManager
|
||||||
*/
|
*/
|
||||||
private $persistenceManager = null;
|
private $persistenceManager;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,17 +22,17 @@ class TeaControllerTest extends UnitTestCase
|
||||||
/**
|
/**
|
||||||
* @var TeaController
|
* @var TeaController
|
||||||
*/
|
*/
|
||||||
private $subject = null;
|
private $subject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ObjectProphecy
|
* @var ObjectProphecy
|
||||||
*/
|
*/
|
||||||
private $viewProphecy = null;
|
private $viewProphecy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ObjectProphecy
|
* @var ObjectProphecy
|
||||||
*/
|
*/
|
||||||
private $teaRepositoryProphecy = null;
|
private $teaRepositoryProphecy;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ class TeaTest extends UnitTestCase
|
||||||
/**
|
/**
|
||||||
* @var Tea
|
* @var Tea
|
||||||
*/
|
*/
|
||||||
private $subject = null;
|
private $subject;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,12 +18,12 @@ class TeaRepositoryTest extends UnitTestCase
|
||||||
/**
|
/**
|
||||||
* @var TeaRepository
|
* @var TeaRepository
|
||||||
*/
|
*/
|
||||||
private $subject = null;
|
private $subject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ObjectManagerInterface&ProphecySubjectInterface
|
* @var ObjectManagerInterface&ProphecySubjectInterface
|
||||||
*/
|
*/
|
||||||
protected $objectManager = null;
|
protected $objectManager;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$EM_CONF[$_EXTKEY] = [
|
$EM_CONF[$_EXTKEY] = [
|
||||||
'title' => 'Tea example',
|
'title' => 'Tea example',
|
||||||
'description' => 'Example extension for unit testing and best practices',
|
'description' => 'Example extension for unit testing and best practices',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
defined('TYPO3_MODE') or die('Access denied.');
|
defined('TYPO3_MODE') or die('Access denied.');
|
||||||
|
|
||||||
(static function () {
|
(static function () {
|
||||||
|
|
Loading…
Reference in a new issue