Completed
Pull Request — 8.x-1.x (#24)
by
unknown
03:10
created
Category
src/Form/UrlEmbedDialog.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,8 +143,7 @@
 block discarded – undo
143 143
         '#weight' => -10,
144 144
       );
145 145
       $response->addCommand(new HtmlCommand('#url-embed-dialog-form', $form));
146
-    }
147
-    else {
146
+    } else {
148 147
       $response->addCommand(new EditorDialogSave($values));
149 148
       $response->addCommand(new CloseModalDialogCommand());
150 149
     }
Please login to merge, or discard this patch.
src/Plugin/Filter/UrlEmbedFilter.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
100 99
         <ul>
101 100
           <li><code>&lt;drupal-url data-embed-url="https://www.youtube.com/watch?v=xxXXxxXxxxX" data-url-provider="YouTube" /&gt;</code></li>
102 101
         </ul>');
103
-    }
104
-    else {
102
+    } else {
105 103
       return $this->t('You can embed URLs.');
106 104
     }
107 105
   }
Please login to merge, or discard this patch.