public function ignorePath($path)
    {
        if (is_array($path)) {
            foreach ($path as $pathToIgnore) {
                $this->ignorePath($pathToIgnore);
            }

            return $this;
        }

        $this->ignoredPaths[] = $path;
        return $this;
    }
public function ignorePath($path)
    {
        if (is_array($path)) {
            foreach ($path as $pathToIgnore) {
                $this->ignorePath($pathToIgnore);
            }

            return $this;
        }

        $this->ignoredPaths[] = $path;
        return $this;
    }
public function ignorePath ( $ path ) { if ( is_array ( $ path ) ) { foreach ( $ path as $ pathToIgnore ) { $ this -> ignorePath ( $ pathToIgnore ) ; } return $ this ; } $ this -> ignoredPaths [ ] = $ path ; return $ this ; }
Adds a path to the ignore list.

@param $path
@return $this
Adds a path to the ignore list .