@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | switch (gettype($c)) { |
| 49 | 49 | case 'array'; |
| 50 | 50 | foreach ($c as $k => $v) { |
| 51 | - self::$config[$k] = self::getValid((string) $k, $v); |
|
| 51 | + self::$config[$k] = self::getValid((string)$k, $v); |
|
| 52 | 52 | } |
| 53 | 53 | break; |
| 54 | 54 | case 'string': |
@@ -88,8 +88,7 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | //Condition: '' | '(HAVING|WHERE|AND) ' . $cond |
| 90 | 90 | $c = !empty($cond) && !strpos($q, ($cl = !$h ? 'WHERE' : 'HAVING')) ? |
| 91 | - (' ' . (!strpos($q, $cl) ? $cl : ' AND ') . ' ' . $cond ) : |
|
| 92 | - ''; |
|
| 91 | + (' ' . (!strpos($q, $cl) ? $cl : ' AND ') . ' ' . $cond) : ''; |
|
| 93 | 92 | //Order: '' | 'ORDER BY ' . array_keys($order)[0] . ' ' . $order[0] |
| 94 | 93 | $o = !empty($order) ? |
| 95 | 94 | ' ORDER BY ' . implode(', ', |
@@ -100,8 +99,7 @@ discard block |
||
| 100 | 99 | ''; |
| 101 | 100 | //Limit: '' | ' LIMIT ' . '(20, 40|20)' |
| 102 | 101 | $l = !empty($limit) ? |
| 103 | - (' LIMIT ' . (is_array($limit) ? implode(', ', $limit) : $limit)) : |
|
| 104 | - ''; |
|
| 102 | + (' LIMIT ' . (is_array($limit) ? implode(', ', $limit) : $limit)) : ''; |
|
| 105 | 103 | |
| 106 | 104 | return $q . $c . $o . $l; |
| 107 | 105 | } |
@@ -124,7 +122,7 @@ discard block |
||
| 124 | 122 | $list = []; |
| 125 | 123 | foreach ($attributes as $key => $value) { |
| 126 | 124 | if (is_bool($value)) { |
| 127 | - if ((bool) $value) { |
|
| 125 | + if ((bool)$value) { |
|
| 128 | 126 | $list[] = $key; |
| 129 | 127 | } |
| 130 | 128 | } else if (empty($value) && !is_int($value)) { |
@@ -145,7 +143,7 @@ discard block |
||
| 145 | 143 | extract($vars); |
| 146 | 144 | ob_start(); |
| 147 | 145 | require $template; |
| 148 | - return (string) ob_get_clean(); |
|
| 146 | + return (string)ob_get_clean(); |
|
| 149 | 147 | } |
| 150 | 148 | |
| 151 | 149 | /**Makes code radey for the next table |