Completed
Push — 8.x-1.x ( f45fe8...755b68 )
by
unknown
04:06
created
src/Form/UrlEmbedDialog.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,8 +109,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.