mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 18:06:10 +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
|
||||
*/
|
||||
private $teaRepository = null;
|
||||
private $teaRepository;
|
||||
|
||||
public function injectTeaRepository(TeaRepository $teaRepository): void
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ class Tea extends AbstractEntity
|
|||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference|null
|
||||
* @Lazy
|
||||
*/
|
||||
protected $image = null;
|
||||
protected $image;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
|
|
|
@ -25,12 +25,12 @@ class TeaRepositoryTest extends FunctionalTestCase
|
|||
/**
|
||||
* @var TeaRepository
|
||||
*/
|
||||
private $subject = null;
|
||||
private $subject;
|
||||
|
||||
/**
|
||||
* @var PersistenceManager
|
||||
*/
|
||||
private $persistenceManager = null;
|
||||
private $persistenceManager;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -22,17 +22,17 @@ class TeaControllerTest extends UnitTestCase
|
|||
/**
|
||||
* @var TeaController
|
||||
*/
|
||||
private $subject = null;
|
||||
private $subject;
|
||||
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
private $viewProphecy = null;
|
||||
private $viewProphecy;
|
||||
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
private $teaRepositoryProphecy = null;
|
||||
private $teaRepositoryProphecy;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ class TeaTest extends UnitTestCase
|
|||
/**
|
||||
* @var Tea
|
||||
*/
|
||||
private $subject = null;
|
||||
private $subject;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -18,12 +18,12 @@ class TeaRepositoryTest extends UnitTestCase
|
|||
/**
|
||||
* @var TeaRepository
|
||||
*/
|
||||
private $subject = null;
|
||||
private $subject;
|
||||
|
||||
/**
|
||||
* @var ObjectManagerInterface&ProphecySubjectInterface
|
||||
*/
|
||||
protected $objectManager = null;
|
||||
protected $objectManager;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
$EM_CONF[$_EXTKEY] = [
|
||||
'title' => 'Tea example',
|
||||
'description' => 'Example extension for unit testing and best practices',
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
defined('TYPO3_MODE') or die('Access denied.');
|
||||
|
||||
(static function () {
|
||||
|
|
Loading…
Reference in a new issue