@@ -42,19 +42,19 @@ |
||
42 | 42 | /** @var Client $client */ |
43 | 43 | $client = $this->get($guzzleServiceName); |
44 | 44 | |
45 | - $contentType = RequestMethodMapping::$contentTypes[$method]; |
|
46 | - $methodName = RequestMethodMapping::$methodsMapping[$method]; |
|
45 | + $contentType = RequestMethodMapping::$contentTypes[$method]; |
|
46 | + $methodName = RequestMethodMapping::$methodsMapping[$method]; |
|
47 | 47 | |
48 | 48 | /** @var ResponseInterface $guzzleResponse */ |
49 | 49 | $guzzleResponse = $client->{$method}( |
50 | 50 | $params->getRouteId(), |
51 | 51 | [ |
52 | - $contentType => $request->{$methodName}->all() |
|
52 | + $contentType => $request->{$methodName}->all() |
|
53 | 53 | ] |
54 | 54 | ); |
55 | 55 | |
56 | - return ( |
|
57 | - new ResponseManager($guzzleResponse, $this->container->getParameter('kernel.project_dir')) |
|
56 | + return ( |
|
57 | + new ResponseManager($guzzleResponse, $this->container->getParameter('kernel.project_dir')) |
|
58 | 58 | )->getResponse(); |
59 | 59 | } |
60 | 60 |
@@ -42,8 +42,8 @@ |
||
42 | 42 | /** @var Client $client */ |
43 | 43 | $client = $this->get($guzzleServiceName); |
44 | 44 | |
45 | - $contentType = RequestMethodMapping::$contentTypes[$method]; |
|
46 | - $methodName = RequestMethodMapping::$methodsMapping[$method]; |
|
45 | + $contentType = RequestMethodMapping::$contentTypes[ $method ]; |
|
46 | + $methodName = RequestMethodMapping::$methodsMapping[ $method ]; |
|
47 | 47 | |
48 | 48 | /** @var ResponseInterface $guzzleResponse */ |
49 | 49 | $guzzleResponse = $client->{$method}( |
@@ -11,24 +11,24 @@ |
||
11 | 11 | |
12 | 12 | class PublicDirectory |
13 | 13 | { |
14 | - /** |
|
15 | - * @param $projectDir |
|
16 | - * |
|
17 | - * @return string |
|
18 | - */ |
|
19 | - public static function getPublicDir($projectDir) |
|
20 | - { |
|
21 | - $webDir = "$projectDir/web/"; |
|
22 | - $publicDir = "$projectDir/public/"; |
|
14 | + /** |
|
15 | + * @param $projectDir |
|
16 | + * |
|
17 | + * @return string |
|
18 | + */ |
|
19 | + public static function getPublicDir($projectDir) |
|
20 | + { |
|
21 | + $webDir = "$projectDir/web/"; |
|
22 | + $publicDir = "$projectDir/public/"; |
|
23 | 23 | |
24 | - if (file_exists($webDir)) { |
|
25 | - return $webDir; |
|
26 | - } |
|
24 | + if (file_exists($webDir)) { |
|
25 | + return $webDir; |
|
26 | + } |
|
27 | 27 | |
28 | - if (file_exists($publicDir)) { |
|
29 | - return $publicDir; |
|
30 | - } |
|
28 | + if (file_exists($publicDir)) { |
|
29 | + return $publicDir; |
|
30 | + } |
|
31 | 31 | |
32 | - return $projectDir; |
|
33 | - } |
|
32 | + return $projectDir; |
|
33 | + } |
|
34 | 34 | } |
35 | 35 | \ No newline at end of file |