Passed
Push — develop ( 84f32e...989890 )
by
unknown
15:42 queued 41s
created
neon/cms/components/CmsUrlRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
 	 */
31 31
 	public function parseRequest($manager, $request)
32 32
 	{
33
-		$pathInfo = '/' . $request->getPathInfo();
33
+		$pathInfo = '/'.$request->getPathInfo();
34 34
 		$url = neon()->cache->getOrSet($pathInfo, function() use ($pathInfo) {
35 35
 			return CmsUrl::find()->where(['url' => $pathInfo])->limit(1)->one();
36 36
 		});
37 37
 		// if the url is not in the url table then return false to continue processing other route rules
38 38
 		// typically in a neon setup the module/controller/action rule
39
-		if (! $url) return false;
39
+		if (!$url) return false;
40 40
 		// check if the url found represents a redirect
41 41
 		if ($url['redirect'] !== null) {
42 42
 			neon()->response->redirect($url['redirect'], 301)->send();
Please login to merge, or discard this patch.