Completed
Push — fuckConstructionplan ( c6433a )
by Dominik
01:23
created
Components/GridDownloadPortrait/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('GridDownloadPortrait');
10 10
     });
11 11
 
12 12
     if (!empty($data['items'])) {
13
-        $data['items'] = array_map(function ($item) {
13
+        $data['items'] = array_map(function($item) {
14 14
             if ($item['itemType'] === 'itemFile') {
15 15
                 $fileSize = filesize(get_attached_file($item['file']['id']));
16 16
                 $item['file']['fileSize'] = size_format($fileSize);
Please login to merge, or discard this patch.
Components/GridListSteps/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridListSteps', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=GridListSteps', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('GridListSteps');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/ListTestimorialsCards/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=ListTestimorialsCards', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=ListTestimorialsCards', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('ListTestimorialsCards');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/HeroImage/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=HeroImage', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=HeroImage', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('HeroImage', [
10 10
             [
11 11
                 'name' => 'lazysizes',
Please login to merge, or discard this patch.
Components/GridPosts/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridPosts', function ($data, $parentData) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=GridPosts', function($data, $parentData) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('GridPosts');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/ListSocial/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 use Flynt\Utils\Asset;
6 6
 use Flynt\Features\Components\Component;
7 7
 
8
-add_filter('Flynt/addComponentData?name=ListSocial', function ($data) {
9
-    add_action('wp_enqueue_scripts', function () {
8
+add_filter('Flynt/addComponentData?name=ListSocial', function($data) {
9
+    add_action('wp_enqueue_scripts', function() {
10 10
         Component::enqueueAssets('ListSocial');
11 11
     });
12 12
 
13 13
     if (!empty($data['social'])) {
14
-        $data['social'] = array_map(function ($item) {
14
+        $data['social'] = array_map(function($item) {
15 15
             $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg");
16 16
             return $item;
17 17
         }, $data['social']);
Please login to merge, or discard this patch.
Components/ListSearchResults/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Flynt\Utils\Asset;
6 6
 use Flynt\Features\Components\Component;
7 7
 
8
-add_filter('Flynt/addComponentData?name=ListSearchResults', function ($data, $parentData) {
9
-    add_action('wp_enqueue_scripts', function () {
8
+add_filter('Flynt/addComponentData?name=ListSearchResults', function($data, $parentData) {
9
+    add_action('wp_enqueue_scripts', function() {
10 10
         Component::enqueueAssets('ListSearchResults');
11 11
     });
12 12
 
Please login to merge, or discard this patch.
inc/timber.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,24 +23,24 @@
 block discarded – undo
23 23
 add_action('Flynt\afterRegisterFeatures', function () {
24 24
     Component::enqueueAssets('DocumentDefault', [
25 25
         [
26
-          'name' => 'console-polyfill',
27
-          'type' => 'script',
28
-          'path' => 'vendor/console.js'
26
+            'name' => 'console-polyfill',
27
+            'type' => 'script',
28
+            'path' => 'vendor/console.js'
29 29
         ],
30 30
         [
31
-          'name' => 'babel-polyfill',
32
-          'type' => 'script',
33
-          'path' => 'vendor/babel-polyfill.js'
31
+            'name' => 'babel-polyfill',
32
+            'type' => 'script',
33
+            'path' => 'vendor/babel-polyfill.js'
34 34
         ],
35 35
         [
36
-          'name' => 'document-register-element',
37
-          'type' => 'script',
38
-          'path' => 'vendor/document-register-element.js'
36
+            'name' => 'document-register-element',
37
+            'type' => 'script',
38
+            'path' => 'vendor/document-register-element.js'
39 39
         ],
40 40
         [
41
-          'name' => 'normalize',
42
-          'path' => 'vendor/normalize.css',
43
-          'type' => 'style'
41
+            'name' => 'normalize',
42
+            'path' => 'vendor/normalize.css',
43
+            'type' => 'style'
44 44
         ]
45 45
     ]);
46 46
 
Please login to merge, or discard this 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.