| @@ -64,9 +64,9 @@ | ||
| 64 | 64 | 'description_placeholder' => '', |
| 65 | 65 | 'has_new_badge' => false, |
| 66 | 66 | 'is_disabled' => false, |
| 67 | 67 | 'has_premium_badge' => false, |
| 68 | - ] | |
| 68 | + ], | |
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | 71 | $this->validate_arguments( $arguments ); |
| 72 | 72 | |
| @@ -121,9 +121,9 @@ | ||
| 121 | 121 | esc_attr( $this->arguments['label_description'] ), |
| 122 | 122 | esc_attr( $this->arguments['description_placeholder'] ), |
| 123 | 123 | esc_attr( $this->arguments['has_new_badge'] ), |
| 124 | 124 | esc_attr( $this->arguments['is_disabled'] ), |
| 125 | - esc_attr( $this->arguments['has_premium_badge'] ) | |
| 125 | + esc_attr( $this->arguments['has_premium_badge'] ), | |
| 126 | 126 | ); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| @@ -130,8 +130,10 @@ | ||
| 130 | 130 | * Validates the replacement variable editor arguments. |
| 131 | 131 | * |
| 132 | 132 | * @param array $arguments The arguments to validate. |
| 133 | 133 | * |
| 134 | + * @return void | |
| 135 | + * | |
| 134 | 136 | * @throws InvalidArgumentException Thrown when not all required arguments are present. |
| 135 | 137 | */ |
| 136 | 138 | protected function validate_arguments( array $arguments ) { |
| 137 | 139 | $required_arguments = [ |
| @@ -147,10 +149,10 @@ | ||
| 147 | 149 | throw new InvalidArgumentException( |
| 148 | 150 | sprintf( |
| 149 | 151 | /* translators: %1$s expands to the missing field name. */ |
| 150 | 152 | __( 'Not all required fields are given. Missing field %1$s', 'wordpress-seo' ), |
| 151 | - $field_name | |
| 152 | - ) | |
| 153 | + $field_name, | |
| 154 | + ), | |
| 153 | 155 | ); |
| 154 | 156 | } |
| 155 | 157 | } |
| 156 | 158 | } |