original_string: protected function getLogPath($log)
      {
  
          $dir = $this->log_root.'/'.$log.'/';
  
          if(!is_dir($dir)){
              mkdir($dir, 0777, true);
          }
  
          return $dir;
      }
code: protected function getLogPath($log)
      {
  
          $dir = $this->log_root.'/'.$log.'/';
  
          if(!is_dir($dir)){
              mkdir($dir, 0777, true);
          }
  
          return $dir;
      }
code_tokens: protected function getLogPath ( $ log ) { $ dir = $ this -> log_root . '/' . $ log . '/' ; if ( ! is_dir ( $ dir ) ) { mkdir ( $ dir , 0777 , true ) ; } return $ dir ; }
docstring: Grabs the log path based on the type of log
  @param $log Sting the log type.  Should be in the $enabled_logs array
  @return string The path to the log directory to be used
docstring_tokens: Grabs the log path based on the type of log