Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / ckeditor / src / Plugin / CKEditorPlugin / StylesCombo.php
index 7b3386efe034de7d248ce3866483873a20e92b52..5e45bde777424439876a5f969b09b3b584316853 100644 (file)
@@ -101,7 +101,9 @@ class StylesCombo extends CKEditorPluginBase implements CKEditorPluginConfigurab
       $form_state->setError($element, $this->t('The provided list of styles is syntactically incorrect.'));
     }
     else {
-      $style_names = array_map(function ($style) { return $style['name']; }, $styles_setting);
+      $style_names = array_map(function ($style) {
+        return $style['name'];
+      }, $styles_setting);
       if (count($style_names) !== count(array_unique($style_names))) {
         $form_state->setError($element, $this->t('Each style must have a unique label.'));
       }
@@ -155,7 +157,7 @@ class StylesCombo extends CKEditorPluginBase implements CKEditorPluginConfigurab
       ];
       if (!empty($classes)) {
         $configured_style['attributes'] = [
-          'class' => implode(' ', array_map('trim', $classes))
+          'class' => implode(' ', array_map('trim', $classes)),
         ];
       }
       $styles_set[] = $configured_style;