original_string: protected function setDatabaseFactoryNamespaces()
      {
          $files = Finder::create()
                              ->in(database_path('factories'))
                              ->contains($this->currentRoot)
                              ->name('*.php');
  
          foreach ($files as $file) {
              $this->replaceIn(
                  $file->getRealPath(),
                  $this->currentRoot, $this->argument('name')
              );
          }
      }
code: protected function setDatabaseFactoryNamespaces()
      {
          $files = Finder::create()
                              ->in(database_path('factories'))
                              ->contains($this->currentRoot)
                              ->name('*.php');
  
          foreach ($files as $file) {
              $this->replaceIn(
                  $file->getRealPath(),
                  $this->currentRoot, $this->argument('name')
              );
          }
      }
code_tokens: protected function setDatabaseFactoryNamespaces ( ) { $ files = Finder :: create ( ) -> in ( database_path ( 'factories' ) ) -> contains ( $ this -> currentRoot ) -> name ( '*.php' ) ; foreach ( $ files as $ file ) { $ this -> replaceIn ( $ file -> getRealPath ( ) , $ this -> currentRoot , $ this -> argument ( 'name' ) ) ; } }
docstring: Set the namespace in database factory files.
  
  @return void
docstring_tokens: Set the namespace in database factory files .