for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omatech\Mage\Core\Repositories\Roles;
use Omatech\Mage\Core\Domains\Roles\Contracts\ExistsRoleInterface;
use Omatech\Mage\Core\Domains\Roles\Contracts\RoleInterface;
use Omatech\Mage\Core\Repositories\RoleBaseRepository;
class ExistsRole extends RoleBaseRepository implements ExistsRoleInterface
{
/**
* @param RoleInterface $role
* @return bool
*/
public function exists(RoleInterface $role): bool
return $this->query()
exists()
Illuminate\Database\Eloquent\Builder
canUseExistsForExistenceCheck()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
->where('name', $role->getName())
->orWhere('id', $role->getId())
->exists();
}
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.