Completed
Branch master (c3f4e5)
by Marko
02:33
created
src/Extras/Primitives.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,4 +143,4 @@
 block discarded – undo
143 143
         }
144 144
     }
145 145
 }
146
- 
147 146
\ No newline at end of file
147
+    
148 148
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/Extras/Primitives/Box.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,4 +68,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Extras/Primitives/Sky.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,4 +41,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Extras/Primitives/Sphere.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,4 +71,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Extras/Primitives/Plane.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,4 +62,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Core/Shaders/Standard.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Core/Shaders/Flat.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Core/Exceptions/BadShaderCallException.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,4 +32,4 @@
 block discarded – undo
32 32
     }
33 33
 }
34 34
 
35
- 
36 35
\ No newline at end of file
36
+    
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
src/Core/Entity.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,8 +129,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.