original_string: protected function register(
          string $type,
          $name,
          string $source,
          $dependencies,
          $attributes,
          $replaces
      ): void {
          $dependencies = (array) $dependencies;
          $attributes = (array) $attributes;
          $replaces = (array) $replaces;
  
          if (\is_array($name)) {
              $replaces = \array_merge($name, $replaces);
              $name = '*';
          }
  
          $this->assets[$type][$name] = [
              'source' => $source,
              'dependencies' => $dependencies,
              'attributes' => $attributes,
              'replaces' => $replaces,
          ];
      }
code: protected function register(
          string $type,
          $name,
          string $source,
          $dependencies,
          $attributes,
          $replaces
      ): void {
          $dependencies = (array) $dependencies;
          $attributes = (array) $attributes;
          $replaces = (array) $replaces;
  
          if (\is_array($name)) {
              $replaces = \array_merge($name, $replaces);
              $name = '*';
          }
  
          $this->assets[$type][$name] = [
              'source' => $source,
              'dependencies' => $dependencies,
              'attributes' => $attributes,
              'replaces' => $replaces,
          ];
      }
code_tokens: protected function register ( string $ type , $ name , string $ source , $ dependencies , $ attributes , $ replaces ) : void { $ dependencies = ( array ) $ dependencies ; $ attributes = ( array ) $ attributes ; $ replaces = ( array ) $ replaces ; if ( \ is_array ( $ name ) ) { $ replaces = \ array_merge ( $ name , $ replaces ) ; $ name = '*' ; } $ this -> assets [ $ type ] [ $ name ] = [ 'source' => $ source , 'dependencies' => $ dependencies , 'attributes' => $ attributes , 'replaces' => $ replaces , ] ; }
docstring: Add an asset to the array of registered assets.
  
  @param  string  $type
  @param  string|array  $name
  @param  string  $source
  @param  string|array  $dependencies
  @param  string|array  $attributes
  @param  string|array  $replaces
  
  @return void
docstring_tokens: Add an asset to the array of registered assets .