| @@ -61,8 +61,10 @@ | ||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Print the rendered view. |
| 65 | + * | |
| 66 | + * @return void | |
| 65 | 67 | */ |
| 66 | 68 | public function output_html() { |
| 67 | 69 | // Extract it, because we want each value accessible via a variable instead of accessing it as an array. |
| 68 | 70 | extract( $this->get_select_values() ); |
| @@ -90,8 +92,10 @@ | ||
| 90 | 92 | * Add an attribute to the attributes property. |
| 91 | 93 | * |
| 92 | 94 | * @param string $attribute The name of the attribute to add. |
| 93 | 95 | * @param string $value The value of the attribute. |
| 96 | + * | |
| 97 | + * @return void | |
| 94 | 98 | */ |
| 95 | 99 | public function add_attribute( $attribute, $value ) { |
| 96 | 100 | $this->select_attributes[ $attribute ] = $value; |
| 97 | 101 | } |
| @@ -132,8 +136,10 @@ | ||
| 132 | 136 | * Get an attribute from the attributes. |
| 133 | 137 | * |
| 134 | 138 | * @param string $value The value of the attribute. |
| 135 | 139 | * @param string $attribute The attribute to look for. |
| 140 | + * | |
| 141 | + * @return void | |
| 136 | 142 | */ |
| 137 | 143 | private function parse_attribute( &$value, $attribute ) { |
| 138 | 144 | $value = sprintf( '%s="%s"', sanitize_key( $attribute ), esc_attr( $value ) ); |
| 139 | 145 | } |