@@ -27,7 +27,7 @@ |
||
27 | 27 | return $output; |
28 | 28 | } |
29 | 29 | |
30 | - // this action needs to be removed by the user if they want to overwrite this functionality |
|
30 | + // this action needs to be removed by the user if they want to overwrite this functionality |
|
31 | 31 | public static function loadFunctionsFile($componentName) |
32 | 32 | { |
33 | 33 | $componentManager = ComponentManager::getInstance(); |
@@ -48,13 +48,13 @@ |
||
48 | 48 | return ''; |
49 | 49 | } |
50 | 50 | |
51 | - $area = function ($areaName) use ($areaHtml) { |
|
51 | + $area = function($areaName) use ($areaHtml) { |
|
52 | 52 | if (array_key_exists($areaName, $areaHtml)) { |
53 | 53 | return $areaHtml[$areaName]; |
54 | 54 | } |
55 | 55 | }; |
56 | 56 | |
57 | - $data = function () use ($componentData) { |
|
57 | + $data = function() use ($componentData) { |
|
58 | 58 | $args = func_get_args(); |
59 | 59 | array_unshift($args, $componentData); |
60 | 60 | return Helpers::extractNestedDataFromArray($args); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | function registerHooks() |
80 | 80 | { |
81 | - add_filter('Flynt/renderComponent', function ($output, $componentName, $data) { |
|
81 | + add_filter('Flynt/renderComponent', function($output, $componentName, $data) { |
|
82 | 82 | return apply_filters( |
83 | 83 | "Flynt/renderComponent?name={$componentName}", |
84 | 84 | $output, |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ); |
88 | 88 | }, 10, 3); |
89 | 89 | |
90 | - add_filter('Flynt/addComponentData', function ($data, $componentName) { |
|
90 | + add_filter('Flynt/addComponentData', function($data, $componentName) { |
|
91 | 91 | return apply_filters( |
92 | 92 | "Flynt/addComponentData?name={$componentName}", |
93 | 93 | $data, |