mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 12:16: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:
Łukasz Uznański 2021-11-17 13:14:43 +01:00 committed by GitHub
parent 02e3633756
commit f0127b3b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 10 deletions

View file

@ -16,7 +16,7 @@ class TeaController extends ActionController
/**
* @var TeaRepository
*/
private $teaRepository = null;
private $teaRepository;
public function injectTeaRepository(TeaRepository $teaRepository): void
{

View file

@ -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
{

View file

@ -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
{

View file

@ -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
{

View file

@ -17,7 +17,7 @@ class TeaTest extends UnitTestCase
/**
* @var Tea
*/
private $subject = null;
private $subject;
protected function setUp(): void
{

View file

@ -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
{

View file

@ -1,4 +1,5 @@
<?php
$EM_CONF[$_EXTKEY] = [
'title' => 'Tea example',
'description' => 'Example extension for unit testing and best practices',

View file

@ -1,4 +1,5 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');
(static function () {