Completed
Pull Request — master (#17)
by
unknown
10:51
created
src/Ares.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		$output = [];
41 41
 
42 42
 		while (count(array_slice($array, $offset)) > 0) {
43
-			$slice = array_slice($array, $offset,100, TRUE);
43
+			$slice = array_slice($array, $offset, 100, TRUE);
44 44
 			$offset += 100;
45 45
 
46 46
 			$response = $client->request('POST', self::POST_URL, [
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 				->children('are', true);
62 62
 
63 63
 			foreach ($responseData as $item) {
64
-				$D = $item->children('D' , true);
64
+				$D = $item->children('D', true);
65 65
 				$pid = (int) $D->PID->__toString();
66 66
 
67 67
 				try {
68
-					if($D->E->asXML() !== FALSE) {
68
+					if ($D->E->asXML() !== FALSE) {
69 69
 						$DE = $D->E->children('D', TRUE);
70 70
 						throw new IdentificationNumberNotFoundException($DE->ET->__toString(), $DE->EK->__toString());
71 71
 					}
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
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
 
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
 		xmlns:are="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0" 
230 230
 		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
231 231
 		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" 
232
-		dotaz_datum_cas="' . $date->format('Y-m-dTH:i:s') . '" 
233
-		dotaz_pocet="' . count($items) . '" 
232
+		dotaz_datum_cas="' . $date->format('Y-m-dTH:i:s').'" 
233
+		dotaz_pocet="' . count($items).'" 
234 234
 		dotaz_typ="Basic" 
235 235
 		vystup_format="XML" 
236 236
 		validation_XSLT="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer/v_1.0.0/ares_answer.xsl" 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 		';
240 240
 
241 241
 		foreach ($items as $key => $ic) {
242
-			$content .=  '<Dotaz><Pomocne_ID>' . $key . '</Pomocne_ID><ICO>' . $ic . '</ICO></Dotaz>';
242
+			$content .= '<Dotaz><Pomocne_ID>'.$key.'</Pomocne_ID><ICO>'.$ic.'</ICO></Dotaz>';
243 243
 		}
244 244
 
245 245
 		$content .= '</are:Ares_dotazy>';
Please login to merge, or discard this patch.