Completed
Push — master ( 8fc659...f29135 )
by Reginaldo
26:07
created
app/Controller/CaixaController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@
 block discarded – undo
64 64
 		return $caixa;
65 65
 	}
66 66
 
67
+	/**
68
+	 * @param string $tipo
69
+	 */
67 70
 	public function carregar_total_por_tipo($tipo)
68 71
 	{
69 72
 		$this->loadModel('LancamentoVenda');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 		$data = $this->request->data['caixa'];
7 7
 
8 8
 		$data['usuario_id'] = $this->instancia;
9
-		$data['ativo']		= 1;
9
+		$data['ativo'] = 1;
10 10
 
11
-		if (!$this->Caixa->save($data)) {
11
+		if ( ! $this->Caixa->save($data)) {
12 12
 			$this->Session->setFlash('Ocorreu um erro ao abrir o caixa, tente novamente, caso persista contate o suporte');
13 13
 			$this->redirect('/venda/adicionar_cadastro');
14 14
 		}
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	public function finalizar_caixa() {
21 21
 		$data = $this->request->data['caixa'];
22 22
 
23
-		if (!$this->Caixa->save($data)) {
23
+		if ( ! $this->Caixa->save($data)) {
24 24
 			$this->Session->setFlash('Ocorreu um erro ao fechar o caixa, tente novamente, caso persista contate o suporte');
25 25
 			$this->redirect('/venda/adicionar_cadastro');
26 26
 		}
Please login to merge, or discard this patch.
app/Model/CaixaModel.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 class CategoriaBanner extends AppModel {
4 4
 	public  $belongsTo  =  array ( 
5
-        'Usuario'  =>  array ( 
6
-            'className'  =>  'Usuario' , 
7
-            'foreignKey'  =>  'usuario_id' 
8
-        ),
9
-    ); 
5
+		'Usuario'  =>  array ( 
6
+			'className'  =>  'Usuario' , 
7
+			'foreignKey'  =>  'usuario_id' 
8
+		),
9
+	); 
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 class Caixa extends Model {
4 4
 
5
-	public $belongsTo =  array ( 
6
-        'Usuario'  =>  array ( 
7
-            'className'  =>  'Usuario' , 
5
+	public $belongsTo = array( 
6
+        'Usuario'  =>  array( 
7
+            'className'  =>  'Usuario', 
8 8
             'foreignKey'  =>  'usuario_id' 
9 9
         ),
10 10
     ); 
Please login to merge, or discard this patch.