| @@ -64,9 +64,9 @@ | ||
| 64 | 64 | /** |
| 65 | 65 | * FrmTableHTMLGenerator constructor. |
| 66 | 66 | * |
| 67 | 67 | * @param string $type |
| 68 | - * @param array $atts | |
| 68 | + * @param array $atts | |
| 69 | 69 | */ |
| 70 | 70 | public function __construct( $type, $atts = array() ) { |
| 71 | 71 | |
| 72 | 72 | $this->type = (string) $type; |
| @@ -145,9 +145,9 @@ | ||
| 145 | 145 | */ |
| 146 | 146 | private function init_table_style() { |
| 147 | 147 | if ( $this->use_inline_style === true ) { |
| 148 | 148 | |
| 149 | - $this->table_style = ' style="' . esc_attr( 'font-size:' . $this->style_settings['font_size'] . ';line-height:135%;' ); | |
| 149 | + $this->table_style = ' style="' . esc_attr( 'font-size:' . $this->style_settings['font_size'] . ';line-height:135%;' ); | |
| 150 | 150 | $this->table_style .= esc_attr( 'border-bottom:' . $this->style_settings['border_width'] . ' solid ' . $this->style_settings['border_color'] . ';' ) . '"'; |
| 151 | 151 | |
| 152 | 152 | } |
| 153 | 153 | |
| @@ -164,9 +164,9 @@ | ||
| 164 | 164 | */ |
| 165 | 165 | private function init_td_style() { |
| 166 | 166 | if ( $this->use_inline_style === true ) { |
| 167 | 167 | |
| 168 | - $td_style_attributes = 'text-align:' . ( $this->direction == 'rtl' ? 'right' : 'left' ) . ';'; | |
| 168 | + $td_style_attributes = 'text-align:' . ( $this->direction === 'rtl' ? 'right' : 'left' ) . ';'; | |
| 169 | 169 | $td_style_attributes .= 'color:' . $this->style_settings['text_color'] . ';padding:7px 9px;vertical-align:top;'; |
| 170 | 170 | $td_style_attributes .= 'border-top:' . $this->style_settings['border_width'] . ' solid ' . $this->style_settings['border_color'] . ';'; |
| 171 | 171 | |
| 172 | 172 | $this->td_style = ' style="' . $td_style_attributes . '"'; |
| @@ -175,13 +175,12 @@ | ||
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | 177 | * Determine if setting is for a color, e.g. text color, background color, or border color |
| 178 | 178 | * |
| 179 | - * @param string $setting_key name of setting | |
| 180 | - * | |
| 181 | 179 | * @since 2.05 |
| 180 | + * @param string $setting_key Name of setting. | |
| 182 | 181 | * |
| 183 | - * @return boolean | |
| 182 | + * @return bool | |
| 184 | 183 | */ |
| 185 | 184 | private function is_color_setting( $setting_key ) { |
| 186 | 185 | return strpos( $setting_key, 'color' ) !== false; |
| 187 | 186 | } |
| @@ -188,12 +187,11 @@ | ||
| 188 | 187 | |
| 189 | 188 | /** |
| 190 | 189 | * Get color markup from color setting value |
| 191 | 190 | * |
| 191 | + * @since 2.05 | |
| 192 | 192 | * @param string $color_markup value of a color setting, with format #FFFFF, FFFFFF, or white. |
| 193 | 193 | * |
| 194 | - * @since 2.05 | |
| 195 | - * | |
| 196 | 194 | * @return string |
| 197 | 195 | */ |
| 198 | 196 | private function get_color_markup( $color_markup ) { |
| 199 | 197 | $color_markup = trim( $color_markup ); |
| @@ -284,9 +282,9 @@ | ||
| 284 | 282 | * |
| 285 | 283 | * @return string |
| 286 | 284 | */ |
| 287 | 285 | public function generate_two_cell_table_row( $label, $value ) { |
| 288 | - $row = '<tr' . $this->tr_style(); | |
| 286 | + $row = '<tr' . $this->tr_style(); | |
| 289 | 287 | $row .= $this->add_row_class( $value === '' ); |
| 290 | 288 | $row .= '>'; |
| 291 | 289 | |
| 292 | 290 | $label = '<th' . $this->td_style . '>' . wp_kses_post( $label ) . '</th>'; |
| @@ -316,9 +314,9 @@ | ||
| 316 | 314 | * |
| 317 | 315 | * @return string |
| 318 | 316 | */ |
| 319 | 317 | public function generate_single_cell_table_row( $value ) { |
| 320 | - $row = '<tr' . $this->tr_style(); | |
| 318 | + $row = '<tr' . $this->tr_style(); | |
| 321 | 319 | $row .= $this->add_row_class(); |
| 322 | 320 | $row .= '>'; |
| 323 | 321 | $row .= '<td colspan="2"' . $this->td_style . '>' . $value . '</td>'; |
| 324 | 322 | $row .= '</tr>' . "\r\n"; |