for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nip\Router\RouteCollections\Traits;
use Nip\Router\Route\Route;
/**
* Trait ArrayAccessTrait
* @package Nip\Router\RouteCollections\Traits
*/
trait ArrayAccessTrait
{
* @param mixed $offset
* @return bool
public function offsetExists($offset)
return $this->has($offset);
has()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ has($offset);
}
* @return Route|null
public function offsetGet($offset)
return $this->get($offset);
get()
return $this->/** @scrutinizer ignore-call */ get($offset);
* @param mixed $value
public function offsetSet($offset, $value)
$this->add($offset, $value);
add()
$this->/** @scrutinizer ignore-call */
add($offset, $value);
public function offsetUnset($offset)
$this->remove($offset);
remove()
remove($offset);