@@ -14,7 +14,7 @@ |
||
14 | 14 | $this->properties = []; |
15 | 15 | |
16 | 16 | foreach ($apiResponse->webspace->get->result->data->{'php-settings'}->setting as $setting) { |
17 | - $this->properties[(string) $setting->name] = (string) $setting->value; |
|
17 | + $this->properties[(string)$setting->name] = (string)$setting->value; |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $this->permissions = []; |
15 | 15 | |
16 | 16 | foreach ($apiResponse->descriptor->property as $propertyInfo) { |
17 | - $this->permissions[(string) $propertyInfo->name] = new PermissionInfo($propertyInfo); |
|
17 | + $this->permissions[(string)$propertyInfo->name] = new PermissionInfo($propertyInfo); |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $this->limits = []; |
15 | 15 | |
16 | 16 | foreach ($apiResponse->descriptor->property as $propertyInfo) { |
17 | - $this->limits[(string) $propertyInfo->name] = new LimitInfo($propertyInfo); |
|
17 | + $this->limits[(string)$propertyInfo->name] = new LimitInfo($propertyInfo); |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $this->properties = []; |
15 | 15 | |
16 | 16 | foreach ($apiResponse->descriptor->property as $propertyInfo) { |
17 | - $this->properties[(string) $propertyInfo->name] = new HostingPropertyInfo($propertyInfo); |
|
17 | + $this->properties[(string)$propertyInfo->name] = new HostingPropertyInfo($propertyInfo); |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 | } |
@@ -34,11 +34,11 @@ |
||
34 | 34 | $propertyType = preg_replace('/^.+ @var ([a-z]+) .+$/', '\1', $docBlock); |
35 | 35 | |
36 | 36 | if ('string' == $propertyType) { |
37 | - $value = (string) $value; |
|
37 | + $value = (string)$value; |
|
38 | 38 | } elseif ('int' == $propertyType) { |
39 | - $value = (int) $value; |
|
39 | + $value = (int)$value; |
|
40 | 40 | } elseif ('bool' == $propertyType) { |
41 | - $value = in_array((string) $value, ['true', 'on', 'enabled']); |
|
41 | + $value = in_array((string)$value, ['true', 'on', 'enabled']); |
|
42 | 42 | } else { |
43 | 43 | throw new \Exception("Unknown property type '$propertyType'."); |
44 | 44 | } |