Passed
Push — master ( 33f024...4e8411 )
by
unknown
03:48
created
Components/FeatureAdminComponentScreenshots/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
 use Flynt\ComponentManager;
5 5
 use Flynt\Utils\Asset;
6 6
 
7
-add_action('admin_enqueue_scripts', function () {
7
+add_action('admin_enqueue_scripts', function() {
8 8
     $componentManager = ComponentManager::getInstance();
9 9
     $templateDirectory = get_template_directory();
10 10
     $data = [
11 11
         'templateDirectoryUri' => get_template_directory_uri(),
12
-        'components' => array_map(function ($componentPath) use ($templateDirectory) {
12
+        'components' => array_map(function($componentPath) use ($templateDirectory) {
13 13
             return str_replace($templateDirectory, '', $componentPath);
14 14
         }, $componentManager->getAll()),
15 15
     ];
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 if (class_exists('acf')) {
20 20
     if (is_admin()) {
21 21
         // add image to the flexible content component name
22
-        add_filter('acf/fields/flexible_content/layout_title', function ($title, $field, $layout, $i) {
22
+        add_filter('acf/fields/flexible_content/layout_title', function($title, $field, $layout, $i) {
23 23
             $componentManager = ComponentManager::getInstance();
24 24
             $componentName = ucfirst($layout['name']);
25 25
             $componentPathFull = $componentManager->getComponentDirPath($componentName);
Please login to merge, or discard this patch.
Components/NavigationFooter/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 use Flynt\Utils\Options;
6 6
 use Timber\Menu;
7 7
 
8
-add_action('init', function () {
8
+add_action('init', function() {
9 9
     register_nav_menus([
10 10
         'navigation_footer' => __('Navigation Footer', 'flynt')
11 11
     ]);
12 12
 });
13 13
 
14
-add_filter('Flynt/addComponentData?name=NavigationFooter', function ($data) {
14
+add_filter('Flynt/addComponentData?name=NavigationFooter', function($data) {
15 15
     $data['maxLevel'] = 0;
16 16
     $data['menu'] = new Menu('navigation_footer');
17 17
 
Please login to merge, or discard this patch.
Components/BlockVideoOembed/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Flynt\FieldVariables;
6 6
 use Flynt\Utils\Oembed;
7 7
 
8
-add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) {
8
+add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) {
9 9
     $data['video'] = Oembed::setSrcAsDataAttribute(
10 10
         $data['oembed'],
11 11
         [
Please login to merge, or discard this patch.
Components/SliderImages/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Flynt\FieldVariables;
6 6
 use Flynt\Utils\Options;
7 7
 
8
-add_filter('Flynt/addComponentData?name=SliderImages', function ($data) {
8
+add_filter('Flynt/addComponentData?name=SliderImages', function($data) {
9 9
     $translatableOptions = Options::getTranslatable('SliderOptions');
10 10
     $data['jsonData'] = [
11 11
         'options' => array_merge($translatableOptions, $data['options']),
Please login to merge, or discard this patch.
inc/fieldGroups/pageComponents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use ACFComposer\ACFComposer;
4 4
 use Flynt\Components;
5 5
 
6
-add_action('Flynt/afterRegisterComponents', function () {
6
+add_action('Flynt/afterRegisterComponents', function() {
7 7
     ACFComposer::registerFieldGroup([
8 8
         'name' => 'pageComponents',
9 9
         'title' => 'Page Components',
Please login to merge, or discard this patch.
inc/fieldGroups/postComponents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use ACFComposer\ACFComposer;
4 4
 use Flynt\Components;
5 5
 
6
-add_action('Flynt/afterRegisterComponents', function () {
6
+add_action('Flynt/afterRegisterComponents', function() {
7 7
     ACFComposer::registerFieldGroup([
8 8
         'name' => 'postComponents',
9 9
         'title' => 'Post Components',
Please login to merge, or discard this patch.
Components/BlockCookieNotice/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use Flynt\FieldVariables;
7 7
 use Timber\Timber;
8 8
 
9
-add_action('wp_footer', function () {
9
+add_action('wp_footer', function() {
10 10
     $context = Timber::get_context();
11 11
     Timber::render_string('{{ renderComponent("BlockCookieNotice") }}', $context);
12 12
 });
Please login to merge, or discard this patch.
Components/GridPostsLatest/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 const POST_TYPE = 'post';
10 10
 
11
-add_filter('Flynt/addComponentData?name=GridPostsLatest', function ($data) {
11
+add_filter('Flynt/addComponentData?name=GridPostsLatest', function($data) {
12 12
     $postType = POST_TYPE;
13 13
 
14 14
     $data['taxonomies'] = $data['taxonomies'] ?: [];
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $data['items'] = Timber::get_posts([
17 17
         'post_status' => 'publish',
18 18
         'post_type' => $postType,
19
-        'category' => join(',', array_map(function ($taxonomy) {
19
+        'category' => join(',', array_map(function($taxonomy) {
20 20
             return $taxonomy->term_id;
21 21
         }, $data['taxonomies'])),
22 22
         'posts_per_page' => $data['options']['columns'],
Please login to merge, or discard this patch.
inc/assets.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@  discard block
 block discarded – undo
3 3
 use Flynt\Utils\Asset;
4 4
 use Flynt\Utils\ScriptLoader;
5 5
 
6
-call_user_func(function () {
6
+call_user_func(function() {
7 7
     $loader = new ScriptLoader();
8 8
     add_filter('script_loader_tag', [$loader, 'filterScriptLoaderTag'], 10, 2);
9 9
 });
10 10
 
11
-add_action('wp_enqueue_scripts', function () {
11
+add_action('wp_enqueue_scripts', function() {
12 12
     Asset::enqueue([
13 13
         'name' => 'Flynt/assets',
14 14
         'path' => 'assets/main.js',
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     ]);
23 23
 });
24 24
 
25
-add_action('admin_enqueue_scripts', function () {
25
+add_action('admin_enqueue_scripts', function() {
26 26
     Asset::enqueue([
27 27
         'name' => 'Flynt/assets/admin',
28 28
         'path' => 'assets/admin.js',
Please login to merge, or discard this patch.