Completed
Push — environmentTesting ( 83c5de...27ab2f )
by Wahiba
02:46
created
Features/CustomTaxonomies/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if (is_array($value)) {
52 52
             // Loop through array and apply translations while keeping keys intact
53 53
             // NOTE: assuming it's a single dimensional array
54
-            return array_reduce(array_keys($value), function ($carry, $key) use ($value) {
54
+            return array_reduce(array_keys($value), function($carry, $key) use ($value) {
55 55
                 return array_merge($carry, [
56 56
                     $key => _x($value[$key], $key, 'flynt-starter-theme')
57 57
                 ]);
Please login to merge, or discard this patch.
Features/Navigation/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Flynt\Features\Navigation;
4 4
 
5
-add_action('init', function () {
5
+add_action('init', function() {
6 6
     register_nav_menus([
7 7
         'navigation_main' => __('Navigation Main', 'flynt-starter-theme'),
8 8
         'navigation_footer' => __('Navigation Footer', 'flynt-starter-theme')
Please login to merge, or discard this patch.
Components/DocumentDefault/functions.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,29 +7,29 @@
 block discarded – undo
7 7
 add_action('wp_enqueue_scripts', function () {
8 8
     Component::enqueueAssets('DocumentDefault', [
9 9
     [
10
-      'name' => 'console-polyfill',
11
-      'type' => 'script',
12
-      'path' => 'vendor/console.js'
10
+        'name' => 'console-polyfill',
11
+        'type' => 'script',
12
+        'path' => 'vendor/console.js'
13 13
     ],
14 14
     [
15
-      'name' => 'babel-polyfill',
16
-      'type' => 'script',
17
-      'path' => 'vendor/babel-polyfill.js'
15
+        'name' => 'babel-polyfill',
16
+        'type' => 'script',
17
+        'path' => 'vendor/babel-polyfill.js'
18 18
     ],
19 19
     [
20
-      'name' => 'document-register-element',
21
-      'type' => 'script',
22
-      'path' => 'vendor/document-register-element.js'
20
+        'name' => 'document-register-element',
21
+        'type' => 'script',
22
+        'path' => 'vendor/document-register-element.js'
23 23
     ],
24 24
     [
25
-      'name' => 'picturefill',
26
-      'path' => 'vendor/picturefill.js',
27
-      'type' => 'script'
25
+        'name' => 'picturefill',
26
+        'path' => 'vendor/picturefill.js',
27
+        'type' => 'script'
28 28
     ],
29 29
     [
30
-      'name' => 'normalize',
31
-      'path' => 'vendor/normalize.css',
32
-      'type' => 'style'
30
+        'name' => 'normalize',
31
+        'path' => 'vendor/normalize.css',
32
+        'type' => 'style'
33 33
     ]
34 34
     ]);
35 35
 }, 0);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 use Timber\Timber;
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_action('wp_enqueue_scripts', function () {
7
+add_action('wp_enqueue_scripts', function() {
8 8
     Component::enqueueAssets('DocumentDefault', [
9 9
     [
10 10
       'name' => 'console-polyfill',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     ]);
35 35
 }, 0);
36 36
 
37
-add_filter('Flynt/addComponentData?name=DocumentDefault', function ($data) {
37
+add_filter('Flynt/addComponentData?name=DocumentDefault', function($data) {
38 38
     $context = Timber::get_context();
39 39
 
40 40
     $output = array(
Please login to merge, or discard this patch.
Components/ComponentLoaderStatic/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Acf\OptionPages;
6 6
 
7
-add_filter('Flynt/addComponentData?name=ComponentLoaderStatic', function ($data, $parentData) {
7
+add_filter('Flynt/addComponentData?name=ComponentLoaderStatic', function($data, $parentData) {
8 8
     $optionPage = (array_key_exists('optionPage', $data)) ? $data['optionPage'] : [];
9 9
     if (is_array($optionPage) &&
10 10
         array_key_exists('optionType', $optionPage) &&
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
     return $data;
24 24
 }, 10, 2);
25 25
 
26
-add_filter('Flynt/dynamicSubcomponents?name=ComponentLoaderStatic', function ($areas, $data, $parentData) {
26
+add_filter('Flynt/dynamicSubcomponents?name=ComponentLoaderStatic', function($areas, $data, $parentData) {
27 27
     if (!empty($areas['components'])) {
28
-        $areas['components'] = array_map(function ($component) use ($data, $parentData) {
28
+        $areas['components'] = array_map(function($component) use ($data, $parentData) {
29 29
             if (isset($component['customData']) && isset($component['customData']['filterArgument'])) {
30 30
                 $filterArgument = $component['customData']['filterArgument'] . '_';
31 31
                 $componentData = [];
Please login to merge, or discard this patch.
Components/ComponentLoaderFlexible/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Acf\OptionPages;
6 6
 
7
-add_filter('Flynt/addComponentData?name=ComponentLoaderFlexible', function ($data) {
7
+add_filter('Flynt/addComponentData?name=ComponentLoaderFlexible', function($data) {
8 8
     $optionPage = (array_key_exists('optionPage', $data)) ? $data['optionPage'] : [];
9 9
     if (is_array($optionPage) &&
10 10
         array_key_exists('optionType', $optionPage) &&
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     return $data;
22 22
 });
23 23
 
24
-add_filter('Flynt/dynamicSubcomponents?name=ComponentLoaderFlexible', function ($areas, $data, $parentData) {
24
+add_filter('Flynt/dynamicSubcomponents?name=ComponentLoaderFlexible', function($areas, $data, $parentData) {
25 25
     $fieldGroup = $data['fieldGroup'];
26 26
     if (array_key_exists($fieldGroup, $data) &&
27 27
         $data[$fieldGroup] !== false
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $fieldGroupData = $parentData['post']->fields[$fieldGroup];
34 34
     }
35 35
     if (isset($fieldGroupData)) {
36
-        $areas['components'] = array_map(function ($field) use ($parentData) {
36
+        $areas['components'] = array_map(function($field) use ($parentData) {
37 37
             return [
38 38
                 'name' => ucfirst($field['acf_fc_layout']),
39 39
                 'customData' => $field,
Please login to merge, or discard this patch.
Features/CustomPostTypes/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if (is_array($value)) {
52 52
             // Loop through array and apply translations while keeping keys intact
53 53
             // NOTE: assuming it's a single dimensional array
54
-            return array_reduce(array_keys($value), function ($carry, $key) use ($value) {
54
+            return array_reduce(array_keys($value), function($carry, $key) use ($value) {
55 55
                 return array_merge($carry, [
56 56
                     $key => _x($value[$key], $key, 'flynt-starter-theme')
57 57
                 ]);
Please login to merge, or discard this patch.
Components/BlockImage/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_action('wp_enqueue_scripts', function () {
7
+add_action('wp_enqueue_scripts', function() {
8 8
     Component::enqueueAssets('BlockImage');
9 9
 });
Please login to merge, or discard this patch.
Components/BlockWysiwyg/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Flynt\Features\Components\Component;
5 5
 
6
-add_action('wp_enqueue_scripts', function () {
6
+add_action('wp_enqueue_scripts', function() {
7 7
     Component::enqueueAssets('BlockWysiwyg');
8 8
 });
Please login to merge, or discard this patch.
Components/BlockNotFound/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_action('wp_enqueue_scripts', function () {
7
+add_action('wp_enqueue_scripts', function() {
8 8
     Component::enqueueAssets('BlockNotFound');
9 9
 });
Please login to merge, or discard this patch.