original_string: public function flushCaches($all = false) {
      $dir = $this->kernel->getCacheDir();
      if ($all) {
        $dir .= '/..';
      }
      $fs = new Filesystem();
      $fs->remove(realpath($dir));
    }
code: public function flushCaches($all = false) {
      $dir = $this->kernel->getCacheDir();
      if ($all) {
        $dir .= '/..';
      }
      $fs = new Filesystem();
      $fs->remove(realpath($dir));
    }
code_tokens: public function flushCaches ( $ all = false ) { $ dir = $ this -> kernel -> getCacheDir ( ) ; if ( $ all ) { $ dir .= '/..' ; } $ fs = new Filesystem ( ) ; $ fs -> remove ( realpath ( $ dir ) ) ; }
docstring: Cleanup cache files
docstring_tokens: Cleanup cache files