@@ -22,7 +22,7 @@ |
||
| 22 | 22 | public function getPage() { |
| 23 | 23 | return $this->page; |
| 24 | 24 | } |
| 25 | - public function getModule(){ |
|
| 25 | + public function getModule() { |
|
| 26 | 26 | return $this->module; |
| 27 | 27 | } |
| 28 | 28 | public function getController() { |
@@ -62,8 +62,7 @@ discard block |
||
| 62 | 62 | if (in_array($explode[$i], $this->getAllModules())) { |
| 63 | 63 | $this->module = $explode[$i]; |
| 64 | 64 | $debut_url = $explode[$i]; |
| 65 | - } |
|
| 66 | - else if ($i >= 1) { |
|
| 65 | + } else if ($i >= 1) { |
|
| 67 | 66 | $centre_url[] = $explode[$i]; |
| 68 | 67 | } |
| 69 | 68 | } |
@@ -73,8 +72,7 @@ discard block |
||
| 73 | 72 | |
| 74 | 73 | if (!isset($centre_url) || ($centre_url == "")) { |
| 75 | 74 | $this->page = "index"; |
| 76 | - } |
|
| 77 | - else { |
|
| 75 | + } else { |
|
| 78 | 76 | $file = ROOT."modules/".$debut_url."/app/views/".$centre_url; |
| 79 | 77 | |
| 80 | 78 | if (!file_exists($file.".html")) { |
@@ -108,8 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | if ($no_bind === true) { |
| 110 | 110 | $this->conditions_table[] = $champ.$cond.$champ_test." ".$closure; |
| 111 | - } |
|
| 112 | - else { |
|
| 111 | + } else { |
|
| 113 | 112 | $this->conditions[] = $cond; |
| 114 | 113 | $this->addWhere($champ, $champ_test); |
| 115 | 114 | } |
@@ -122,7 +121,9 @@ discard block |
||
| 122 | 121 | * @param string $type |
| 123 | 122 | */ |
| 124 | 123 | public function orderBy($order, $type = null) { |
| 125 | - if ($type === null) $type = "ASC"; |
|
| 124 | + if ($type === null) { |
|
| 125 | + $type = "ASC"; |
|
| 126 | + } |
|
| 126 | 127 | |
| 127 | 128 | $this->order_by = " ORDER BY ".$order." ".$type." "; |
| 128 | 129 | |
@@ -136,8 +137,7 @@ discard block |
||
| 136 | 137 | public function limit($debut, $fin = "no") { |
| 137 | 138 | if ($fin == "no") { |
| 138 | 139 | $this->limit = " LIMIT ".$debut." "; |
| 139 | - } |
|
| 140 | - else { |
|
| 140 | + } else { |
|
| 141 | 141 | $this->limit = " LIMIT ".$debut.", ".$fin." "; |
| 142 | 142 | } |
| 143 | 143 | |