original_string: public function write($path, $contents)
      {
          if ( ! FileKeeper::exists($dir = $this->getBasePath()))
          {
              FileKeeper::directory($dir);
          }
  
          FileKeeper::write($path, $contents);
      }
code: public function write($path, $contents)
      {
          if ( ! FileKeeper::exists($dir = $this->getBasePath()))
          {
              FileKeeper::directory($dir);
          }
  
          FileKeeper::write($path, $contents);
      }
code_tokens: public function write ( $ path , $ contents ) { if ( ! FileKeeper :: exists ( $ dir = $ this -> getBasePath ( ) ) ) { FileKeeper :: directory ( $ dir ) ; } FileKeeper :: write ( $ path , $ contents ) ; }
docstring: Writes a file, also creates base directory
  
  @param $path
  @param $contents
docstring_tokens: Writes a file also creates base directory