for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Larapie\Actions\Attributes\Rules;
trait FloatRules
{
public function min(float $value)
return $this->rule("min:$value");
rule()
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 */ rule("min:$value");
}
public function max(float $value)
return $this->rule("max:$value");
public function lesserThan(float $value)
return $this->rule("lt:$value");
public function lesserOrEqualThan(float $value)
return $this->rule("lte:$value");
public function greaterThan(float $value)
return $this->rule("gt:$value");
public function greaterOrEqualThan(float $value)
return $this->rule("gte:$value");
public function size(float $size)
return $this->rule("size:$size");