Passed
Push — master ( 07fb16...819842 )
by Robbie
04:02 queued 10s
created
src/IFramePage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $fields->addFieldsToTab('Root.Main', [
52 52
             $url = TextField::create('IFrameURL', 'Iframe URL'),
53 53
             TextField::create('IFrameTitle', 'Description of contents (title)')
54
-                ->setDescription(_t(__CLASS__ . '.TITLE_DESCRIPTION', 'Used by screen readers')),
54
+                ->setDescription(_t(__CLASS__.'.TITLE_DESCRIPTION', 'Used by screen readers')),
55 55
         ]);
56 56
         $url->setRightTitle(
57 57
             DBField::create_field(
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $allowed_schemes = array('http', 'https');
144 144
         if ($matches = parse_url($this->IFrameURL)) {
145 145
             if (isset($matches['scheme']) && !in_array($matches['scheme'], $allowed_schemes)) {
146
-                $result->addError(_t(__CLASS__ . '.VALIDATION_BANNEDURLSCHEME', "This URL scheme is not allowed."));
146
+                $result->addError(_t(__CLASS__.'.VALIDATION_BANNEDURLSCHEME', "This URL scheme is not allowed."));
147 147
             }
148 148
         }
149 149
 
Please login to merge, or discard this patch.