for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpWinTools\WmiScripting\Containers;
use Illuminate\Support\Arr;
class Container
{
protected $container;
public function get($key, $default = null)
return Arr::get($this->container, $key, $default);
}
public function append($key, $value)
$value
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function append($key, /** @scrutinizer ignore-unused */ $value)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
if (is_null($this->get($key))) {
//
public function set($key, $value = null)
$keys = is_array($key) ? $key : [$key => $value];
foreach ($keys as $key => $value) {
$key
Arr::set($this->container, $key, $value);
return $this;
public function merge(array $array)
foreach (Arr::dot($array) as $key => $value) {
$this->container = Arr::add($this->container, $key, $value);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.