original_string: protected function getExtensions()
      {
          if (null === $this->sorted) {
              ksort($this->extensions);
              $this->sorted = !empty($this->extensions)
                  ? call_user_func_array('array_merge', $this->extensions)
                  : [];
          }
  
          return $this->sorted;
      }
code: protected function getExtensions()
      {
          if (null === $this->sorted) {
              ksort($this->extensions);
              $this->sorted = !empty($this->extensions)
                  ? call_user_func_array('array_merge', $this->extensions)
                  : [];
          }
  
          return $this->sorted;
      }
code_tokens: protected function getExtensions ( ) { if ( null === $ this -> sorted ) { ksort ( $ this -> extensions ) ; $ this -> sorted = ! empty ( $ this -> extensions ) ? call_user_func_array ( 'array_merge' , $ this -> extensions ) : [ ] ; } return $ this -> sorted ; }
docstring: Returns all registered extensions sorted by priority.
  
  @return ExtensionInterface[]
docstring_tokens: Returns all registered extensions sorted by priority .