original_string: private function copyStubsDirectory()
      {
          $path = $this->option('path');
  
          // if controller stub already exist
          if ($this->files->exists($path . DIRECTORY_SEPARATOR . 'controller.stub') && $this->option('force') === false) {
              $this->error("Stubs already exists! Run 'generate:publish-stubs --force' to override the stubs.");
              die;
          }
  
          File::copyDirectory(__DIR__ . '/../../resources/stubs', $path);
      }
code: private function copyStubsDirectory()
      {
          $path = $this->option('path');
  
          // if controller stub already exist
          if ($this->files->exists($path . DIRECTORY_SEPARATOR . 'controller.stub') && $this->option('force') === false) {
              $this->error("Stubs already exists! Run 'generate:publish-stubs --force' to override the stubs.");
              die;
          }
  
          File::copyDirectory(__DIR__ . '/../../resources/stubs', $path);
      }
code_tokens: private function copyStubsDirectory ( ) { $ path = $ this -> option ( 'path' ) ; // if controller stub already exist if ( $ this -> files -> exists ( $ path . DIRECTORY_SEPARATOR . 'controller.stub' ) && $ this -> option ( 'force' ) === false ) { $ this -> error ( "Stubs already exists! Run 'generate:publish-stubs --force' to override the stubs." ) ; die ; } File :: copyDirectory ( __DIR__ . '/../../resources/stubs' , $ path ) ; }
docstring: Copy the stubs directory
docstring_tokens: Copy the stubs directory