Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmikita committed Nov 4, 2021
1 parent 9659e4d commit edba3b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/Abstracts/Trigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function is_stopped() : bool {
* @return void
*/
public function postpone_action( $tag, $priority = 10, $accepted_args = 1 ) {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );
}

/**
Expand All @@ -297,7 +297,7 @@ public function postpone_action( $tag, $priority = 10, $accepted_args = 1 ) {
* @return boolean
*/
public function is_postponed() {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );
return true;
}

Expand All @@ -309,7 +309,7 @@ public function is_postponed() {
* @return bool
*/
public function has_background_processing_enabled() {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );

return apply_filters(
'notification/trigger/process_in_background',
Expand All @@ -326,7 +326,7 @@ public function has_background_processing_enabled() {
* @return array
*/
public function get_action_args() {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );

return [];
}
Expand All @@ -339,7 +339,7 @@ public function get_action_args() {
* @return array
*/
public function get_cache() {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );

return [];
}
Expand All @@ -353,7 +353,7 @@ public function get_cache() {
* @return $this
*/
public function set_cache( $cache ) {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );

return $this;
}
Expand All @@ -368,7 +368,7 @@ public function set_cache( $cache ) {
* @return mixed
*/
public function cache( $key, $default = '' ) {
_deprecated_function ( __METHOD__, '8.0.0' );
_deprecated_function( __METHOD__, '8.0.0' );

return $default;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function run( ...$context ) {
$result = call_user_func_array( [ $this->trigger, 'action' ], $context );

$class = get_class( $this->trigger );
_deprecated_function (
_deprecated_function(
sprintf( '%s::action()', esc_html( $class ) ),
'8.0.0',
sprintf( '%s::context()', esc_html( $class ) )
Expand Down

0 comments on commit edba3b3

Please sign in to comment.