original_string: public function normalizeArray($objects)
      {
          $normal = [];
          foreach ($objects as $i => $objectName) {
              $config = [];
              if (!is_int($i)) {
                  $config = (array)$objectName;
                  $objectName = $i;
              }
              list(, $name) = pluginSplit($objectName);
              if (isset($config['class'])) {
                  $normal[$name] = $config;
              } else {
                  $normal[$name] = ['class' => $objectName, 'config' => $config];
              }
          }
  
          return $normal;
      }
code: public function normalizeArray($objects)
      {
          $normal = [];
          foreach ($objects as $i => $objectName) {
              $config = [];
              if (!is_int($i)) {
                  $config = (array)$objectName;
                  $objectName = $i;
              }
              list(, $name) = pluginSplit($objectName);
              if (isset($config['class'])) {
                  $normal[$name] = $config;
              } else {
                  $normal[$name] = ['class' => $objectName, 'config' => $config];
              }
          }
  
          return $normal;
      }
code_tokens: public function normalizeArray ( $ objects ) { $ normal = [ ] ; foreach ( $ objects as $ i => $ objectName ) { $ config = [ ] ; if ( ! is_int ( $ i ) ) { $ config = ( array ) $ objectName ; $ objectName = $ i ; } list ( , $ name ) = pluginSplit ( $ objectName ) ; if ( isset ( $ config [ 'class' ] ) ) { $ normal [ $ name ] = $ config ; } else { $ normal [ $ name ] = [ 'class' => $ objectName , 'config' => $ config ] ; } } return $ normal ; }
docstring: Normalizes an object array, creates an array that makes lazy loading
  easier
  
  @param array $objects Array of child objects to normalize.
  @return array Array of normalized objects.
docstring_tokens: Normalizes an object array creates an array that makes lazy loading easier