Passed
Push — 2.7.15 ( ...a7b5ee )
by steve
17:35
created
neon/cms/components/CmsUrlRule.php 2 patches
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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@
 block discarded – undo
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) {
40
+			return false;
41
+		}
40 42
 		// check if the url found represents a redirect
41 43
 		if ($url['redirect'] !== null) {
42 44
 			neon()->response->redirect($url['redirect'], 301)->send();
Please login to merge, or discard this patch.