Completed
Push — testTinyMceRebase ( 36a97d )
by Doğa
03:12
created
Features/TinyMce/functions.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Flynt\Features\TinyMce;
4 4
 
5
-use Flynt\Utils\Feature;
6 5
 use Flynt\Utils\Asset;
7 6
 
8 7
 // Clean Up TinyMCE Buttons
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@  discard block
 block discarded – undo
8 8
 // Clean Up TinyMCE Buttons
9 9
 
10 10
 // First Bar
11
-add_filter('mce_buttons', function ($buttons) {
11
+add_filter('mce_buttons', function($buttons) {
12 12
     $toolbars = getToolbars();
13 13
     return $toolbars['default'][0];
14 14
 });
15 15
 
16 16
 // Second Bar
17
-add_filter('mce_buttons_2', function ($buttons) {
17
+add_filter('mce_buttons_2', function($buttons) {
18 18
     return [];
19 19
 });
20 20
 
21
-add_filter('tiny_mce_before_init', function ($init) {
21
+add_filter('tiny_mce_before_init', function($init) {
22 22
     $init['block_formats'] = getBlockFormats();
23 23
     $init['style_formats'] = getStyleFormats();
24 24
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 });
27 27
 
28 28
 // TODO: refactor this
29
-add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) {
29
+add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) {
30 30
     // Load Toolbars and parse them into TinyMCE
31 31
     $toolbarsFromFile = getToolbars();
32 32
     if ($toolbarsFromFile) {
Please login to merge, or discard this patch.