Skip to content

Commit

Permalink
[TASK] Add return type void to initializeArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Oct 9, 2024
1 parent a75309a commit 487f6c2
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 75 deletions.
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/Data/ImageInfoViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ class ImageInfoViewHelper extends AbstractViewHelper
'origFile_mtime' => 'origFile_mtime',
];

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
$this->registerArgument('src', 'string', 'Path to a file');
$this->registerArgument('property', 'string', 'Possible values: width, height, type, origFile, origFile_mtime');
Expand Down
5 changes: 1 addition & 4 deletions Classes/ViewHelpers/Data/ImageVariantsViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
*/
class ImageVariantsViewHelper extends AbstractViewHelper
{
/**
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('as', 'string', 'Name of variable to create.', true);
Expand Down
6 changes: 1 addition & 5 deletions Classes/ViewHelpers/Data/PaginateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ class PaginateViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('id', 'string', 'Identifier of the pagination', true);
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/ExplodeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@ class ExplodeViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('data', 'string', 'The input string', false);
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/ExternalMediaViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ class ExternalMediaViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('title', 'string', 'External media iframe title');
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/FalViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ class FalViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('data', 'array', 'Data of current record', true);
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/FrameViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ class FrameViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('id', 'string', 'identifier', true);
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/IconViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ class IconViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('icon', 'object', 'Icon to render', true);
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/ImplodeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@
*/
class ImplodeViewHelper extends AbstractViewHelper
{
/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('data', 'array', 'Input array', false);
Expand Down
8 changes: 1 addition & 7 deletions Classes/ViewHelpers/InlineSvgViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ class InlineSvgViewHelper extends AbstractViewHelper
*/
protected $escapeOutput = false;

/**
* Initialize arguments.
*
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerArgument('image', 'object', 'a FAL object');
Expand Down
5 changes: 1 addition & 4 deletions Classes/ViewHelpers/Link/LightboxViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ class LightboxViewHelper extends AbstractTagBasedViewHelper
*/
protected $tagName = 'a';

/**
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerUniversalTagAttributes();
Expand Down
7 changes: 1 addition & 6 deletions Classes/ViewHelpers/Link/PaginateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ class PaginateViewHelper extends AbstractTagBasedViewHelper
*/
protected $tagName = 'a';

/**
* Initialize arguments
*
* @return void
*/
public function initializeArguments()
public function initializeArguments(): void
{
parent::initializeArguments();
$this->registerUniversalTagAttributes();
Expand Down

0 comments on commit 487f6c2

Please sign in to comment.