Passed
Pull Request — master (#407)
by
unknown
21:34 queued 10:31
created
src/Aimeos/Shop/Controller/CatalogController.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
 		foreach( app( 'config' )->get( 'shop.page.catalog-detail' ) as $name )
53 53
 		{
54 54
 			try {
55
-                $params['aiheader'][$name] = Shop::get( $name )->getHeader();
56
-			    $params['aibody'][$name] = Shop::get( $name )->getBody();
57
-            } catch(\Exception $e) {
58
-                if ( $e->getCode() === 404 ) { abort(404); }
59
-                throw $e;
60
-            }
55
+				$params['aiheader'][$name] = Shop::get( $name )->getHeader();
56
+				$params['aibody'][$name] = Shop::get( $name )->getBody();
57
+			} catch(\Exception $e) {
58
+				if ( $e->getCode() === 404 ) { abort(404); }
59
+				throw $e;
60
+			}
61 61
 		}
62 62
 
63 63
 		return Response::view( Shop::template( 'catalog.detail' ), $params )
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
 			try {
55 55
                 $params['aiheader'][$name] = Shop::get( $name )->getHeader();
56 56
 			    $params['aibody'][$name] = Shop::get( $name )->getBody();
57
-            } catch(\Exception $e) {
58
-                if ( $e->getCode() === 404 ) { abort(404); }
57
+            } catch( \Exception $e ) {
58
+                if( $e->getCode() === 404 ) { abort( 404 ); }
59 59
                 throw $e;
60 60
             }
61 61
 		}
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,10 +51,13 @@
 block discarded – undo
51 51
 	{
52 52
 		foreach( app( 'config' )->get( 'shop.page.catalog-detail' ) as $name )
53 53
 		{
54
-			try {
54
+			try
55
+			{
55 56
                 $params['aiheader'][$name] = Shop::get( $name )->getHeader();
56 57
 			    $params['aibody'][$name] = Shop::get( $name )->getBody();
57
-            } catch(\Exception $e) {
58
+            }
59
+            catch(\Exception $e)
60
+            {
58 61
                 if ( $e->getCode() === 404 ) { abort(404); }
59 62
                 throw $e;
60 63
             }
Please login to merge, or discard this patch.