Passed
Push — master ( a5364c...2afa51 )
by Aimeos
03:05
created
Command/JobsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,12 +118,12 @@
 block discarded – undo
118 118
 	protected function getContext()
119 119
 	{
120 120
 		$container = $this->getContainer();
121
-		$aimeos = $container->get('aimeos')->get();
121
+		$aimeos = $container->get( 'aimeos' )->get();
122 122
 		$context = $container->get( 'aimeos.context' )->get( false, 'command' );
123 123
 
124 124
 		$tmplPaths = $aimeos->getCustomPaths( 'controller/jobs/templates' );
125 125
 		$tmplPaths = array_merge( $tmplPaths, $aimeos->getCustomPaths( 'client/html/templates' ) );
126
-		$view = $container->get('aimeos.view')->create( $context, $tmplPaths );
126
+		$view = $container->get( 'aimeos.view' )->create( $context, $tmplPaths );
127 127
 
128 128
 		$langManager = \Aimeos\MShop::create( $context, 'locale/language' );
129 129
 		$langids = array_keys( $langManager->searchItems( $langManager->createSearch( true ) ) );
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -33,22 +33,22 @@
 block discarded – undo
33 33
 
34 34
 		$rootNode
35 35
 			->children()
36
-				->booleanNode('disable_sites')->defaultValue( true )->end()
37
-				->booleanNode('apc_enable')->defaultValue( false )->end()
38
-				->scalarNode('apc_prefix')->defaultValue( 'sf2:' )->end()
39
-				->scalarNode('extdir')->end()
40
-				->scalarNode('uploaddir')->end()
41
-				->variableNode('admin')->defaultValue( array() )->end()
42
-				->variableNode('client')->defaultValue( array() )->end()
43
-				->variableNode('controller')->defaultValue( array() )->end()
44
-				->variableNode('i18n')->defaultValue( array() )->end()
45
-				->variableNode('madmin')->defaultValue( array() )->end()
46
-				->variableNode('mshop')->defaultValue( array() )->end()
47
-				->variableNode('resource')->defaultValue( array() )->end()
48
-				->variableNode('page')->defaultValue( array() )->end()
49
-				->variableNode('backend')->defaultValue( array() )->end()
50
-				->variableNode('frontend')->defaultValue( array() )->end()
51
-				->variableNode('command')->defaultValue( array() )->end()
36
+				->booleanNode( 'disable_sites' )->defaultValue( true )->end()
37
+				->booleanNode( 'apc_enable' )->defaultValue( false )->end()
38
+				->scalarNode( 'apc_prefix' )->defaultValue( 'sf2:' )->end()
39
+				->scalarNode( 'extdir' )->end()
40
+				->scalarNode( 'uploaddir' )->end()
41
+				->variableNode( 'admin' )->defaultValue( array() )->end()
42
+				->variableNode( 'client' )->defaultValue( array() )->end()
43
+				->variableNode( 'controller' )->defaultValue( array() )->end()
44
+				->variableNode( 'i18n' )->defaultValue( array() )->end()
45
+				->variableNode( 'madmin' )->defaultValue( array() )->end()
46
+				->variableNode( 'mshop' )->defaultValue( array() )->end()
47
+				->variableNode( 'resource' )->defaultValue( array() )->end()
48
+				->variableNode( 'page' )->defaultValue( array() )->end()
49
+				->variableNode( 'backend' )->defaultValue( array() )->end()
50
+				->variableNode( 'frontend' )->defaultValue( array() )->end()
51
+				->variableNode( 'command' )->defaultValue( array() )->end()
52 52
 			->end()
53 53
 		;
54 54
 
Please login to merge, or discard this patch.
Controller/JsonadmController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,10 +127,10 @@
 block discarded – undo
127 127
 		$templatePaths = $aimeos->getCustomPaths( 'admin/jsonadm/templates' );
128 128
 
129 129
 		$context = $this->get( 'aimeos.context' )->get( false, 'backend' );
130
-		$context->setI18n( $this->get('aimeos.i18n')->get( array( $lang, 'en' ) ) );
131
-		$context->setLocale( $this->get('aimeos.locale')->getBackend( $context, $site ) );
130
+		$context->setI18n( $this->get( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) );
131
+		$context->setLocale( $this->get( 'aimeos.locale' )->getBackend( $context, $site ) );
132 132
 
133
-		$view = $this->get('aimeos.view')->create( $context, $templatePaths, $lang );
133
+		$view = $this->get( 'aimeos.view' )->create( $context, $templatePaths, $lang );
134 134
 		$context->setView( $view );
135 135
 
136 136
 		return \Aimeos\Admin\JsonAdm::create( $context, $aimeos, $resource );
Please login to merge, or discard this patch.
Controller/CheckoutController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		}
40 40
 
41 41
 		$response = $this->render( '@AimeosShop/Checkout/confirm.html.twig', $params );
42
-		$response->headers->set('Cache-Control', 'no-store');
42
+		$response->headers->set( 'Cache-Control', 'no-store' );
43 43
 		return $response;
44 44
 	}
45 45
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 		}
62 62
 
63 63
 		$response = $this->render( '@AimeosShop/Checkout/index.html.twig', $params );
64
-		$response->headers->set('Cache-Control', 'no-store');
64
+		$response->headers->set( 'Cache-Control', 'no-store' );
65 65
 		return $response;
66 66
 	}
67 67
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		}
84 84
 
85 85
 		$response = $this->render( '@AimeosShop/Checkout/update.html.twig', $params );
86
-		$response->headers->set('Cache-Control', 'no-store');
86
+		$response->headers->set( 'Cache-Control', 'no-store' );
87 87
 		return $response;
88 88
 	}
89 89
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		$this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() );
100 100
 
101 101
 		$response = new Response( (string) $client->getBody() );
102
-		$response->headers->set('Cache-Control', 'no-store');
102
+		$response->headers->set( 'Cache-Control', 'no-store' );
103 103
 		return $response;
104 104
 	}
105 105
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		$this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() );
116 116
 
117 117
 		$response = new Response( (string) $client->getBody() );
118
-		$response->headers->set('Cache-Control', 'no-store');
118
+		$response->headers->set( 'Cache-Control', 'no-store' );
119 119
 		return $response;
120 120
 	}
121 121
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 		$this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() );
132 132
 
133 133
 		$response = new Response( (string) $client->getBody() );
134
-		$response->headers->set('Cache-Control', 'no-store');
134
+		$response->headers->set( 'Cache-Control', 'no-store' );
135 135
 		return $response;
136 136
 	}
137 137
 }
Please login to merge, or discard this patch.
Controller/BasketController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
 			$params['aibody'][$name] = $shop->get( $name )->getBody();
39 39
 		}
40 40
 
41
-		$response =  $this->render( '@AimeosShop/Basket/index.html.twig', $params );
42
-		$response->headers->set('Cache-Control', 'no-store');
41
+		$response = $this->render( '@AimeosShop/Basket/index.html.twig', $params );
42
+		$response->headers->set( 'Cache-Control', 'no-store' );
43 43
 		return $response;
44 44
 	}
45 45
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() );
55 55
 
56 56
 		$response = new Response( (string) $client->getBody() );
57
-		$response->headers->set('Cache-Control', 'no-store');
57
+		$response->headers->set( 'Cache-Control', 'no-store' );
58 58
 		return $response;
59 59
 	}
60 60
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		$this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() );
71 71
 
72 72
 		$response = new Response( (string) $client->getBody() );
73
-		$response->headers->set('Cache-Control', 'no-store');
73
+		$response->headers->set( 'Cache-Control', 'no-store' );
74 74
 		return $response;
75 75
 	}
76 76
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		$this->container->get( 'twig' )->addGlobal( 'aiheader', (string) $client->getHeader() );
87 87
 
88 88
 		$response = new Response( (string) $client->getBody() );
89
-		$response->headers->set('Cache-Control', 'no-store');
89
+		$response->headers->set( 'Cache-Control', 'no-store' );
90 90
 		return $response;
91 91
 	}
92 92
 }
Please login to merge, or discard this patch.