@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $protocolVersion = !is_null($version) ? $version : $this->_version; |
113 | 113 | $content = "<?xml version='1.0' encoding='UTF-8' ?>"; |
114 | - $content .= "<packet" . ("" === $protocolVersion ? "" : " version='$protocolVersion'") . "/>"; |
|
114 | + $content .= "<packet".("" === $protocolVersion ? "" : " version='$protocolVersion'")."/>"; |
|
115 | 115 | return new SimpleXMLElement($content); |
116 | 116 | } |
117 | 117 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | protected function _getOperator($name) |
334 | 334 | { |
335 | 335 | if (!isset($this->_operatorsCache[$name])) { |
336 | - $className = '\\PleskX\\Api\\Operator\\' . $name; |
|
336 | + $className = '\\PleskX\\Api\\Operator\\'.$name; |
|
337 | 337 | $this->_operatorsCache[$name] = new $className($this); |
338 | 338 | } |
339 | 339 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | private function _underToCamel($under) |
57 | 57 | { |
58 | - $under = '_' . str_replace('_', ' ', strtolower($under)); |
|
58 | + $under = '_'.str_replace('_', ' ', strtolower($under)); |
|
59 | 59 | return ltrim(str_replace(' ', '', ucwords($under)), '_'); |
60 | 60 | } |
61 | 61 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function getValue($node) |
19 | 19 | { |
20 | - return (string)$this->xpath('//' . $node)[0]; |
|
20 | + return (string)$this->xpath('//'.$node)[0]; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | } |
24 | 24 | \ No newline at end of file |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @param $command |
|
28 | + * @param string $command |
|
29 | 29 | * @param array $properties |
30 | 30 | * @return \PleskX\Api\XmlResponse |
31 | 31 | */ |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param $command |
|
98 | - * @param $field |
|
97 | + * @param string $command |
|
98 | + * @param string $field |
|
99 | 99 | * @param $value |
100 | 100 | * @return \PleskX\Api\XmlResponse |
101 | 101 | */ |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function getHosting($field, $value) |
69 | 69 | { |
70 | - $items = $this->_getItems(Struct\HostingInfo::class, 'hosting', $field, $value, function ($node) { |
|
70 | + $items = $this->_getItems(Struct\HostingInfo::class, 'hosting', $field, $value, function($node) { |
|
71 | 71 | return isset($node->vrt_hst); |
72 | 72 | }); |
73 | 73 | return empty($items) ? null : reset($items); |
@@ -8,7 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | |
10 | 10 | /** |
11 | - * @param array $properties |
|
12 | 11 | * @return Struct\Info |
13 | 12 | */ |
14 | 13 | public function create(array $domaininfo,array $package,array $database,array $settings) |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @param array $properties |
12 | 12 | * @return Struct\Info |
13 | 13 | */ |
14 | - public function create(array $domaininfo,array $package,array $database,array $settings) |
|
14 | + public function create(array $domaininfo, array $package, array $database, array $settings) |
|
15 | 15 | { |
16 | 16 | $packet = $this->_client->getPacket(); |
17 | 17 | |
@@ -21,26 +21,26 @@ discard block |
||
21 | 21 | $infoInstall->addChild($name, $value); |
22 | 22 | } |
23 | 23 | $infoPackage = $infoInstall->addChild('package'); |
24 | - foreach($package as $name => $value) |
|
24 | + foreach ($package as $name => $value) |
|
25 | 25 | { |
26 | - $infoPackage->addChild($name,$value); |
|
26 | + $infoPackage->addChild($name, $value); |
|
27 | 27 | } |
28 | 28 | $infoInstall->addChild('ssl', true); |
29 | 29 | |
30 | 30 | $infoDatabase = $infoInstall->addChild('database'); |
31 | - foreach($database as $name => $value) |
|
31 | + foreach ($database as $name => $value) |
|
32 | 32 | { |
33 | 33 | |
34 | - $infoDatabase->addChild($name,$value); |
|
34 | + $infoDatabase->addChild($name, $value); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | $infoSettings = $infoInstall->addChild('settings'); |
38 | - foreach($settings as $settings_array => $setting_array) |
|
38 | + foreach ($settings as $settings_array => $setting_array) |
|
39 | 39 | { |
40 | 40 | $infoSetting = $infoSettings->addChild('setting'); |
41 | - foreach($setting_array as $name => $value) |
|
41 | + foreach ($setting_array as $name => $value) |
|
42 | 42 | { |
43 | - $infoSetting->addChild($name,$value); |
|
43 | + $infoSetting->addChild($name, $value); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 |