protected function buildSwitchTextPaddingLength($options_data) {
    $padding_len = 0;
    foreach($options_data['lines'] as $option_line_data) {
      $padding_len = max($padding_len, strlen($option_line_data['switch_text']));
    }
    return $padding_len;
  }
protected function buildSwitchTextPaddingLength($options_data) {
    $padding_len = 0;
    foreach($options_data['lines'] as $option_line_data) {
      $padding_len = max($padding_len, strlen($option_line_data['switch_text']));
    }
    return $padding_len;
  }
protected function buildSwitchTextPaddingLength ( $ options_data ) { $ padding_len = 0 ; foreach ( $ options_data [ 'lines' ] as $ option_line_data ) { $ padding_len = max ( $ padding_len , strlen ( $ option_line_data [ 'switch_text' ] ) ) ; } return $ padding_len ; }
calculates the maximum padding for all options

@param mixed $options_data Description.

@return int padding length
calculates the maximum padding for all options