Skip to content

Commit

Permalink
Fix up PHP comments
Browse files Browse the repository at this point in the history
Co-Authored-By: Alain Schlesser <alain.schlesser@gmail.com>
  • Loading branch information
westonruter and schlessera authored Nov 26, 2019
1 parent 12150cc commit d03b803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/sanitizers/class-amp-tag-and-attribute-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private function process_node( DOMElement $node ) {
if ( empty( $rule_spec_list_to_validate ) ) {
if ( 1 === count( $validation_errors ) ) {
// If there was only one tag spec candidate that failed, use its error code for removing the node,
// since it's we know it is the specific reason for why the node had to be removed.
// since we know it is the specific reason for why the node had to be removed.
// This is the normal case.
$this->remove_invalid_child(
$node,
Expand Down Expand Up @@ -886,7 +886,7 @@ private function validate_tag_spec_for_node( DOMElement $node, $tag_spec ) {
* @param DOMElement $node Node.
* @param array[] $attr_spec_list Attribute Spec list.
*
* @return int Score for how well the attribute spec list patched.
* @return int Score for how well the attribute spec list matched.
*/
private function validate_attr_spec_list_for_node( DOMElement $node, $attr_spec_list ) {
/*
Expand Down

0 comments on commit d03b803

Please sign in to comment.