@@ -143,4 +143,4 @@ |
||
143 | 143 | } |
144 | 144 | } |
145 | 145 | } |
146 | - |
|
147 | 146 | \ No newline at end of file |
147 | + |
|
148 | 148 | \ No newline at end of file |
@@ -106,7 +106,7 @@ |
||
106 | 106 | * @param \DOMDocument $aframe_dom |
107 | 107 | * @param \DOMElement $scene |
108 | 108 | */ |
109 | - protected function DOMAppendPrimitives(\DOMDocument &$aframe_dom, \DOMElement &$scene) |
|
109 | + protected function DOMAppendPrimitives(\DOMDocument&$aframe_dom, \DOMElement&$scene) |
|
110 | 110 | { |
111 | 111 | /* Add sphiers to DOM */ |
112 | 112 | if (is_array($this->spheres)) { |
@@ -68,4 +68,4 @@ |
||
68 | 68 | $this->width(); |
69 | 69 | } |
70 | 70 | } |
71 | - |
|
72 | 71 | \ No newline at end of file |
72 | + |
|
73 | 73 | \ No newline at end of file |
@@ -41,4 +41,4 @@ |
||
41 | 41 | $this->segmentsWidth(64); |
42 | 42 | } |
43 | 43 | } |
44 | - |
|
45 | 44 | \ No newline at end of file |
45 | + |
|
46 | 46 | \ No newline at end of file |
@@ -71,4 +71,4 @@ |
||
71 | 71 | $this->segmentsWidth(); |
72 | 72 | } |
73 | 73 | } |
74 | - |
|
75 | 74 | \ No newline at end of file |
75 | + |
|
76 | 76 | \ No newline at end of file |
@@ -62,4 +62,4 @@ |
||
62 | 62 | $this->width(); |
63 | 63 | } |
64 | 64 | } |
65 | - |
|
66 | 65 | \ No newline at end of file |
66 | + |
|
67 | 67 | \ No newline at end of file |
@@ -84,8 +84,9 @@ |
||
84 | 84 | { |
85 | 85 | $defaults = get_class_vars(get_class($this)); |
86 | 86 | foreach (get_object_vars($this) as $name => $value) { |
87 | - if (empty($value) || (array_key_exists($name, $defaults) && $value === $defaults[$name])) |
|
88 | - unset($this->$name); |
|
87 | + if (empty($value) || (array_key_exists($name, $defaults) && $value === $defaults[$name])) { |
|
88 | + unset($this->$name); |
|
89 | + } |
|
89 | 90 | } |
90 | 91 | } |
91 | 92 |
@@ -65,8 +65,9 @@ |
||
65 | 65 | { |
66 | 66 | $defaults = get_class_vars(get_class($this)); |
67 | 67 | foreach (get_object_vars($this) as $name => $value) { |
68 | - if (empty($value) || (array_key_exists($name, $defaults) && $value === $defaults[$name])) |
|
69 | - unset($this->$name); |
|
68 | + if (empty($value) || (array_key_exists($name, $defaults) && $value === $defaults[$name])) { |
|
69 | + unset($this->$name); |
|
70 | + } |
|
70 | 71 | } |
71 | 72 | } |
72 | 73 | } |
@@ -32,4 +32,4 @@ |
||
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
35 | - |
|
36 | 35 | \ No newline at end of file |
36 | + |
|
37 | 37 | \ No newline at end of file |
@@ -74,7 +74,7 @@ |
||
74 | 74 | { |
75 | 75 | $component_name = strtolower($component_name); |
76 | 76 | |
77 | - if (! array_key_exists($component_name, $this->components)) { |
|
77 | + if ( ! array_key_exists($component_name, $this->components)) { |
|
78 | 78 | try { |
79 | 79 | $component = sprintf('\AframeVR\Components\%s', ucfirst($component_name)); |
80 | 80 | if (class_exists($component)) { |
@@ -129,8 +129,9 @@ |
||
129 | 129 | * Check does component has any attributes to add to DOM element. |
130 | 130 | * default attributes most of cases are ommited so we might not have any attributes to add |
131 | 131 | */ |
132 | - if ($component->hasDOMAttributes()) |
|
133 | - $a_entity->setAttributeNode($component->getDOMAttributes()); |
|
132 | + if ($component->hasDOMAttributes()) { |
|
133 | + $a_entity->setAttributeNode($component->getDOMAttributes()); |
|
134 | + } |
|
134 | 135 | } |
135 | 136 | return $a_entity; |
136 | 137 | } |