Completed
Push — ci ( 3f8a36...bba7b9 )
by Dominik
17:20
created
Features/Acf/FlexibleContentToggle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         if (is_admin()) {
16 16
             // adds buttons to collapse/expand components
17
-            add_filter('acf/get_field_label', function ($label, $field) {
17
+            add_filter('acf/get_field_label', function($label, $field) {
18 18
                 if ($field['type'] === 'flexible_content') {
19 19
                     $label .= '<span class="flexible-content-controls">';
20 20
                     $label .= '<a class="acf-icon small -collapse collapse-all" title="collapse all"></a>';
Please login to merge, or discard this patch.
Features/Acf/FieldGroupComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             return;
45 45
         }
46 46
 
47
-        FileLoader::iterateDir($dir, function ($file) {
47
+        FileLoader::iterateDir($dir, function($file) {
48 48
             if ($file->getExtension() === 'json') {
49 49
                 $filePath = $file->getPathname();
50 50
                 $config = json_decode(file_get_contents($filePath), true);
@@ -75,14 +75,14 @@  discard block
 block discarded – undo
75 75
             $groupKey = ucfirst($groupKey);
76 76
             $filterName = self::FILTER_NAMESPACE . "/{$componentName}/Fields/{$groupKey}";
77 77
 
78
-            add_filter($filterName, function ($config) use ($groupValue) {
78
+            add_filter($filterName, function($config) use ($groupValue) {
79 79
                 return $groupValue;
80 80
             });
81 81
             if (ArrayHelpers::isAssoc($groupValue) && array_key_exists('sub_fields', $groupValue)) {
82 82
                 $filterName .= '/SubFields';
83 83
                 $subFields = $groupValue['sub_fields'];
84 84
 
85
-                add_filter($filterName, function ($subFieldsconfig) use ($subFields) {
85
+                add_filter($filterName, function($subFieldsconfig) use ($subFields) {
86 86
                     return $subFields;
87 87
                 });
88 88
                 self::addFilterForSubFields($filterName, $subFields);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             $subFieldName = ucfirst($subField['name']);
106 106
             $subFilterName = $parentFilterName . "/{$subFieldName}";
107 107
 
108
-            add_filter($subFilterName, function ($subFieldConfig) use ($subField) {
108
+            add_filter($subFilterName, function($subFieldConfig) use ($subField) {
109 109
                 return $subField;
110 110
             });
111 111
         }
Please login to merge, or discard this patch.
Features/Acf/GoogleMaps.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
 {
7 7
     public static function init()
8 8
     {
9
-        add_filter('acf/fields/google_map/api', function ($api) {
9
+        add_filter('acf/fields/google_map/api', function($api) {
10 10
             $apiKey = OptionPages::getOption('globalOptions', 'feature', 'Acf', 'googleMapsApiKey');
11 11
             if ($apiKey) {
12 12
                 $api['key'] = $apiKey;
Please login to merge, or discard this patch.
Features/CustomPostTypes/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Flynt\Features\CustomPostTypes\CustomPostTypeRegister;
10 10
 
11 11
 // NOTE: this needs to happen on init to allow taxonomies to register
12
-add_action('init', function () {
12
+add_action('init', function() {
13 13
     $featureOptions = Feature::getOption('flynt-custom-post-types', 0);
14 14
     $dir = isset($featureOptions['dir']) ? $featureOptions['dir'] : null;
15 15
     $fileName = isset($featureOptions['fileName']) ? $featureOptions['fileName'] : null;
Please login to merge, or discard this patch.
Features/CustomPostTypes/CustomPostTypeRegister.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     protected static function cleanConfig($config)
53 53
     {
54
-        $cleanConfig = array_map(function ($value) {
54
+        $cleanConfig = array_map(function($value) {
55 55
             if (is_array($value)) {
56 56
                 return self::cleanConfig($value);
57 57
             }
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
         }, $config);
61 61
 
62 62
         // remove null values or empty arrays
63
-        return array_filter($cleanConfig, function ($value) {
63
+        return array_filter($cleanConfig, function($value) {
64 64
             return !(is_null($value) || (is_array($value) && empty($value)));
65 65
         });
66 66
     }
67 67
 
68 68
     protected static function getConfigs($dir)
69 69
     {
70
-        $configs = FileLoader::iterateDir($dir, function ($file) {
70
+        $configs = FileLoader::iterateDir($dir, function($file) {
71 71
             if ($file->isDir()) {
72 72
                 $configPath = $file->getPathname() . '/' . self::$fileName;
73 73
 
Please login to merge, or discard this patch.
Features/MimeTypes/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\MimeTypes;
4 4
 
5
-add_filter('upload_mimes', function ($mimes) {
5
+add_filter('upload_mimes', function($mimes) {
6 6
     $mimes['svg'] = 'image/svg+xml';
7 7
     return $mimes;
8 8
 });
Please login to merge, or discard this patch.
Features/AdminNotices/AdminNoticeManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         . "<p><strong>{$options['title']}</strong></p>"
69 69
         . $msg . '</div>';
70 70
 
71
-        add_action('admin_notices', function () use ($msg) {
71
+        add_action('admin_notices', function() use ($msg) {
72 72
             echo $msg;
73 73
         });
74 74
 
Please login to merge, or discard this patch.
Features/Templates/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
 namespace Flynt\Features\Templates;
4 4
 
5 5
 // Set Config Path
6
-add_filter('Flynt/configPath', function ($filePath, $fileName) {
6
+add_filter('Flynt/configPath', function($filePath, $fileName) {
7 7
     return get_template_directory() . '/config/templates/' . $fileName;
8 8
 }, 10, 2);
Please login to merge, or discard this patch.
Features/Components/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
 // register all components
13 13
 $componentPath = trailingslashit(Feature::getOption('flynt-components', 0));
14 14
 
15
-add_action('Flynt/afterRegisterFeatures', function () use ($componentPath) {
15
+add_action('Flynt/afterRegisterFeatures', function() use ($componentPath) {
16 16
     if (is_dir($componentPath)) {
17
-        FileLoader::iterateDir($componentPath, function ($dir) {
17
+        FileLoader::iterateDir($componentPath, function($dir) {
18 18
             if ($dir->isDir()) {
19 19
                 Flynt\registerComponent($dir->getFilename());
20 20
             }
@@ -23,6 +23,6 @@  discard block
 block discarded – undo
23 23
 });
24 24
 
25 25
 // set Component Path
26
-add_filter('Flynt/componentPath', function ($defaultPath, $componentName) use ($componentPath) {
26
+add_filter('Flynt/componentPath', function($defaultPath, $componentName) use ($componentPath) {
27 27
     return $componentPath . $componentName;
28 28
 }, 10, 2);
Please login to merge, or discard this patch.