@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * AbstractDependencyHandler Class |
|
| 4 | - * |
|
| 5 | - * @package BrightNucleus\Dependency |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * AbstractDependencyHandler Class |
|
| 4 | + * |
|
| 5 | + * @package BrightNucleus\Dependency |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2015-2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\Dependency; |
| 13 | 13 | |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | * @throws InvalidArgumentException If the register function could not be |
| 36 | 36 | * called. |
| 37 | 37 | */ |
| 38 | - public function register( $args = null ) { |
|
| 39 | - $this->invokeFunction( $this->get_register_function(), (array) $args ); |
|
| 38 | + public function register($args = null) { |
|
| 39 | + $this->invokeFunction($this->get_register_function(), (array) $args); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | * @throws InvalidArgumentException If the register function could not be |
| 59 | 59 | * called. |
| 60 | 60 | */ |
| 61 | - public function enqueue( $args = null ) { |
|
| 62 | - $this->invokeFunction( $this->get_enqueue_function(), (array) $args ); |
|
| 61 | + public function enqueue($args = null) { |
|
| 62 | + $this->invokeFunction($this->get_enqueue_function(), (array) $args); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | * @param string $handle Handle of the dependency to enqueue. |
| 81 | 81 | * @return bool Whether the handle was found or not. |
| 82 | 82 | */ |
| 83 | - public function maybe_enqueue( $handle ) { |
|
| 83 | + public function maybe_enqueue($handle) { |
|
| 84 | 84 | global $wp_scripts; |
| 85 | - if ( $this->is_registered( $handle ) ) { |
|
| 85 | + if ($this->is_registered($handle)) { |
|
| 86 | 86 | $enqueue = $this->get_enqueue_function(); |
| 87 | - $enqueue( $handle ); |
|
| 87 | + $enqueue($handle); |
|
| 88 | 88 | return true; |
| 89 | 89 | } |
| 90 | 90 | return false; |
@@ -98,5 +98,5 @@ discard block |
||
| 98 | 98 | * @param string $handle The handle to check |
| 99 | 99 | * @return bool Whether it is registered or not. |
| 100 | 100 | */ |
| 101 | - abstract protected function is_registered( $handle ); |
|
| 101 | + abstract protected function is_registered($handle); |
|
| 102 | 102 | } |