@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $this->assertText($button_label, 'Test embed_button appears on the list page'); |
| 37 | 37 | |
| 38 | 38 | // Edit embed button. |
| 39 | - $this->drupalGet('admin/config/content/embed/button/manage/' . $button_id); |
|
| 39 | + $this->drupalGet('admin/config/content/embed/button/manage/'.$button_id); |
|
| 40 | 40 | $new_button_label = $this->randomMachineName(); |
| 41 | 41 | $edit = [ |
| 42 | 42 | 'label' => $new_button_label, |
@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | $this->assertNoText($button_label, 'Old label does not appears on the list page'); |
| 49 | 49 | |
| 50 | 50 | // Delete embed button. |
| 51 | - $this->drupalGet('admin/config/content/embed/button/manage/' . $button_id . '/delete'); |
|
| 51 | + $this->drupalGet('admin/config/content/embed/button/manage/'.$button_id.'/delete'); |
|
| 52 | 52 | $this->drupalPostForm(NULL, [], 'Delete'); |
| 53 | 53 | // Ensure that the deleted embed button no longer exists. |
| 54 | - $this->drupalGet('admin/config/content/embed/button/manage/' . $button_id); |
|
| 54 | + $this->drupalGet('admin/config/content/embed/button/manage/'.$button_id); |
|
| 55 | 55 | $this->assertResponse(404, 'Deleted embed button no longer exists.'); |
| 56 | 56 | // Ensure that the deleted button is no longer listed. |
| 57 | 57 | $this->drupalGet('admin/config/content/embed'); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->drupalPostForm(NULL, $edit, 'Save'); |
| 78 | 78 | $this->assertText('Helicopters are just rotorcraft.'); |
| 79 | 79 | |
| 80 | - $this->drupalGet('admin/config/content/embed/button/manage/' . $button_id); |
|
| 80 | + $this->drupalGet('admin/config/content/embed/button/manage/'.$button_id); |
|
| 81 | 81 | $this->assertFieldByName('type_settings[aircraft_type]', 'rotorcraft'); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $ckeditor_plugin_manager = \Drupal::service('plugin.manager.ckeditor.plugin'); |
| 21 | 21 | |
| 22 | 22 | // Get a list of all buttons that are provided by all plugins. |
| 23 | - $button_ids = array_reduce($ckeditor_plugin_manager->getButtons(), function ($result, $item) { |
|
| 23 | + $button_ids = array_reduce($ckeditor_plugin_manager->getButtons(), function($result, $item) { |
|
| 24 | 24 | return array_merge($result, array_keys($item)); |
| 25 | 25 | }, []); |
| 26 | 26 | |