@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | $this->loadModel('AviseMe'); |
| 11 | 11 | |
| 12 | - $query = array ( |
|
| 12 | + $query = array( |
|
| 13 | 13 | 'joins' => array( |
| 14 | 14 | array( |
| 15 | 15 | 'table' => 'produtos', |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | $id = $this->request->data('id'); |
| 39 | 39 | |
| 40 | - $dados = array ('ativo' => '0'); |
|
| 41 | - $parametros = array ('id' => $id); |
|
| 40 | + $dados = array('ativo' => '0'); |
|
| 41 | + $parametros = array('id' => $id); |
|
| 42 | 42 | |
| 43 | 43 | if ($this->AviseMe->updateAll($dados, $parametros)) { |
| 44 | 44 | echo json_encode(true); |
@@ -59,12 +59,12 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | $this->AviseMe->set($this->request->data); |
| 61 | 61 | |
| 62 | - if (!$this->AviseMe->validates()) |
|
| 62 | + if ( ! $this->AviseMe->validates()) |
|
| 63 | 63 | { |
| 64 | 64 | return $this->AviseMe->validationErrors; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if (!$this->AviseMe->save($this->request->data)) |
|
| 67 | + if ( ! $this->AviseMe->save($this->request->data)) |
|
| 68 | 68 | { |
| 69 | 69 | return false; |
| 70 | 70 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | ->subject('Produto Aviso'); |
| 100 | 100 | |
| 101 | 101 | $mensagem = ' |
| 102 | - <p><strong>Nome</strong>: '. $produto[0]['Produto']['nome'] .'</p> |
|
| 102 | + <p><strong>Nome</strong>: '. $produto[0]['Produto']['nome'].'</p> |
|
| 103 | 103 | '; |
| 104 | 104 | |
| 105 | 105 | if ($email->send($mensagem)) { |