Completed
Pull Request — master (#21)
by Robbie
06:58
created
src/MultiDomainRequestFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         // Not the best place for validation, but _config.php is too early.
39 39
         if (!MultiDomain::get_primary_domain()) {
40 40
             throw new Exception(
41
-                'MultiDomain must define a "' . MultiDomain::KEY_PRIMARY . '" domain in the config, under "domains"'
41
+                'MultiDomain must define a "'.MultiDomain::KEY_PRIMARY.'" domain in the config, under "domains"'
42 42
             );
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/MultiDomainDomain.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 
76 76
         $globalAllowed = (array) Config::inst()->get(MultiDomain::class, 'allow');
77 77
         $globalForced = (array) Config::inst()->get(MultiDomain::class, 'force');
78
-        $myAllowed = isset($config['allow']) ? $config['allow'] : array ();
79
-        $myForced = isset($config['force']) ? $config['force'] : array ();
78
+        $myAllowed = isset($config['allow']) ? $config['allow'] : array();
79
+        $myForced = isset($config['force']) ? $config['force'] : array();
80 80
         $this->allowedPaths = array_merge($globalAllowed, $myAllowed);
81 81
         $this->forcedPaths = array_merge($globalForced, $myForced);
82 82
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         }
168 168
 
169 169
         $domainUrl = str_replace('/', '\/', $this->getURL());
170
-        return preg_replace('/^\/?' . $domainUrl . '\//', '', $url);
170
+        return preg_replace('/^\/?'.$domainUrl.'\//', '', $url);
171 171
     }
172 172
 
173 173
     /**
Please login to merge, or discard this patch.