for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace StoutLogic\AcfBuilder\Transform;
use StoutLogic\AcfBuilder\Builder;
abstract class Transform
{
private $bulider;
$bulider
This check marks private properties in classes that are never used. Those properties can be removed.
public function __construct(Builder $builder)
$this->builder = $builder;
builder
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
}
public function getBuilder()
return $this->builder;
/**
* Impelment in all discrete classes
* @param array $config input
* @return array output config
*/
abstract public function transform($config);
This check marks private properties in classes that are never used. Those properties can be removed.