private function assertUniqueBaseName(PharInvocation $invocation, int $flags): bool
    {
        if (!($flags & static::UNIQUE_BASE_NAME)) {
            return true;
        }
        return $this->findByCallback(
            function (PharInvocation $candidate) use ($invocation) {
                return $candidate->getBaseName() === $invocation->getBaseName();
            }
        ) === null;
    }
private function assertUniqueBaseName(PharInvocation $invocation, int $flags): bool
    {
        if (!($flags & static::UNIQUE_BASE_NAME)) {
            return true;
        }
        return $this->findByCallback(
            function (PharInvocation $candidate) use ($invocation) {
                return $candidate->getBaseName() === $invocation->getBaseName();
            }
        ) === null;
    }
private function assertUniqueBaseName ( PharInvocation $ invocation , int $ flags ) : bool { if ( ! ( $ flags & static :: UNIQUE_BASE_NAME ) ) { return true ; } return $ this -> findByCallback ( function ( PharInvocation $ candidate ) use ( $ invocation ) { return $ candidate -> getBaseName ( ) === $ invocation -> getBaseName ( ) ; } ) === null ; }
Asserts that base-name is unique. This disallows having multiple invocations for
same base-name but having different alias names.

@param PharInvocation $invocation
@param int $flags
@return bool
Asserts that base - name is unique . This disallows having multiple invocations for same base - name but having different alias names .