| @@ -12,9 +12,9 @@ discard block | ||
| 12 | 12 | class AresRequestProvider | 
| 13 | 13 |  { | 
| 14 | 14 | private const BASE_URL = 'https://wwwinfo.mfcr.cz/cgi-bin/ares'; | 
| 15 | - protected const ONE_IN = self::BASE_URL . '/darv_bas.cgi'; | |
| 16 | - protected const ONE_BL = self::BASE_URL . '/darv_or.cgi'; | |
| 17 | - protected const MULTI_IN = self::BASE_URL . '/xar.cgi'; | |
| 15 | + protected const ONE_IN = self::BASE_URL.'/darv_bas.cgi'; | |
| 16 | + protected const ONE_BL = self::BASE_URL.'/darv_or.cgi'; | |
| 17 | + protected const MULTI_IN = self::BASE_URL.'/xar.cgi'; | |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | public function __construct( | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | 'ico' => $in, | 
| 36 | 36 | ]; | 
| 37 | 37 | |
| 38 | - $url = self::ONE_BL . '?' . http_build_query($parameters); | |
| 38 | + $url = self::ONE_BL.'?'.http_build_query($parameters); | |
| 39 | 39 | |
| 40 | 40 | return $this->xmlResponse($url, $in); | 
| 41 | 41 | } | 
| @@ -51,7 +51,7 @@ discard block | ||
| 51 | 51 | 'aktivni' => 'false', | 
| 52 | 52 | ]; | 
| 53 | 53 | |
| 54 | - $url = self::ONE_IN . '?' . http_build_query($parameters); | |
| 54 | + $url = self::ONE_IN.'?'.http_build_query($parameters); | |
| 55 | 55 | |
| 56 | 56 | return $this->xmlResponse($url, $in); | 
| 57 | 57 | } | 
| @@ -119,7 +119,7 @@ discard block | ||
| 119 | 119 | $content .= "<Dotaz><Pomocne_ID>$key</Pomocne_ID><ICO>$in</ICO></Dotaz>"; | 
| 120 | 120 | } | 
| 121 | 121 | |
| 122 | - return $content . '</are:Ares_dotazy>'; | |
| 122 | + return $content.'</are:Ares_dotazy>'; | |
| 123 | 123 | } | 
| 124 | 124 | |
| 125 | 125 | |
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | } | 
| 21 | 21 | |
| 22 | 22 | |
| 23 | - public function xmlResponse(RequestInterface|string $url): \SimpleXMLElement | |
| 23 | + public function xmlResponse(RequestInterface | string $url): \SimpleXMLElement | |
| 24 | 24 |  	{ | 
| 25 | 25 | $request = $url instanceof RequestInterface ? $url : $this->createRequest($url); | 
| 26 | 26 |  		try { |