original_string: public function load($path)
      {
          $factory = $this;
  
          if (is_dir($path)) {
              foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {
                  require $file->getRealPath();
              }
          }
  
          return $factory;
      }
code: public function load($path)
      {
          $factory = $this;
  
          if (is_dir($path)) {
              foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {
                  require $file->getRealPath();
              }
          }
  
          return $factory;
      }
code_tokens: public function load ( $ path ) { $ factory = $ this ; if ( is_dir ( $ path ) ) { foreach ( Finder :: create ( ) -> files ( ) -> name ( '*.php' ) -> in ( $ path ) as $ file ) { require $ file -> getRealPath ( ) ; } } return $ factory ; }
docstring: Load factories from path.
  
  @param  string  $path
  @return $this
docstring_tokens: Load factories from path .