original_string: private function validateAutoMapping(array $managerConfigs)
      {
          $autoMappedManager = null;
          foreach ($managerConfigs as $name => $manager) {
              if (!$manager['auto_mapping']) {
                  continue;
              }
  
              if (null !== $autoMappedManager) {
                  throw new \LogicException(sprintf('You cannot enable "auto_mapping" on more than one manager at the same time (found in "%s" and %s").', $autoMappedManager, $name));
              }
  
              $autoMappedManager = $name;
          }
  
          return $autoMappedManager;
      }
code: private function validateAutoMapping(array $managerConfigs)
      {
          $autoMappedManager = null;
          foreach ($managerConfigs as $name => $manager) {
              if (!$manager['auto_mapping']) {
                  continue;
              }
  
              if (null !== $autoMappedManager) {
                  throw new \LogicException(sprintf('You cannot enable "auto_mapping" on more than one manager at the same time (found in "%s" and %s").', $autoMappedManager, $name));
              }
  
              $autoMappedManager = $name;
          }
  
          return $autoMappedManager;
      }
code_tokens: private function validateAutoMapping ( array $ managerConfigs ) { $ autoMappedManager = null ; foreach ( $ managerConfigs as $ name => $ manager ) { if ( ! $ manager [ 'auto_mapping' ] ) { continue ; } if ( null !== $ autoMappedManager ) { throw new \ LogicException ( sprintf ( 'You cannot enable "auto_mapping" on more than one manager at the same time (found in "%s" and %s").' , $ autoMappedManager , $ name ) ) ; } $ autoMappedManager = $ name ; } return $ autoMappedManager ; }
docstring: Search for a manager that is declared as 'auto_mapping' = true.
  
  @return string|null The name of the manager. If no one manager is found, returns null
  
  @throws \LogicException
docstring_tokens: Search for a manager that is declared as auto_mapping = true .