@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | xmlns:are="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0" |
20 | 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
21 | 21 | xsi:schemaLocation="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0 http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0/ares_request_orrg.xsd" |
22 | - dotaz_datum_cas="' . $date->format('Y-m-dTH:i:s') . '" |
|
23 | - dotaz_pocet="' . count($identificationNumbers) . '" |
|
22 | + dotaz_datum_cas="' . $date->format('Y-m-dTH:i:s').'" |
|
23 | + dotaz_pocet="' . count($identificationNumbers).'" |
|
24 | 24 | dotaz_typ="Basic" |
25 | 25 | vystup_format="XML" |
26 | 26 | validation_XSLT="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer/v_1.0.0/ares_answer.xsl" |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | '; |
30 | 30 | |
31 | 31 | foreach ($identificationNumbers as $key => $in) { |
32 | - $content .= '<Dotaz><Pomocne_ID>' . $key . '</Pomocne_ID><ICO>' . $in . '</ICO></Dotaz>'; |
|
32 | + $content .= '<Dotaz><Pomocne_ID>'.$key.'</Pomocne_ID><ICO>'.$in.'</ICO></Dotaz>'; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | $content .= '</are:Ares_dotazy>'; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $identificationNumbersCount = count($identificationNumbers); |
45 | 45 | while (($identificationNumbersCount - $offset) > 0) { |
46 | - $identificationNumbersBatch = array_slice($identificationNumbers, $offset,self::POST_IDENTIFICATION_NUMBERS_LIMIT, TRUE); |
|
46 | + $identificationNumbersBatch = array_slice($identificationNumbers, $offset, self::POST_IDENTIFICATION_NUMBERS_LIMIT, TRUE); |
|
47 | 47 | $offset += self::POST_IDENTIFICATION_NUMBERS_LIMIT; |
48 | 48 | |
49 | 49 | $response = $client->request('POST', self::POST_URL, [ |
@@ -64,11 +64,11 @@ discard block |
||
64 | 64 | ->children('are', true); |
65 | 65 | |
66 | 66 | foreach ($responseData as $item) { |
67 | - $D = $item->children('D' , true); |
|
67 | + $D = $item->children('D', true); |
|
68 | 68 | $pid = (int) $D->PID->__toString(); |
69 | 69 | |
70 | 70 | try { |
71 | - if($D->E->asXML() !== FALSE) { |
|
71 | + if ($D->E->asXML() !== FALSE) { |
|
72 | 72 | $DE = $D->E->children('D', TRUE); |
73 | 73 | throw new IdentificationNumberNotFoundException(trim($DE->ET->__toString()), $DE->EK->__toString()); |
74 | 74 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | 'ico' => $inn, |
166 | 166 | 'aktivni' => 'false', |
167 | 167 | ]; |
168 | - return self::URL . '?' . http_build_query($parameters); |
|
168 | + return self::URL.'?'.http_build_query($parameters); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 |