@@ -131,23 +131,23 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public static function make($xValue): ParameterInterface |
133 | 133 | { |
134 | - if($xValue instanceof ParameterInterface) |
|
134 | + if ($xValue instanceof ParameterInterface) |
|
135 | 135 | { |
136 | 136 | return $xValue; |
137 | 137 | } |
138 | - if(is_numeric($xValue)) |
|
138 | + if (is_numeric($xValue)) |
|
139 | 139 | { |
140 | 140 | return new Parameter(self::NUMERIC_VALUE, $xValue); |
141 | 141 | } |
142 | - if(is_string($xValue)) |
|
142 | + if (is_string($xValue)) |
|
143 | 143 | { |
144 | 144 | return new Parameter(self::QUOTED_VALUE, $xValue); |
145 | 145 | } |
146 | - if(is_bool($xValue)) |
|
146 | + if (is_bool($xValue)) |
|
147 | 147 | { |
148 | 148 | return new Parameter(self::BOOL_VALUE, $xValue); |
149 | 149 | } |
150 | - if($xValue instanceof JsCall) |
|
150 | + if ($xValue instanceof JsCall) |
|
151 | 151 | { |
152 | 152 | return new Parameter(self::JS_CALL, $xValue); |
153 | 153 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function jsonSerialize() |
166 | 166 | { |
167 | - switch($this->getType()) |
|
167 | + switch ($this->getType()) |
|
168 | 168 | { |
169 | 169 | case self::JS_CALL: |
170 | 170 | return $this->getValue()->toArray(); |