Passed
Push — master ( 3303f4...09741c )
by Dev
13:58
created
src/Entity/PageExtendedMainContentTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 
45 45
         if ($this->mainContentIsMarkdown) {
46 46
             if ($this->chapeau) {
47
-                $this->chapeau = '{% filter markdown %}' . $this->chapeau . '{% endfilter %}';
47
+                $this->chapeau = '{% filter markdown %}'.$this->chapeau.'{% endfilter %}';
48 48
             }
49 49
             if ($this->readableContent) {
50
-                $this->readableContent = '{% filter markdown %}' . $this->readableContent . '{% endfilter %}';
50
+                $this->readableContent = '{% filter markdown %}'.$this->readableContent.'{% endfilter %}';
51 51
             }
52 52
         }
53 53
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         } else {
160 160
             $vars = array_keys(get_object_vars($this));
161 161
             if (in_array($method, $vars)) {
162
-                return call_user_func_array([$this, 'get' . ucfirst($method)], $arguments);
162
+                return call_user_func_array([$this, 'get'.ucfirst($method)], $arguments);
163 163
             }
164 164
 
165 165
             return $this->getOtherProperty(lcfirst($method)) ?? $this->getEmc($method);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     // To remove next release
170 170
     public function getEmc($name)
171 171
     {
172
-        if (preg_match('/<!--"' . $name . '"--(.*)--\/-->/sU', $this->getMainContent(), $match)) {
172
+        if (preg_match('/<!--"'.$name.'"--(.*)--\/-->/sU', $this->getMainContent(), $match)) {
173 173
             return $match[1];
174 174
         }
175 175
     }
Please login to merge, or discard this patch.