original_string: protected static function saveExtraParams(array $data)
      {
          $final_data = array();
          if (count($data) > 0) {
              Logger::log('Saving extra configuration parameters');
              foreach ($data as $key => $value) {
                  if (null !== $value || $value !== '') {
                      $final_data[$key] = $value;
                  }
              }
          }
          return $final_data;
      }
code: protected static function saveExtraParams(array $data)
      {
          $final_data = array();
          if (count($data) > 0) {
              Logger::log('Saving extra configuration parameters');
              foreach ($data as $key => $value) {
                  if (null !== $value || $value !== '') {
                      $final_data[$key] = $value;
                  }
              }
          }
          return $final_data;
      }
code_tokens: protected static function saveExtraParams ( array $ data ) { $ final_data = array ( ) ; if ( count ( $ data ) > 0 ) { Logger :: log ( 'Saving extra configuration parameters' ) ; foreach ( $ data as $ key => $ value ) { if ( null !== $ value || $ value !== '' ) { $ final_data [ $ key ] = $ value ; } } } return $ final_data ; }
docstring: Method that saves the extra parameters into the configuration
  @param array $data
  @return array
docstring_tokens: Method that saves the extra parameters into the configuration