original_string: protected function getCommandConfig($commandKey)
      {
          if (isset($this->configsPerCommandKey[$commandKey])) {
              return $this->configsPerCommandKey[$commandKey];
          }
          $config = new Config($this->config->get('default')->toArray(), true);
          if ($this->config->__isset($commandKey)) {
              $commandConfig = $this->config->get($commandKey);
              $config->merge($commandConfig);
          }
          $this->configsPerCommandKey[$commandKey] = $config;
          return $config;
      }
code: protected function getCommandConfig($commandKey)
      {
          if (isset($this->configsPerCommandKey[$commandKey])) {
              return $this->configsPerCommandKey[$commandKey];
          }
          $config = new Config($this->config->get('default')->toArray(), true);
          if ($this->config->__isset($commandKey)) {
              $commandConfig = $this->config->get($commandKey);
              $config->merge($commandConfig);
          }
          $this->configsPerCommandKey[$commandKey] = $config;
          return $config;
      }
code_tokens: protected function getCommandConfig ( $ commandKey ) { if ( isset ( $ this -> configsPerCommandKey [ $ commandKey ] ) ) { return $ this -> configsPerCommandKey [ $ commandKey ] ; } $ config = new Config ( $ this -> config -> get ( 'default' ) -> toArray ( ) , true ) ; if ( $ this -> config -> __isset ( $ commandKey ) ) { $ commandConfig = $ this -> config -> get ( $ commandKey ) ; $ config -> merge ( $ commandConfig ) ; } $ this -> configsPerCommandKey [ $ commandKey ] = $ config ; return $ config ; }
docstring: Gets the config for given command key
  
  @param string $commandKey
  @return Config
docstring_tokens: Gets the config for given command key