original_string: protected function buildSearchDirs(/*# string */ $env)/*# : array */
      {
          $path = $this->root_dir;
          $part = preg_split(
              '/[\/\\\]/',
              trim($env, '/\\'),
              0,
              \PREG_SPLIT_NO_EMPTY
          );
          $subdirs = [$path];
          foreach ($part as $dir) {
              $path .= $dir . \DIRECTORY_SEPARATOR;
              if (false === file_exists($path)) {
                  trigger_error(
                      Message::get(Message::CONFIG_ENV_UNKNOWN, $env),
                      \E_USER_WARNING
                  );
                  break;
              }
              $subdirs[] = $path;
          }
          return $subdirs;
      }
code: protected function buildSearchDirs(/*# string */ $env)/*# : array */
      {
          $path = $this->root_dir;
          $part = preg_split(
              '/[\/\\\]/',
              trim($env, '/\\'),
              0,
              \PREG_SPLIT_NO_EMPTY
          );
          $subdirs = [$path];
          foreach ($part as $dir) {
              $path .= $dir . \DIRECTORY_SEPARATOR;
              if (false === file_exists($path)) {
                  trigger_error(
                      Message::get(Message::CONFIG_ENV_UNKNOWN, $env),
                      \E_USER_WARNING
                  );
                  break;
              }
              $subdirs[] = $path;
          }
          return $subdirs;
      }
code_tokens: protected function buildSearchDirs ( /*# string */ $ env ) /*# : array */ { $ path = $ this -> root_dir ; $ part = preg_split ( '/[\/\\\]/' , trim ( $ env , '/\\' ) , 0 , \ PREG_SPLIT_NO_EMPTY ) ; $ subdirs = [ $ path ] ; foreach ( $ part as $ dir ) { $ path .= $ dir . \ DIRECTORY_SEPARATOR ; if ( false === file_exists ( $ path ) ) { trigger_error ( Message :: get ( Message :: CONFIG_ENV_UNKNOWN , $ env ) , \ E_USER_WARNING ) ; break ; } $ subdirs [ ] = $ path ; } return $ subdirs ; }
docstring: Build search directories
  
  @param  string $env
  @return array
  @access protected
docstring_tokens: Build search directories