@@ -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(), $args ); |
|
| 38 | + public function register($args = null) { |
|
| 39 | + $this->invokeFunction($this->get_register_function(), $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(), $args ); |
|
| 61 | + public function enqueue($args = null) { |
|
| 62 | + $this->invokeFunction($this->get_enqueue_function(), $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 | } |