Completed
Push — master ( 373ce5...4970c6 )
by Reginaldo
18:28
created
app/Console/cake.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 $ds = DIRECTORY_SEPARATOR;
21
-$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
21
+$dispatcher = 'Cake'.$ds.'Console'.$ds.'ShellDispatcher.php';
22 22
 
23 23
 if (function_exists('ini_set')) {
24 24
 	$root = dirname(dirname(dirname(__FILE__)));
25 25
 
26 26
 	// the following line differs from its sibling
27 27
 	// /lib/Cake/Console/Templates/skel/Console/cake.php
28
-	ini_set('include_path', $root . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
28
+	ini_set('include_path', $root.$ds.'lib'.PATH_SEPARATOR.ini_get('include_path'));
29 29
 }
30 30
 
31
-if (!include $dispatcher) {
31
+if ( ! include $dispatcher) {
32 32
 	trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
33 33
 }
34 34
 unset($paths, $path, $dispatcher, $root, $ds);
Please login to merge, or discard this patch.
app/Controller/AdminController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class AdminController extends AppController{
3
+class AdminController extends AppController {
4 4
 
5
-	public function beforeFilter(){
5
+	public function beforeFilter() {
6 6
 		return true;
7 7
    	}
8 8
 
Please login to merge, or discard this patch.
app/Controller/AppController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	* Toda vez que determinado controller não precisa de verificação de acesso o
24 24
 	* o mesmo precisa ter essa função rescrita somente com um return true
25 25
 	*/
26
-	public function beforeFilter(){
26
+	public function beforeFilter() {
27 27
 		if ($this->debug) {
28 28
 			return true;
29 29
 		}
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 	public function verificar_acesso_admin() {
103 103
 		$verificar = $this->Session->read('Admin.logado');
104
-		if (!$verificar) {
104
+		if ( ! $verificar) {
105 105
 			$this->Session->setFlash('Você não possui acesso a está área do sistema');
106 106
 			$this->redirect('/admin/login');
107 107
 		}
Please login to merge, or discard this patch.
app/Controller/CategoriaController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 		$dados['usuario_id'] = $this->instancia;
31 31
 
32 32
 		if ($this->Categoria->save($dados)) {
33
-			$this->Session->setFlash('Categoria criada com Sucesso!','default','good');
33
+			$this->Session->setFlash('Categoria criada com Sucesso!', 'default', 'good');
34 34
             return $this->redirect('/categoria/listar_cadastros');
35 35
 		} else {
36
-			$this->Session->setFlash('Erro ao criar a categoria!','default','good');
36
+			$this->Session->setFlash('Erro ao criar a categoria!', 'default', 'good');
37 37
             return $this->redirect('/categoria/listar_cadastros');
38 38
 		}
39 39
 	}
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
 		$categoria = $this->Categoria->find('first', 
45 45
 			array('conditions' => 
46
-				array( 'id' => $id )
46
+				array('id' => $id)
47 47
 			)
48 48
 		);
49 49
 
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 		$this->Categoria->id = $id;
61 61
 
62 62
 		if ($this->Categoria->save($dados)) {
63
-			$this->Session->setFlash('Categoria editada com Sucesso!','default','good');
63
+			$this->Session->setFlash('Categoria editada com Sucesso!', 'default', 'good');
64 64
             return $this->redirect('/categoria/listar_cadastros');
65 65
 		} else {
66
-			$this->Session->setFlash('Erro ao editar a categoria!','default','good');
66
+			$this->Session->setFlash('Erro ao editar a categoria!', 'default', 'good');
67 67
             return $this->redirect('/categoria/listar_cadastros');
68 68
 		}
69 69
 	}
@@ -75,14 +75,14 @@  discard block
 block discarded – undo
75 75
 
76 76
 		$id = $this->request->data('id');
77 77
 
78
-		$dados = array ('ativo' => '0');
79
-		$parametros = array ('id' => $id);
78
+		$dados = array('ativo' => '0');
79
+		$parametros = array('id' => $id);
80 80
 
81 81
 		if ($this->Categoria->updateAll($dados, $parametros)) {
82
-			$this->Session->setFlash('Categoria excluida com Sucesso!','default','good');
82
+			$this->Session->setFlash('Categoria excluida com Sucesso!', 'default', 'good');
83 83
 			echo json_encode(true);
84 84
 		} else {
85
-			$this->Session->setFlash('Erro ao excluir categoria!','default','good');
85
+			$this->Session->setFlash('Erro ao excluir categoria!', 'default', 'good');
86 86
 			echo json_encode(false);
87 87
 		}
88 88
 	}
Please login to merge, or discard this patch.
app/Controller/ClienteController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class ClienteController extends AppController{	
3
+class ClienteController extends AppController {	
4 4
 	// public $helpers = array('Excel');
5 5
 
6 6
 	function home() {
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 		if ($this->Cliente->save($dados)) {
25 25
 			$endereco['id_usuario'] = $this->instancia;
26 26
 			$endereco['id_cliente'] = $this->Cliente->id;
27
-			$endereco['ativo']		= 1;
27
+			$endereco['ativo'] = 1;
28 28
 
29 29
 			$this->loadModel('EnderecoClienteCadastro');
30 30
 			$this->EnderecoClienteCadastro->save($endereco);
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 
43 43
 		$id = $this->request->data('id');
44 44
 
45
-		$dados = array ('ativo' => '0');
46
-		$parametros = array ('id' => $id);
45
+		$dados = array('ativo' => '0');
46
+		$parametros = array('id' => $id);
47 47
 
48
-		if ($this->Cliente->updateAll($dados,$parametros)) {
48
+		if ($this->Cliente->updateAll($dados, $parametros)) {
49 49
 			echo json_encode(true);
50 50
 		} else {
51 51
 			echo json_encode(false);
Please login to merge, or discard this patch.
app/Controller/Component/AuthComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class AuthComponent extends Component{
3
+class AuthComponent extends Component {
4 4
    function doComplexOperation($amount1, $amount2) {
5 5
         return $amount1 + $amount2;
6 6
     }
Please login to merge, or discard this patch.
app/Controller/ConsultaController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 class ConsultaController extends AppController {
4 4
 
5
-	public function listar_cadastros(){
5
+	public function listar_cadastros() {
6 6
 		$this->loadModel('Consulta');
7 7
 		$consultas = $this->Consulta->find('all', 
8 8
 			array('conditions' => 
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 		$id = $this->request->data('id');
22 22
 		$this->loadModel('Consulta');
23 23
 
24
-		$dados = array ('ativo' => '0');
25
-		$parametros = array ('id' => $id);
24
+		$dados = array('ativo' => '0');
25
+		$parametros = array('id' => $id);
26 26
 
27
-		if ($this->Consulta->updateAll($dados,$parametros)) {
27
+		if ($this->Consulta->updateAll($dados, $parametros)) {
28 28
 			echo json_encode(true);
29 29
 		} else {
30 30
 			echo json_encode(false);
Please login to merge, or discard this patch.
app/Controller/CupomController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	**/
93 93
 	public function procurar_cupom($nome_cupom, $usuario_id)
94 94
 	{
95
-		if (empty($nome_cupom) && !isset($nome_cupom))
95
+		if (empty($nome_cupom) && ! isset($nome_cupom))
96 96
 		{
97 97
 			return false;
98 98
 		}
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	**/
122 122
 	public function calcular_desconto_cupom($valor_original, $valor_desconto_cupom, $tipo_cupom)
123 123
 	{
124
-		if (empty($valor_original) && !isset($valor_original))
124
+		if (empty($valor_original) && ! isset($valor_original))
125 125
 		{
126 126
 			return false;
127 127
 		}
@@ -146,14 +146,14 @@  discard block
 block discarded – undo
146 146
 	**/
147 147
 	public function utilizar_cupom($cupom, $valor_original, $usuario_id)
148 148
 	{
149
-		if (empty($cupom) && !isset($cupom))
149
+		if (empty($cupom) && ! isset($cupom))
150 150
 		{
151 151
 			return false;
152 152
 		}
153 153
 
154 154
 		$cupom = $this->procurar_cupom($cupom, $usuario_id);
155 155
 		
156
-		if (!$cupom)
156
+		if ( ! $cupom)
157 157
 		{
158 158
 			return false;
159 159
 		}
Please login to merge, or discard this patch.
app/Controller/DashboardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class DashboardController extends AppController{
3
+class DashboardController extends AppController {
4 4
 
5 5
 	function home() {
6 6
 		$pagamento = $this->verificar_pagamento();
Please login to merge, or discard this patch.