Passed
Push — master ( 08368b...d03553 )
by Sebastian
02:27
created
src/VariableInfo/Renderer/HTML.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             str_replace(' ', '-', $this->type)
41 41
         );
42 42
         
43
-        if($this->info->getBoolOption('prepend-type') && !$this->info->isNull())
43
+        if ($this->info->getBoolOption('prepend-type') && !$this->info->isNull())
44 44
         {
45 45
             $typeLabel = '<span style="color:#1c2eb1" class="variable-type">'.$this->info->getType().'</span> ';
46 46
             $converted = $typeLabel.' '.$converted;
Please login to merge, or discard this patch.
src/VariableInfo/Renderer/String/Callable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     {
11 11
         $string = '';
12 12
         
13
-        if(is_string($this->value[0])) 
13
+        if (is_string($this->value[0])) 
14 14
         {
15 15
             $string .= $this->value[0].'::';
16 16
         } 
Please login to merge, or discard this patch.
src/VariableInfo/Renderer/String/Array.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     {
11 11
         $result = array();
12 12
         
13
-        foreach($this->value as $key => $val)
13
+        foreach ($this->value as $key => $val)
14 14
         {
15 15
             $result[$key] = parseVariable($val)->toString();
16 16
         }
Please login to merge, or discard this patch.
src/VariableInfo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
     * @param mixed $value
39 39
     * @param array|null $serialized
40 40
     */
41
-    public function __construct($value, $serialized=null)
41
+    public function __construct($value, $serialized = null)
42 42
     {
43
-        if(is_array($serialized))
43
+        if (is_array($serialized))
44 44
         {
45 45
             $this->parseSerialized($serialized);
46 46
         }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->value = $value;
89 89
         $this->type = strtolower(gettype($value));
90 90
         
91
-        if(is_array($value) && is_callable($value)) {
91
+        if (is_array($value) && is_callable($value)) {
92 92
             $this->type = self::TYPE_CALLABLE;
93 93
         }
94 94
         
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     * @param bool $enable
127 127
     * @return VariableInfo
128 128
     */
129
-    public function enableType(bool $enable=true) : VariableInfo
129
+    public function enableType(bool $enable = true) : VariableInfo
130 130
     {
131 131
         return $this->setOption('prepend-type', $enable);
132 132
     }
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $converted = $this->string;
137 137
         
138
-        if($this->getOption('prepend-type') === true && !$this->isNull())
138
+        if ($this->getOption('prepend-type') === true && !$this->isNull())
139 139
         {
140
-            if($this->isString())
140
+            if ($this->isString())
141 141
             {
142 142
                 $converted = '"'.$converted.'"';
143 143
             }
Please login to merge, or discard this patch.