Passed
Push — main ( 9620d4...3c0b0e )
by Dante
01:30
created
src/Mailer/PlaceholderMailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * @inheritDoc
35 35
      */
36
-    public function __construct(array|string $config)
36
+    public function __construct(array | string $config)
37 37
     {
38 38
         $placeholdeConfig = (array)static::getConfig(static::$name);
39 39
         if (empty($config) && !empty($placeholdeConfig)) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $pattern = '/\{\%\s*if\s+([a-zA-Z1-9_\.]+)\s*\%\}(.*?)\{\%\s*endif\s*\%\}/s';
82 82
 
83
-        return preg_replace_callback($pattern, function ($matches) use ($vars) {
83
+        return preg_replace_callback($pattern, function($matches) use ($vars) {
84 84
             $key = trim($matches[1]);
85 85
             $content = $matches[2];
86 86
             $value = Hash::get($vars, $key);
Please login to merge, or discard this patch.