@@ -326,7 +326,8 @@ |
||
326 | 326 | } |
327 | 327 | if (is_array($parameter1)) { |
328 | 328 | $this->args += $parameter1; |
329 | - } elseif (is_array($parameter2)) { |
|
329 | + } |
|
330 | + elseif (is_array($parameter2)) { |
|
330 | 331 | $this->args += $parameter2; |
331 | 332 | } |
332 | 333 | if (!isset($this->args['is_public'])) { |
@@ -54,7 +54,8 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | public function make($class) |
57 | - {} |
|
57 | + { |
|
58 | +} |
|
58 | 59 | |
59 | 60 | /** |
60 | 61 | * @return void |
@@ -25,7 +25,8 @@ |
||
25 | 25 | $attributes['hide'] = implode(',', array_keys($hide)); |
26 | 26 | if ('post_id' === Arr::get($attributes, 'assigned_to')) { |
27 | 27 | $attributes['assigned_to'] = $attributes['post_id']; |
28 | - } elseif ('parent_id' === Arr::get($attributes, 'assigned_to')) { |
|
28 | + } |
|
29 | + elseif ('parent_id' === Arr::get($attributes, 'assigned_to')) { |
|
29 | 30 | $attributes['assigned_to'] = wp_get_post_parent_id($attributes['post_id']); |
30 | 31 | } |
31 | 32 | return $attributes; |
@@ -64,7 +64,8 @@ |
||
64 | 64 | if ($flattenValue) { |
65 | 65 | $value = '['.implode(', ', $value).']'; |
66 | 66 | } |
67 | - } elseif (is_array($value)) { |
|
67 | + } |
|
68 | + elseif (is_array($value)) { |
|
68 | 69 | $result = array_merge($result, static::flatten($value, $flattenValue, $newKey)); |
69 | 70 | continue; |
70 | 71 | } |