for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: jgulledge
* Date: 9/30/2017
* Time: 11:50 AM
*/
namespace LCI\Blend;
class Properties
{
/** @var array */
protected $data = [];
* Properties constructor.
public function __construct()
}
* @return array
public function getData()
return $this->data;
* @param string $name
* @param mixed $value
*
* @return $this
public function setProperty($name, $value)
$this->data[$name] = $value;
return $this;
* @param array $data
public function mergePropertiesFromArray(array $data = [])
if ($this->verifyArray($data)) {
$this->data = array_merge($data, $this->data);
} else {
// @TODO something
protected function verifyArray($data)
$data
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function verifyArray(/** @scrutinizer ignore-unused */ $data)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// @TODO
return true;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.