@@ -72,13 +72,13 @@ discard block |
||
| 72 | 72 | $value = $this->behavior->get( |
| 73 | 73 | $builder->field, |
| 74 | 74 | $builder->id, |
| 75 | - ! $builder->raw |
|
| 75 | + !$builder->raw |
|
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | 78 | // Next, we will iterate over the defined components and pass our value |
| 79 | 79 | // through each component's method if it was defined on the builder. |
| 80 | 80 | foreach ($this->components as $component) { |
| 81 | - if (! is_null($builder->$component)) { |
|
| 81 | + if (!is_null($builder->$component)) { |
|
| 82 | 82 | $method = 'run'.ucfirst($component); |
| 83 | 83 | |
| 84 | 84 | $value = $this->$method($builder->$component, $value); |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | protected function runEscape($func, $value) |
| 141 | 141 | { |
| 142 | - if (! is_string($value)) { |
|
| 142 | + if (!is_string($value)) { |
|
| 143 | 143 | throw new RunnerException('Cannot escape value of type '.gettype($value)); |
| 144 | 144 | } |
| 145 | 145 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | protected function runShortcodes($_, $value) |
| 169 | 169 | { |
| 170 | - if (! is_string($value)) { |
|
| 170 | + if (!is_string($value)) { |
|
| 171 | 171 | throw new RunnerException( |
| 172 | 172 | 'Cannot do shortcode on value of type '.gettype($value) |
| 173 | 173 | ); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | private static function getInstance() |
| 42 | 42 | { |
| 43 | - if (! self::$instance) { |
|
| 43 | + if (!self::$instance) { |
|
| 44 | 44 | self::$instance = new self(); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | private function getBuilder($behavior) |
| 99 | 99 | { |
| 100 | 100 | // Create a new behavior of the given type if one does not yet exist. |
| 101 | - if (! isset($this->behaviors[$behavior])) { |
|
| 101 | + if (!isset($this->behaviors[$behavior])) { |
|
| 102 | 102 | $this->behaviors[$behavior] = new $behavior(); |
| 103 | 103 | } |
| 104 | 104 | |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Samrap\Acf\Acf; |
| 4 | 4 | |
| 5 | -if (! function_exists('fluent_field')) { |
|
| 5 | +if (!function_exists('fluent_field')) { |
|
| 6 | 6 | /** |
| 7 | 7 | * Return a new builder instance for a field. |
| 8 | 8 | * |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | } |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | -if (! function_exists('fluent_sub_field')) { |
|
| 19 | +if (!function_exists('fluent_sub_field')) { |
|
| 20 | 20 | /** |
| 21 | 21 | * Return a new builder instance for a subfield. |
| 22 | 22 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -if (! function_exists('fluent_option')) { |
|
| 32 | +if (!function_exists('fluent_option')) { |
|
| 33 | 33 | /** |
| 34 | 34 | * Return a new builder instance for an option field. |
| 35 | 35 | * |
@@ -236,7 +236,7 @@ |
||
| 236 | 236 | */ |
| 237 | 237 | public function __call($name, $arguments) |
| 238 | 238 | { |
| 239 | - if (! isset($this->macros[$name])) { |
|
| 239 | + if (!isset($this->macros[$name])) { |
|
| 240 | 240 | throw new BadMethodCallException( |
| 241 | 241 | "The method or macro {$name} does not exist." |
| 242 | 242 | ); |