Completed
Push — master ( c555de...9c45ba )
by Milan
02:33
created
src/Data.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
 		return $this;
59 59
 	}
60 60
 
61
+	/**
62
+	 * @param string $s
63
+	 */
61 64
 	public function setStreet($s)
62 65
 	{
63 66
 		return $this->set('street', $s);
@@ -86,6 +89,9 @@  discard block
 block discarded – undo
86 89
 		}
87 90
 	}
88 91
 
92
+	/**
93
+	 * @param string $key
94
+	 */
89 95
 	private function set($key, $val)
90 96
 	{
91 97
 		if ($val instanceof DateTime) {
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace h4kuna\Ares;
4 4
 
5
-use ArrayAccess,
6
-	Countable,
7
-	DateTime,
8
-	DateTimeZone,
9
-	Iterator,
10
-	Nette;
5
+use ArrayAccess;
6
+use Countable;
7
+use DateTime;
8
+use DateTimeZone;
9
+use Iterator;
10
+use Nette;
11 11
 
12 12
 /**
13 13
  * @author Milan Matějček
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 	private function setFileNumberAndCourt()
83 83
 	{
84 84
 		if (!isset($this->data['court_all']) && array_key_exists('file_number', $this->data) && array_key_exists('court', $this->data)) {
85
-			$this->data['court_all'] = $this->data['file_number'] . ', ' . $this->data['court'];
85
+			$this->data['court_all'] = $this->data['file_number'].', '.$this->data['court'];
86 86
 		}
87 87
 	}
88 88
 
Please login to merge, or discard this patch.
src/Get.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	{
44 44
 		$this->clean();
45 45
 		$client = new GuzzleHttp\Client();
46
-		$xmlSource = $client->request('GET', self::URL . (string) $inn)->getBody();
46
+		$xmlSource = $client->request('GET', self::URL.(string) $inn)->getBody();
47 47
 		$xml = @simplexml_load_string($xmlSource);
48 48
 		if (!$xml) {
49 49
 			throw new InNotFoundExceptions;
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
 
59 59
 		$street = strval($xmlEl->AD->UC);
60 60
 		if (is_numeric($street)) {
61
-			$street = $xmlEl->AA->NCO . ' ' . $street;
61
+			$street = $xmlEl->AA->NCO.' '.$street;
62 62
 		}
63 63
 
64 64
 		if (isset($xmlEl->AA->CO)) {
65
-			$street .= '/' . $xmlEl->AA->CO;
65
+			$street .= '/'.$xmlEl->AA->CO;
66 66
 		}
67 67
 
68 68
 		$this->data->setIN($xmlEl->ICO)
Please login to merge, or discard this patch.