for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @copyright https://yawik.org/COPYRIGHT.php
* @license MIT
* @author [email protected]
*/
namespace Jobs\Form;
use Core\Form\Form;
use Core\Form\Container;
use Core\Entity\Hydrator\EntityHydrator;
use Laminas\InputFilter\InputFilterProviderInterface;
use Core\Form\propagateAttributeInterface;
* Defines the form on the 3rd page when entering a job position
* @package Jobs\Form
class Preview extends Form implements propagateAttributeInterface
{
public function getHydrator()
if (!$this->hydrator) {
$hydrator = new EntityHydrator();
$this->setHydrator($hydrator);
}
return $this->hydrator;
public function init()
$this->setName('jobs-form-preview');
$this->setAttributes(
array(
'id' => 'jobs-form-preview',
//'data-handle-by' => 'native'
)
);
$this->add(
'type' => 'Jobs/PreviewFieldset',
'name' => 'jobPreview',
'options' => array(
'use_as_base_fieldset' => true,
),
public function setViewPartial($partial)
$partial
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function setViewPartial(/** @scrutinizer ignore-unused */ $partial)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $this;
public function getViewPartial()
return 'form/preview.phtml';
public function enableAll($enable = true)
foreach ($this as $forms) {
if ($forms instanceof propagateAttributeInterface) {
$forms->enableAll($enable);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.