for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Larapie\Actions\Attributes\Rules;
trait GeneralRules
{
public function excludeIf(string $field, $value)
return $this->rule("exclude_if:$field,$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("exclude_if:$field,$value");
}
public function excludeUnless(string $field, $value)
return $this->rule("exclude_unless:$field,$value");
public function exists(string $table, string $column)
return $this->rule("exists:$table,$column");
public function filled(){
return $this->rule('filled');