Completed
Push — constructionplanless ( c6433a )
by Dominik
01:15
created
inc/timber.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 use Flynt\Utils\Asset;
5 5
 use function Flynt\Features\TimberLoader\renderTwigIndex;
6 6
 
7
-add_filter('get_twig', function ($twig) {
7
+add_filter('get_twig', function($twig) {
8 8
     $twig->addFunction(new Twig_SimpleFunction('renderComponent', 'renderComponent'));
9 9
 
10
-    $twig->addFunction(new Twig_SimpleFunction('renderFlexibleContent', function ($fcField) {
11
-        return implode('', array_map(function ($field) {
10
+    $twig->addFunction(new Twig_SimpleFunction('renderFlexibleContent', function($fcField) {
11
+        return implode('', array_map(function($field) {
12 12
             return renderComponent(ucfirst($field['acf_fc_layout']), $field);
13 13
         }, $fcField));
14 14
     }));
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
     return $twig;
17 17
 });
18 18
 
19
-add_action('after_setup_theme', function () {
19
+add_action('after_setup_theme', function() {
20 20
     new Timber\Timber();
21 21
 });
22 22
 
23
-add_action('Flynt\afterRegisterFeatures', function () {
23
+add_action('Flynt\afterRegisterFeatures', function() {
24 24
     Component::enqueueAssets('DocumentDefault', [
25 25
         [
26 26
           'name' => 'console-polyfill',
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     Component::enqueueAssets('LayoutMultiplePost');
57 57
 });
58 58
 
59
-function renderComponent ($name, $data = [])
59
+function renderComponent($name, $data = [])
60 60
 {
61 61
     $data = apply_filters(
62 62
         'Flynt/addComponentData',
Please login to merge, or discard this patch.