for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class InArrayViewHelper
*/
namespace HDNET\OnpageIntegration\ViewHelpers;
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
class InArrayViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
{
* Look at the php docs for in_array
*
* @param array $array
* @param string $value
* @param string $key
* @param int $negate
public function render($array, $value, $key, $negate = 0)
$negate
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
if (in_array($key, $array)) {
return '';
}
return $value;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.