Skip to content

Commit

Permalink
Replace phpcs disables with inline ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuasha420 committed Nov 30, 2022
1 parent 0493f60 commit d6d889b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions includes/Core/REST_API/Data_Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ public function __isset( $name ) {
*
* @return bool
*/
// phpcs:disable Squiz.Commenting.InlineComment.WrongStyle,Squiz.Commenting.FunctionComment.WrongStyle, Squiz.PHP.CommentedOutCode.Found
// phpcs:ignore Squiz.Commenting.InlineComment.WrongStyle,Squiz.PHP.CommentedOutCode.Found
#[\ReturnTypeWillChange]
public function offsetExists( $key ) {
public function offsetExists( $key ) { // phpcs:ignore Squiz.Commenting.FunctionComment.WrongStyle
return array_key_exists( $key, $this->data );
}

Expand All @@ -134,9 +134,9 @@ public function offsetExists( $key ) {
*
* @return mixed
*/
// phpcs:disable Squiz.Commenting.InlineComment.WrongStyle, Squiz.Commenting.FunctionComment.WrongStyle, Squiz.PHP.CommentedOutCode.Found
// phpcs:ignore Squiz.Commenting.InlineComment.WrongStyle,Squiz.PHP.CommentedOutCode.Found
#[\ReturnTypeWillChange]
public function offsetGet( $key ) {
public function offsetGet( $key ) { // phpcs:ignore Squiz.Commenting.FunctionComment.WrongStyle
if ( $this->offsetExists( $key ) ) {
return $this->data[ $key ];
}
Expand All @@ -150,9 +150,9 @@ public function offsetGet( $key ) {
* @param string|int $key Key to set the value for.
* @param mixed $value New value for the given key.
*/
// phpcs:disable Squiz.Commenting.InlineComment.WrongStyle, Squiz.Commenting.FunctionComment.WrongStyle, Squiz.PHP.CommentedOutCode.Found
// phpcs:ignore Squiz.Commenting.InlineComment.WrongStyle,Squiz.PHP.CommentedOutCode.Found
#[\ReturnTypeWillChange]
public function offsetSet( $key, $value ) {
public function offsetSet( $key, $value ) { // phpcs:ignore Squiz.Commenting.FunctionComment.WrongStyle
// Data is immutable.
}

Expand All @@ -161,9 +161,9 @@ public function offsetSet( $key, $value ) {
*
* @param string|int $key Key to unset.
*/
// phpcs:disable Squiz.Commenting.InlineComment.WrongStyle, Squiz.Commenting.FunctionComment.WrongStyle, Squiz.PHP.CommentedOutCode.Found
// phpcs:ignore Squiz.Commenting.InlineComment.WrongStyle,Squiz.PHP.CommentedOutCode.Found
#[\ReturnTypeWillChange]
public function offsetUnset( $key ) {
public function offsetUnset( $key ) { // phpcs:ignore Squiz.Commenting.FunctionComment.WrongStyle
// Data is immutable.
}
}

0 comments on commit d6d889b

Please sign in to comment.