protected function performSearch()
    {
        $filename = self::CONFIG_FILENAME . '.yml';
        $directories = array_filter(explode('/', getcwd()));

        $count = count($directories);
        for ($offset = 0; $offset < $count; ++$offset) {
            $next_path = '/' . implode('/', array_slice($directories, 0, $count - $offset));

            if (file_exists("{$next_path}/{$filename}")) {
                $this->projectXPath = "{$next_path}/{$filename}";
                break;
            }
        }
    }
protected function performSearch()
    {
        $filename = self::CONFIG_FILENAME . '.yml';
        $directories = array_filter(explode('/', getcwd()));

        $count = count($directories);
        for ($offset = 0; $offset < $count; ++$offset) {
            $next_path = '/' . implode('/', array_slice($directories, 0, $count - $offset));

            if (file_exists("{$next_path}/{$filename}")) {
                $this->projectXPath = "{$next_path}/{$filename}";
                break;
            }
        }
    }
protected function performSearch ( ) { $ filename = self :: CONFIG_FILENAME . '.yml' ; $ directories = array_filter ( explode ( '/' , getcwd ( ) ) ) ; $ count = count ( $ directories ) ; for ( $ offset = 0 ; $ offset < $ count ; ++ $ offset ) { $ next_path = '/' . implode ( '/' , array_slice ( $ directories , 0 , $ count - $ offset ) ) ; if ( file_exists ( "{$next_path}/{$filename}" ) ) { $ this -> projectXPath = "{$next_path}/{$filename}" ; break ; } } }
Perform search for the Project-X configuration.

@return string
Perform search for the Project - X configuration .