original_string: public function createLoader(array $autoloads)
      {
          $loader = new ClassLoader();
  
          if (isset($autoloads['psr-0'])) {
              foreach ($autoloads['psr-0'] as $namespace => $path) {
                  $loader->add($namespace, $path);
              }
          }
  
          if (isset($autoloads['psr-4'])) {
              foreach ($autoloads['psr-4'] as $namespace => $path) {
                  $loader->addPsr4($namespace, $path);
              }
          }
  
          return $loader;
      }
code: public function createLoader(array $autoloads)
      {
          $loader = new ClassLoader();
  
          if (isset($autoloads['psr-0'])) {
              foreach ($autoloads['psr-0'] as $namespace => $path) {
                  $loader->add($namespace, $path);
              }
          }
  
          if (isset($autoloads['psr-4'])) {
              foreach ($autoloads['psr-4'] as $namespace => $path) {
                  $loader->addPsr4($namespace, $path);
              }
          }
  
          return $loader;
      }
code_tokens: public function createLoader ( array $ autoloads ) { $ loader = new ClassLoader ( ) ; if ( isset ( $ autoloads [ 'psr-0' ] ) ) { foreach ( $ autoloads [ 'psr-0' ] as $ namespace => $ path ) { $ loader -> add ( $ namespace , $ path ) ; } } if ( isset ( $ autoloads [ 'psr-4' ] ) ) { foreach ( $ autoloads [ 'psr-4' ] as $ namespace => $ path ) { $ loader -> addPsr4 ( $ namespace , $ path ) ; } } return $ loader ; }
docstring: Registers an autoloader based on an autoload map returned by parseAutoloads
  
  @param  array       $autoloads see parseAutoloads return value
  @return ClassLoader
docstring_tokens: Registers an autoloader based on an autoload map returned by parseAutoloads