for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use GanbaroDigital\MissingBits\Checks\Check;
class IsInRange implements Check
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* minimum acceptable value in our range
*/
private $min;
* maximum acceptable value in our range
private $max;
* constructor. used to create a customised check
*
* @param int $min
* minimum value for allowed range
* @param int $max
* maximum value for allowed range
public function __construct($min, $max)
$this->min = $min;
$this->max = $max;
}
* generates a Check
* @return Check
* returns a check to use
public static function using($min, $max)
return new static($min, $max);
* is $data within the require range?
* @param int $data
* the value to check
* @return bool
* TRUE if the data is in range
* FALSE otherwise
public function inspect($data)
return static::check($data, $this->min, $this->max);
public static function check($data, $min, $max)
if ($data < $min) {
return false;
if ($data > $max) {
return true;
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.