@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | $response = $this->_client->request($packet); |
39 | 39 | |
40 | - return (int) $response->id; |
|
40 | + return (int)$response->id; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $items = []; |
59 | 59 | foreach ($response->xpath('//result') as $xmlResult) { |
60 | 60 | $item = new Struct\Info($xmlResult->data); |
61 | - $item->id = (int) $xmlResult->id; |
|
61 | + $item->id = (int)$xmlResult->id; |
|
62 | 62 | $items[] = $item; |
63 | 63 | } |
64 | 64 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $items = []; |
77 | 77 | foreach ($response->xpath('//result') as $xmlResult) { |
78 | 78 | $item = new Struct\GeneralInfo($xmlResult->data); |
79 | - $item->id = (int) $xmlResult->id; |
|
79 | + $item->id = (int)$xmlResult->id; |
|
80 | 80 | $items[] = $item; |
81 | 81 | } |
82 | 82 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | continue; |
84 | 84 | } |
85 | 85 | $item = new Struct\Info($xmlResult->data); |
86 | - $item->id = (int) $xmlResult->id; |
|
86 | + $item->id = (int)$xmlResult->id; |
|
87 | 87 | $items[] = $item; |
88 | 88 | } |
89 | 89 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $packet->addChild($this->_wrapperTag)->addChild('get_protos'); |
18 | 18 | $response = $this->_client->request($packet); |
19 | 19 | |
20 | - return (array) $response->protos->proto; |
|
20 | + return (array)$response->protos->proto; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function getGeneralInfo() |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $keyInfoXml = $this->_getInfo('key'); |
45 | 45 | |
46 | 46 | foreach ($keyInfoXml->property as $property) { |
47 | - $keyInfo[(string) $property->name] = (string) $property->value; |
|
47 | + $keyInfo[(string)$property->name] = (string)$property->value; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return $keyInfo; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $componentsXml = $this->_getInfo('components'); |
60 | 60 | |
61 | 61 | foreach ($componentsXml->component as $component) { |
62 | - $components[(string) $component->name] = (string) $component->version; |
|
62 | + $components[(string)$component->name] = (string)$component->version; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $components; |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | $statesXml = $this->_getInfo('services_state'); |
75 | 75 | |
76 | 76 | foreach ($statesXml->srv as $service) { |
77 | - $states[(string) $service->id] = [ |
|
78 | - 'id' => (string) $service->id, |
|
79 | - 'title' => (string) $service->title, |
|
80 | - 'state' => (string) $service->state, |
|
77 | + $states[(string)$service->id] = [ |
|
78 | + 'id' => (string)$service->id, |
|
79 | + 'title' => (string)$service->title, |
|
80 | + 'state' => (string)$service->state, |
|
81 | 81 | ]; |
82 | 82 | } |
83 | 83 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $shellsXml = $this->_getInfo('shells'); |
99 | 99 | |
100 | 100 | foreach ($shellsXml->shell as $shell) { |
101 | - $shells[(string) $shell->name] = (string) $shell->path; |
|
101 | + $shells[(string)$shell->name] = (string)$shell->path; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | return $shells; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $interfacesXml = $this->_getInfo('interfaces'); |
113 | 113 | |
114 | - return (array) $interfacesXml->interface; |
|
114 | + return (array)$interfacesXml->interface; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | public function getStatistics() |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $configXml = $this->_getInfo('site-isolation-config'); |
129 | 129 | |
130 | 130 | foreach ($configXml->property as $property) { |
131 | - $config[(string) $property->name] = (string) $property->value; |
|
131 | + $config[(string)$property->name] = (string)$property->value; |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | return $config; |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $dataNode->addChild('source_server'); |
156 | 156 | $response = $this->_client->request($packet); |
157 | 157 | |
158 | - return (string) $response->id; |
|
158 | + return (string)$response->id; |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $packet->addChild($this->_wrapperTag)->addChild('create')->addChild('ip_address', $ipAddress); |
22 | 22 | $response = $this->_client->request($packet); |
23 | 23 | |
24 | - return (string) $response->key; |
|
24 | + return (string)$response->key; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $items = []; |
63 | 63 | foreach ($response->xpath('//result') as $xmlResult) { |
64 | 64 | $item = new Struct\Info($xmlResult->data); |
65 | - $item->id = (int) $xmlResult->id; |
|
65 | + $item->id = (int)$xmlResult->id; |
|
66 | 66 | $items[] = $item; |
67 | 67 | } |
68 | 68 | |
@@ -84,6 +84,6 @@ discard block |
||
84 | 84 | |
85 | 85 | $response = $this->_client->request($packet); |
86 | 86 | |
87 | - return 'ok' === (string) $response->status; |
|
87 | + return 'ok' === (string)$response->status; |
|
88 | 88 | } |
89 | 89 | } |
@@ -35,11 +35,11 @@ |
||
35 | 35 | $propertyType = preg_replace('/^.+ @var ([a-z]+) .+$/', '\1', $docBlock); |
36 | 36 | |
37 | 37 | if ('string' == $propertyType) { |
38 | - $value = (string) $value; |
|
38 | + $value = (string)$value; |
|
39 | 39 | } elseif ('integer' == $propertyType) { |
40 | - $value = (int) $value; |
|
40 | + $value = (int)$value; |
|
41 | 41 | } elseif ('boolean' == $propertyType) { |
42 | - $value = in_array((string) $value, ['true', 'on', 'enabled']); |
|
42 | + $value = in_array((string)$value, ['true', 'on', 'enabled']); |
|
43 | 43 | } else { |
44 | 44 | throw new \Exception("Unknown property type '$propertyType'."); |
45 | 45 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | { |
58 | 58 | $response = $this->request("$deleteMethodName.filter.$field=$value"); |
59 | 59 | |
60 | - return 'ok' === (string) $response->status; |
|
60 | + return 'ok' === (string)$response->status; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |