src/PeekAndPoke/Aviator/AppBuilder/Scanner/ScannedFilesCollection.php
public function contains($subject, $comparator = null) : bool
    {
        if (! $subject instanceof ScannedFile) {
            return false;
        }

        foreach ($this as $file) {
            if ($file instanceof ScannedFile && $file->getFilePath() === $subject->getFilePath()) {
                return true;
            }
        }

        return false;
    }
public function contains($subject, $comparator = null) : bool
    {
        if (! $subject instanceof ScannedFile) {
            return false;
        }

        foreach ($this as $file) {
            if ($file instanceof ScannedFile && $file->getFilePath() === $subject->getFilePath()) {
                return true;
            }
        }

        return false;
    }
public function contains ( $ subject , $ comparator = null ) : bool { if ( ! $ subject instanceof ScannedFile ) { return false ; } foreach ( $ this as $ file ) { if ( $ file instanceof ScannedFile && $ file -> getFilePath ( ) === $ subject -> getFilePath ( ) ) { return true ; } } return false ; }
@param ScannedFile                  $subject
@param BinaryFunction|callable|null $comparator

@return bool
@param ScannedFile $subject @param BinaryFunction|callable|null $comparator