public function forFile(FileInterface $file)
    {
        $filter = function ($review) use ($file) {
            if ($review->canReview($file)) {
                return true;
            }

            return false;
        };

        return $this->select($filter);
    }
public function forFile(FileInterface $file)
    {
        $filter = function ($review) use ($file) {
            if ($review->canReview($file)) {
                return true;
            }

            return false;
        };

        return $this->select($filter);
    }
public function forFile ( FileInterface $ file ) { $ filter = function ( $ review ) use ( $ file ) { if ( $ review -> canReview ( $ file ) ) { return true ; } return false ; } ; return $ this -> select ( $ filter ) ; }
Returns a filtered ReviewCollection that should be run against the given
file.

@param  FileInterface $file
@return ReviewCollection
Returns a filtered ReviewCollection that should be run against the given file .