original_string: public function normalized(Table $repository)
      {
          if ($this->_normalized !== null || empty($this->_containments)) {
              return (array)$this->_normalized;
          }
  
          $contain = [];
          foreach ($this->_containments as $alias => $options) {
              if (!empty($options['instance'])) {
                  $contain = (array)$this->_containments;
                  break;
              }
              $contain[$alias] = $this->_normalizeContain(
                  $repository,
                  $alias,
                  $options,
                  ['root' => null]
              );
          }
  
          return $this->_normalized = $contain;
      }
code: public function normalized(Table $repository)
      {
          if ($this->_normalized !== null || empty($this->_containments)) {
              return (array)$this->_normalized;
          }
  
          $contain = [];
          foreach ($this->_containments as $alias => $options) {
              if (!empty($options['instance'])) {
                  $contain = (array)$this->_containments;
                  break;
              }
              $contain[$alias] = $this->_normalizeContain(
                  $repository,
                  $alias,
                  $options,
                  ['root' => null]
              );
          }
  
          return $this->_normalized = $contain;
      }
code_tokens: public function normalized ( Table $ repository ) { if ( $ this -> _normalized !== null || empty ( $ this -> _containments ) ) { return ( array ) $ this -> _normalized ; } $ contain = [ ] ; foreach ( $ this -> _containments as $ alias => $ options ) { if ( ! empty ( $ options [ 'instance' ] ) ) { $ contain = ( array ) $ this -> _containments ; break ; } $ contain [ $ alias ] = $ this -> _normalizeContain ( $ repository , $ alias , $ options , [ 'root' => null ] ) ; } return $ this -> _normalized = $ contain ; }
docstring: Returns the fully normalized array of associations that should be eagerly
  loaded for a table. The normalized array will restructure the original array
  by sorting all associations under one key and special options under another.
  
  Each of the levels of the associations tree will converted to a Cake\ORM\EagerLoadable
  object, that contains all the information required for the association objects
  to load the information from the database.
  
  Additionally it will set an 'instance' key per association containing the
  association instance from the corresponding source table
  
  @param \Cake\ORM\Table $repository The table containing the association that
  will be normalized
  @return array
docstring_tokens: Returns the fully normalized array of associations that should be eagerly loaded for a table . The normalized array will restructure the original array by sorting all associations under one key and special options under another .