Passed
Push — master ( 49d752...4c7773 )
by Joe Nilson
03:19
created
model/core/residentes_facturacion_programada_edificaciones.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $this->codcliente = $t['codcliente'];
45 45
             $this->idfactura = $t['idfactura'];
46 46
             $this->procesado = $this->str2bool($t['procesado']);
47
-        }else{
47
+        } else{
48 48
             $this->id = null;
49 49
             $this->idprogramacion = null;
50 50
             $this->id_edificacion = null;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $this->var2str($this->procesado).");";
88 88
             if($this->db->exec($sql)){
89 89
                 return true;
90
-            }else{
90
+            } else{
91 91
                 return false;
92 92
             }
93 93
         }
Please login to merge, or discard this patch.
model/core/residentes_ayudas.php 1 patch
Braces   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $this->codigo = $t['codigo'];
45 45
             $this->tipo = $t['tipo'];
46 46
             $this->descripcion = $t['descripcion'];
47
-        }else{
47
+        } else{
48 48
             $this->codigo = null;
49 49
             $this->tipo = null;
50 50
             $this->descripcion = null;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 $lista[] = new residentes_ayudas($d);
75 75
             }
76 76
             return $lista;
77
-        }else{
77
+        } else{
78 78
             return false;
79 79
         }
80 80
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 $lista[] = new residentes_ayudas($d);
89 89
             }
90 90
             return $lista;
91
-        }else{
91
+        } else{
92 92
             return false;
93 93
         }
94 94
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $data = $this->db->select($sql);
99 99
         if($data){
100 100
             return new residentes_ayudas($data[0]);
101
-        }else{
101
+        } else{
102 102
             return false;
103 103
         }
104 104
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     public function exists() {
107 107
         if(is_null($this->codigo)){
108 108
             return false;
109
-        }else{
109
+        } else{
110 110
             return $this->get($this->codigo,$this->tipo);
111 111
         }
112 112
     }
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
                     "descripcion = ".$this->var2str($this->descripcion)." ".
118 118
                     "WHERE codigo = ".$this->var2str($this->codigo)." AND tipo = ".$this->var2str($this->tipo).";";
119 119
             return $this->db->exec($sql);
120
-        }else{
120
+        } else{
121 121
             $sql = "INSERT INTO ".$this->table_name." (codigo, tipo, descripcion) VALUES (".
122 122
                     $this->var2str($this->codigo).", ".
123 123
                     $this->var2str($this->tipo).", ".
124 124
                     $this->var2str($this->descripcion).");";
125 125
             if($this->db->exec($sql)){
126 126
                 return $this->db->lastval();
127
-            }else{
127
+            } else{
128 128
                 return false;
129 129
             }
130 130
         }
Please login to merge, or discard this patch.
model/core/residentes_edificaciones_tipo.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $this->id = $t['id'];
45 45
             $this->descripcion = $t['descripcion'];
46 46
             $this->padre = $t['padre'];
47
-        }else{
47
+        } else{
48 48
             $this->id = null;
49 49
             $this->descripcion = null;
50 50
             $this->padre = null;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $data = $this->db->select($sql);
76 76
         if($data){
77 77
             return new residentes_edificaciones_tipo($data[0]);
78
-        }else{
78
+        } else{
79 79
             return false;
80 80
         }
81 81
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                 $lista[] =  new residentes_edificaciones_tipo($d);
97 97
             }
98 98
             return $lista;
99
-        }else{
99
+        } else{
100 100
             return false;
101 101
         }
102 102
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function exists() {
105 105
         if(is_null($this->id)){
106 106
             return false;
107
-        }else{
107
+        } else{
108 108
             return $this->get($this->id);
109 109
         }
110 110
     }
@@ -116,13 +116,13 @@  discard block
 block discarded – undo
116 116
                     "padre = ".$this->intval($this->padre)." ".
117 117
                     "WHERE id = ".$this->intval($this->id).";";
118 118
             return $this->db->exec($sql);
119
-        }else{
119
+        } else{
120 120
             $sql = "INSERT INTO ".$this->table_name." (descripcion, padre) VALUES (".
121 121
                     $this->var2str($this->descripcion).", ".
122 122
                     $this->intval($this->padre).");";
123 123
             if($this->db->exec($sql)){
124 124
                 return $this->db->lastval();
125
-            }else{
125
+            } else{
126 126
                 return false;
127 127
             }
128 128
         }
Please login to merge, or discard this patch.
model/core/residentes_edificaciones.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $this->ocupado = $this->str2bool($t['ocupado']);
110 110
             $this->fecha_ocupacion = $t['fecha_ocupacion'];
111 111
             $this->fecha_disponibilidad = $t['fecha_disponibilidad'];
112
-        }else{
112
+        } else{
113 113
             $this->id = null;
114 114
             $this->iddireccion = 0;
115 115
             $this->id_edificacion = null;
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             $item->pertenencia = $this->pertenencia($item);
207 207
             $this->info($item);
208 208
             return $item;
209
-        }else{
209
+        } else{
210 210
             return false;
211 211
         }
212 212
     }
Please login to merge, or discard this patch.
model/core/residentes_informacion.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 $lista[] = $item->info_adicional($item);
217 217
             }
218 218
             return $lista;
219
-        }else{
219
+        } else{
220 220
             return false;
221 221
         }
222 222
     }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         if($data){
236 236
             $item = new residentes_informacion($data[0]);
237 237
             return $item->info_adicional($item);
238
-        }else{
238
+        } else{
239 239
             return false;
240 240
         }
241 241
     }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 $lista[] = $item->info_adicional($item);
258 258
             }
259 259
             return $lista;
260
-        }else{
260
+        } else{
261 261
             return false;
262 262
         }
263 263
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     public function exists() {
266 266
         if(!$this->get($this->codcliente)){
267 267
             return false;
268
-        }else{
268
+        } else{
269 269
             return $this->get($this->codcliente);
270 270
         }
271 271
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             "vehiculos = ".$this->intval($this->vehiculos)." ".
297 297
             "WHERE codcliente = ".$this->var2str($this->codcliente).";";
298 298
             return $this->db->exec($sql);
299
-        }else{
299
+        } else{
300 300
             $sql = "INSERT INTO ".$this->table_name." (codcliente, codigo, ocupantes, ocupantes5anos, ocupantes12anos, ocupantes18anos, ocupantes30anos, ocupantes50anos, ocupantes70anos, ocupantes71anos, informacion_discapacidad, propietario, profesion, ocupacion, ca_nombres, ca_apellidos, ca_telefono, ca_email, ca_propietario, ca_parentesco, ca_parentesco_obs, vehiculos) VALUES (".
301 301
             $this->var2str($this->codcliente).", ".
302 302
             $this->var2str($this->codigo).", ".
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
             $this->intval($this->vehiculos).");";
323 323
             if($this->db->exec($sql)){
324 324
                 return true;
325
-            }else{
325
+            } else{
326 326
                 return false;
327 327
             }
328 328
         }
Please login to merge, or discard this patch.
model/core/residentes_facturacion_programada_conceptos.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $this->cantidad = (float) ($t['cantidad']);
47 47
             $this->codimpuesto = $t['codimpuesto'];
48 48
             $this->importe = (float) ($t['importe']);
49
-        }else{
49
+        } else{
50 50
             $this->id = null;
51 51
             $this->idprogramacion = null;
52 52
             $this->referencia = '';
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             "WHERE id = ".$this->intval($this->id).";";
82 82
             $data = $this->db->exec($sql);
83 83
             return $data;
84
-        }else{
84
+        } else{
85 85
             $sql = "INSERT INTO ".$this->table_name.
86 86
             " (idprogramacion, referencia, pvp, cantidad, codimpuesto, importe) VALUES (".
87 87
             $this->intval($this->idprogramacion).", ".
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             
94 94
             if($this->db->exec($sql)){
95 95
                 return true;
96
-            }else{
96
+            } else{
97 97
                 return false;
98 98
             }
99 99
         }
Please login to merge, or discard this patch.