Completed
Push — master ( 25c8ee...533ce6 )
by DAOUDI
02:22
created
Util/RequestMethodMapping.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@
 block discarded – undo
10 10
 
11 11
 class RequestMethodMapping
12 12
 {
13
-	const REQUEST_METHOD_GET = 'get';
14
-	const REQUEST_METHOD_POST = 'post';
13
+    const REQUEST_METHOD_GET = 'get';
14
+    const REQUEST_METHOD_POST = 'post';
15 15
 
16
-	const REQUEST_QUERY_GET = 'query';
17
-	const REQUEST_QUERY_POST = 'request';
16
+    const REQUEST_QUERY_GET = 'query';
17
+    const REQUEST_QUERY_POST = 'request';
18 18
 
19
-	static public $methodsMapping = [
20
-		self::REQUEST_METHOD_GET => self::REQUEST_QUERY_GET,
21
-		self::REQUEST_METHOD_POST => self::REQUEST_QUERY_POST,
22
-	];
19
+    static public $methodsMapping = [
20
+        self::REQUEST_METHOD_GET => self::REQUEST_QUERY_GET,
21
+        self::REQUEST_METHOD_POST => self::REQUEST_QUERY_POST,
22
+    ];
23 23
 
24
-	/**
25
-	 * @param string $method
26
-	 *
27
-	 * @return bool
28
-	 */
29
-	public static function isValidMethod($method)
30
-	{
31
-		return isset(self::$methodsMapping[ $method ]);
32
-	}
24
+    /**
25
+     * @param string $method
26
+     *
27
+     * @return bool
28
+     */
29
+    public static function isValidMethod($method)
30
+    {
31
+        return isset(self::$methodsMapping[ $method ]);
32
+    }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
Controller/SfForwardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             /** @var ResponseInterface $guzzleResponse */
46 46
             $guzzleResponse = $client->{$method}(
47 47
                 $params->getRouteId(),
48
-                [ 'query' => $request->{RequestMethodMapping::$methodsMapping[$method]}->all() ]
48
+                [ 'query' => $request->{RequestMethodMapping::$methodsMapping[ $method ]}->all() ]
49 49
             );
50 50
 
51 51
             $response = new Response($guzzleResponse->getBody());
Please login to merge, or discard this patch.