| @@ -247,7 +247,7 @@ | ||
| 247 | 247 | return $this->logSQL ?? ""; | 
| 248 | 248 | } | 
| 249 | 249 | |
| 250 | -       public function extractModel($model): \stdClass{
 | |
| 250 | +        public function extractModel($model): \stdClass{
 | |
| 251 | 251 | $reflection = new \ReflectionClass(get_class($model)); | 
| 252 | 252 | $objeto = new \stdClass; | 
| 253 | 253 | |
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | */ | 
| 28 | 28 | public function select(string $fields = '*', string $add = '', array $values = null, bool $returnModel = false, bool $debug = false) | 
| 29 | 29 |      {
 | 
| 30 | -        if (strlen($add) > 0) {
 | |
| 30 | +        if (strlen($add)>0) {
 | |
| 31 | 31 | $add = ' ' . $add; | 
| 32 | 32 | } | 
| 33 | 33 | |
| @@ -66,7 +66,7 @@ discard block | ||
| 66 | 66 | $numparams = substr($numparams, 1); | 
| 67 | 67 |          $sql = "INSERT INTO {$this->getTableName()} ({$fields}) VALUES ({$numparams})";
 | 
| 68 | 68 |          if ($debug) {
 | 
| 69 | - echo $sql.'<pre>'.print_r($values).'</pre>'; | |
| 69 | + echo $sql . '<pre>' . print_r($values) . '</pre>'; | |
| 70 | 70 | return; | 
| 71 | 71 | } | 
| 72 | 72 | $result = $this->executeSQL($sql, $values); | 
| @@ -148,7 +148,7 @@ discard block | ||
| 148 | 148 | $sql .= " WHERE $where"; | 
| 149 | 149 | } | 
| 150 | 150 |          if ($debug) {
 | 
| 151 | - echo $sql.'<pre>'.print_r($values).'</pre>'; | |
| 151 | + echo $sql . '<pre>' . print_r($values) . '</pre>'; | |
| 152 | 152 | return; | 
| 153 | 153 | } | 
| 154 | 154 | $result = $this->executeSQL($sql, $values); | 
| @@ -223,7 +223,7 @@ discard block | ||
| 223 | 223 | $sql .= " WHERE $where"; | 
| 224 | 224 | } | 
| 225 | 225 |          if ($debug) {
 | 
| 226 | - echo $sql.'<pre>'.print_r($values).'</pre>'; | |
| 226 | + echo $sql . '<pre>' . print_r($values) . '</pre>'; | |
| 227 | 227 | return; | 
| 228 | 228 | } | 
| 229 | 229 | $result = $this->executeSQL($sql, $values); | 
| @@ -252,12 +252,12 @@ discard block | ||
| 252 | 252 | $objeto = new \stdClass; | 
| 253 | 253 | |
| 254 | 254 |          foreach ($reflection->getProperties() as $prop) {
 | 
| 255 | - $method = 'get'.$prop->name ; | |
| 256 | -            $objeto->{$prop->name} =  call_user_func([$model, $method]); 
 | |
| 255 | + $method = 'get' . $prop->name; | |
| 256 | +            $objeto->{$prop->name} = call_user_func([$model, $method]); 
 | |
| 257 | 257 | |
| 258 | 258 | } | 
| 259 | 259 | |
| 260 | - return $objeto ; | |
| 260 | + return $objeto; | |
| 261 | 261 | |
| 262 | 262 | |
| 263 | 263 | } |