original_string: private function insertUpdate($parentUpdate, $update)
      {
          $el = $update instanceof ElementDependentLayoutUpdateInterface
              ? $update->getElement()
              : 'root';
  
          $parentUpdateIndex = array_search($parentUpdate, $this->updates[$el]);
  
          $this->updates[$el] = array_merge(
              array_slice($this->updates[$el], 0, $parentUpdateIndex, true),
              [$update],
              array_slice($this->updates[$el], $parentUpdateIndex, null, true)
          );
      }
code: private function insertUpdate($parentUpdate, $update)
      {
          $el = $update instanceof ElementDependentLayoutUpdateInterface
              ? $update->getElement()
              : 'root';
  
          $parentUpdateIndex = array_search($parentUpdate, $this->updates[$el]);
  
          $this->updates[$el] = array_merge(
              array_slice($this->updates[$el], 0, $parentUpdateIndex, true),
              [$update],
              array_slice($this->updates[$el], $parentUpdateIndex, null, true)
          );
      }
code_tokens: private function insertUpdate ( $ parentUpdate , $ update ) { $ el = $ update instanceof ElementDependentLayoutUpdateInterface ? $ update -> getElement ( ) : 'root' ; $ parentUpdateIndex = array_search ( $ parentUpdate , $ this -> updates [ $ el ] ) ; $ this -> updates [ $ el ] = array_merge ( array_slice ( $ this -> updates [ $ el ] , 0 , $ parentUpdateIndex , true ) , [ $ update ] , array_slice ( $ this -> updates [ $ el ] , $ parentUpdateIndex , null , true ) ) ; }
docstring: Insert import update right after its parent update
  
  @param ImportsAwareLayoutUpdateInterface $parentUpdate
  @param LayoutUpdateImportInterface $update
docstring_tokens: Insert import update right after its parent update