original_string: protected function addElementDependencies(ElementInterface $element, AttributeCollection $collection)
      {
          if ($element->hasOption('dependencies') && count($element->getOption('dependencies'))) {
              $dependencies = $this->formatter->formatDependencies($element->getOption('dependencies'));
              $collection->add(new Attribute('agDependencies', $dependencies, Attribute::TYPE_ARRAY));
          }
      }
code: protected function addElementDependencies(ElementInterface $element, AttributeCollection $collection)
      {
          if ($element->hasOption('dependencies') && count($element->getOption('dependencies'))) {
              $dependencies = $this->formatter->formatDependencies($element->getOption('dependencies'));
              $collection->add(new Attribute('agDependencies', $dependencies, Attribute::TYPE_ARRAY));
          }
      }
code_tokens: protected function addElementDependencies ( ElementInterface $ element , AttributeCollection $ collection ) { if ( $ element -> hasOption ( 'dependencies' ) && count ( $ element -> getOption ( 'dependencies' ) ) ) { $ dependencies = $ this -> formatter -> formatDependencies ( $ element -> getOption ( 'dependencies' ) ) ; $ collection -> add ( new Attribute ( 'agDependencies' , $ dependencies , Attribute :: TYPE_ARRAY ) ) ; } }
docstring: Adds javascript dependencies to element
  
  @param ElementInterface    $element
  @param AttributeCollection $collection
docstring_tokens: Adds javascript dependencies to element