Completed
Push — master ( dc80f2...6114e5 )
by Aimeos
03:28
created
Controller/AdminController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
 	 * Creates a list of all available translations.
146 146
 	 *
147 147
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
148
-	 * @return array List of language IDs with labels
148
+	 * @return string List of language IDs with labels
149 149
 	 */
150 150
 	protected function getJsonLanguages( \Aimeos\MShop\Context\Item\Iface $context )
151 151
 	{
Please login to merge, or discard this patch.
Controller/JsonadmController.php 2 patches
Doc Comments   +1 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @param \Symfony\Component\HttpFoundation\Request $request Request object
30 30
 	 * @param string Resource location, e.g. "product/stock/wareshouse"
31
-	 * @param string $sitecode Unique site code
32 31
 	 * @param integer|null $id Unique resource ID
33 32
 	 * @return \Symfony\Component\HttpFoundation\Response Response object containing the generated output
34 33
 	 */
@@ -49,7 +48,6 @@  discard block
 block discarded – undo
49 48
 	 *
50 49
 	 * @param \Symfony\Component\HttpFoundation\Request $request Request object
51 50
 	 * @param string Resource location, e.g. "product/stock/wareshouse"
52
-	 * @param string $sitecode Unique site code
53 51
 	 * @param integer|null $id Unique resource ID
54 52
 	 * @return \Symfony\Component\HttpFoundation\Response Response object containing the generated output
55 53
 	 */
@@ -70,7 +68,6 @@  discard block
 block discarded – undo
70 68
 	 *
71 69
 	 * @param \Symfony\Component\HttpFoundation\Request $request Request object
72 70
 	 * @param string Resource location, e.g. "product/stock/wareshouse"
73
-	 * @param string $sitecode Unique site code
74 71
 	 * @param integer|null $id Unique resource ID
75 72
 	 * @return \Symfony\Component\HttpFoundation\Response Response object containing the generated output
76 73
 	 */
@@ -91,7 +88,6 @@  discard block
 block discarded – undo
91 88
 	 *
92 89
 	 * @param \Symfony\Component\HttpFoundation\Request $request Request object
93 90
 	 * @param string Resource location, e.g. "product/stock/wareshouse"
94
-	 * @param string $sitecode Unique site code
95 91
 	 * @param integer $id Unique ID of the resource
96 92
 	 * @return \Symfony\Component\HttpFoundation\Response Response object containing the generated output
97 93
 	 */
@@ -112,7 +108,6 @@  discard block
 block discarded – undo
112 108
 	 *
113 109
 	 * @param \Symfony\Component\HttpFoundation\Request $request Request object
114 110
 	 * @param string Resource location, e.g. "product/stock/wareshouse"
115
-	 * @param string $sitecode Unique site code
116 111
 	 * @param integer|null $id Unique resource ID
117 112
 	 * @return \Symfony\Component\HttpFoundation\Response Response object containing the generated output
118 113
 	 */
@@ -133,7 +128,6 @@  discard block
 block discarded – undo
133 128
 	 *
134 129
 	 * @param \Symfony\Component\HttpFoundation\Request $request Request object
135 130
 	 * @param string Resource location, e.g. "product/stock/wareshouse"
136
-	 * @param string $sitecode Unique site code
137 131
 	 * @return \Symfony\Component\HttpFoundation\Response Response object containing the generated output
138 132
 	 */
139 133
 	public function optionsAction( Request $request, $resource = '', $site = 'default' )
@@ -177,7 +171,7 @@  discard block
 block discarded – undo
177 171
 	 * @param string $content Body of the HTTP response
178 172
 	 * @param integer $status HTTP status
179 173
 	 * @param array $header List of HTTP headers
180
-	 * @return \Illuminate\Http\Response HTTP response object
174
+	 * @return Response HTTP response object
181 175
 	 */
182 176
 	protected function createResponse( $content, $status, array $header )
183 177
 	{
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,8 +210,7 @@
 block discarded – undo
210 210
 			$localeItem = $localeManager->bootstrap( $sitecode, '', '', false );
211 211
 			$localeItem->setLanguageId( null );
212 212
 			$localeItem->setCurrencyId( null );
213
-		}
214
-		catch( \Aimeos\MShop\Locale\Exception $e )
213
+		} catch( \Aimeos\MShop\Locale\Exception $e )
215 214
 		{
216 215
 			$localeItem = $localeManager->createItem();
217 216
 		}
Please login to merge, or discard this patch.
Service/View.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
 
59 59
 			$i18n = $this->container->get('aimeos_i18n')->get( array( $locale ) );
60 60
 			$translation = $i18n[$locale];
61
-		}
62
-		else
61
+		} else
63 62
 		{
64 63
 			$translation = new \Aimeos\MW\Translation\None( 'en' );
65 64
 		}
Please login to merge, or discard this patch.
Service/Context.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,7 @@
 block discarded – undo
107 107
 
108 108
 		if( $this->container->has( 'security.token_storage' ) ) {
109 109
 			$token = $this->container->get( 'security.token_storage' )->getToken();
110
-		}
111
-		else if( $this->container->has( 'security.context' ) ) {
110
+		} else if( $this->container->has( 'security.context' ) ) {
112 111
 			$token = $this->container->get( 'security.context' )->getToken();
113 112
 		}
114 113
 
Please login to merge, or discard this patch.