Passed
Push — master ( 1582ee...f22301 )
by Joe Nilson
01:53
created
Controller/ListNCFRango.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $this->addView('ListNCFRango', 'NCFRango');
50 50
         $this->addSearchFields('ListNCFRango', ['tipocomprobante']);
51
-        $this->addOrderBy('ListNCFRango', ['tipocomprobante','correlativo'], 'tipocomprobante');
51
+        $this->addOrderBy('ListNCFRango', ['tipocomprobante', 'correlativo'], 'tipocomprobante');
52 52
         
53 53
         $this->setSettings('ListNCFRango', 'modalInsert', 'ncf-rango-insert');
54 54
         $this->setCustomWidgetValues('ListNCFRango');
@@ -79,14 +79,14 @@  discard block
 block discarded – undo
79 79
                 $valueUsuarioCreacion = $this->request->request->get('usuariocreacion');
80 80
                 $valueFechaCreacion = $this->request->request->get('fechacreacion');
81 81
                 $data = $this->request->request->all();
82
-                $data['serie']=($this->inputExists($valueSerie))?$valueSerie:$data['serie'];
83
-                $data['idempresa']=($this->inputExists($valueIdEmpresa))?$valueIdEmpresa:$this->empresa->idempresa;
84
-                $data['usuariomodificacion']=($this->inputExists($valueFechaCreacion))?$this->user->nick:null;
85
-                $data['usuariocreacion']=($this->inputExists($valueUsuarioCreacion))
86
-                                        ?$valueUsuarioCreacion
82
+                $data['serie'] = ($this->inputExists($valueSerie)) ? $valueSerie : $data['serie'];
83
+                $data['idempresa'] = ($this->inputExists($valueIdEmpresa)) ? $valueIdEmpresa : $this->empresa->idempresa;
84
+                $data['usuariomodificacion'] = ($this->inputExists($valueFechaCreacion)) ? $this->user->nick : null;
85
+                $data['usuariocreacion'] = ($this->inputExists($valueUsuarioCreacion))
86
+                                        ? $valueUsuarioCreacion
87 87
                                         :$this->user->nick;
88
-                $data['fechacreacion']=($this->inputExists($valueFechaCreacion))
89
-                                        ?$valueFechaCreacion
88
+                $data['fechacreacion'] = ($this->inputExists($valueFechaCreacion))
89
+                                        ? $valueFechaCreacion
90 90
                                         :\date('Y-m-d');
91 91
                 $rangoNuevo = new NCFRango();
92 92
                 $rangoNuevo->loadFromData($data);
Please login to merge, or discard this patch.