original_string: private static function setRoot($url)
      {
          $segements = explode('/', $url);
          $count = count($segements) - 2;
  
          $path = '';
  
          for ($i = 0; $i < $count; $i++) {
              $path .= '../';
          }
  
          Application::$path .= $path;
  
          return Application::$path;
      }
code: private static function setRoot($url)
      {
          $segements = explode('/', $url);
          $count = count($segements) - 2;
  
          $path = '';
  
          for ($i = 0; $i < $count; $i++) {
              $path .= '../';
          }
  
          Application::$path .= $path;
  
          return Application::$path;
      }
code_tokens: private static function setRoot ( $ url ) { $ segements = explode ( '/' , $ url ) ; $ count = count ( $ segements ) - 2 ; $ path = '' ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ path .= '../' ; } Application :: $ path .= $ path ; return Application :: $ path ; }
docstring: Set the app root param.
  
  @param string $url
  
  @return string
docstring_tokens: Set the app root param .