Skip to content

Commit

Permalink
Merge pull request #89 from tormjens/analysis-lZx5WO
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
tormjens authored Oct 21, 2024
2 parents 0b14ef1 + d5e5c10 commit f99db5d
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions src/helpers.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php

if (!function_exists('eventy')) {

/**
* Get the Eventy instance
* Get the Eventy instance.
*
* @return \TorMorten\Eventy\Events
*/
Expand All @@ -14,14 +13,13 @@ function eventy()
}

if (!function_exists('add_filter')) {

/**
* Add a filter to the Eventy instance
* Add a filter to the Eventy instance.
*
* @param string $hook
* @param string $hook
* @param callable $callback
* @param int $priority
* @param int $arguments
* @param int $priority
* @param int $arguments
*
* @return void
*/
Expand All @@ -31,15 +29,13 @@ function add_filter($hook, $callback, $priority = 20, $arguments = 1)
}
}


if (!function_exists('apply_filters')) {

/**
* Apply filters to a value
* Apply filters to a value.
*
* @param string $action
* @param mixed $value
* @param mixed $parameters
* @param mixed $value
* @param mixed $parameters
*
* @return mixed
*/
Expand All @@ -49,16 +45,14 @@ function apply_filters(string $action, $value, ...$parameters)
}
}


if (!function_exists('add_action')) {

/**
* Add an action to the Eventy instance
* Add an action to the Eventy instance.
*
* @param string $hook
* @param string $hook
* @param callable $callback
* @param int $priority
* @param int $arguments
* @param int $priority
* @param int $arguments
*
* @return void
*/
Expand All @@ -69,12 +63,11 @@ function add_action($hook, $callback, $priority = 20, $arguments = 1)
}

if (!function_exists('do_action')) {

/**
* Execute the actions for the hook
* Execute the actions for the hook.
*
* @param string $hook
* @param mixed $parameters
* @param mixed $parameters
*
* @return void
*/
Expand Down

0 comments on commit f99db5d

Please sign in to comment.