@@ -109,8 +109,7 @@ discard block |
||
| 109 | 109 | if (!empty($url_element['data-embed-url']) && $info = $this->urlEmbed()->getEmbed($url_element['data-embed-url'])) { |
| 110 | 110 | $url_element['data-url-provider'] = $info->getProviderName(); |
| 111 | 111 | } |
| 112 | - } |
|
| 113 | - catch (\Exception $e) { |
|
| 112 | + } catch (\Exception $e) { |
|
| 114 | 113 | watchdog_exception('url_embed', $e); |
| 115 | 114 | } |
| 116 | 115 | |
@@ -160,8 +159,7 @@ discard block |
||
| 160 | 159 | '#weight' => -10, |
| 161 | 160 | ); |
| 162 | 161 | $response->addCommand(new HtmlCommand('#url-embed-dialog-form', $form)); |
| 163 | - } |
|
| 164 | - else { |
|
| 162 | + } else { |
|
| 165 | 163 | $response->addCommand(new EditorDialogSave($values)); |
| 166 | 164 | $response->addCommand(new CloseModalDialogCommand()); |
| 167 | 165 | } |
@@ -77,8 +77,7 @@ discard block |
||
| 77 | 77 | $url_output = $info->getCode(); |
| 78 | 78 | $node->setAttribute('data-url-provider', $info->getProviderName()); |
| 79 | 79 | } |
| 80 | - } |
|
| 81 | - catch (\Exception $e) { |
|
| 80 | + } catch (\Exception $e) { |
|
| 82 | 81 | watchdog_exception('url_embed', $e); |
| 83 | 82 | } |
| 84 | 83 | |
@@ -100,8 +99,7 @@ discard block |
||
| 100 | 99 | <ul> |
| 101 | 100 | <li><code><drupal-url data-embed-url="https://www.youtube.com/watch?v=xxXXxxXxxxX" data-url-provider="YouTube" /></code></li> |
| 102 | 101 | </ul>'); |
| 103 | - } |
|
| 104 | - else { |
|
| 102 | + } else { |
|
| 105 | 103 | return $this->t('You can embed URLs.'); |
| 106 | 104 | } |
| 107 | 105 | } |