@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * |
| 117 | 117 | * @param array $data |
| 118 | 118 | * |
| 119 | - * @return Row |
|
| 119 | + * @return \SimpleCrud\Row |
|
| 120 | 120 | */ |
| 121 | 121 | public function createRow(array $data) |
| 122 | 122 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Run the query and return the value. |
| 19 | 19 | * |
| 20 | - * @return int |
|
| 20 | + * @return double |
|
| 21 | 21 | */ |
| 22 | 22 | public function run() |
| 23 | 23 | { |
@@ -95,6 +95,7 @@ |
||
| 95 | 95 | /** |
| 96 | 96 | * Returns a config value |
| 97 | 97 | * |
| 98 | + * @param string $name |
|
| 98 | 99 | * @return mixed |
| 99 | 100 | */ |
| 100 | 101 | public function getConfig($name) |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | class Select extends BaseSelect |
| 11 | 11 | { |
| 12 | - /** |
|
| 12 | + /** |
|
| 13 | 13 | * {@inheritdoc} |
| 14 | 14 | */ |
| 15 | 15 | protected static function buildFoundRows() |
@@ -21,19 +21,19 @@ discard block |
||
| 21 | 21 | * {@inheritdoc} |
| 22 | 22 | */ |
| 23 | 23 | protected function getFoundRows() { |
| 24 | - $query = $this->table->count(); |
|
| 24 | + $query = $this->table->count(); |
|
| 25 | 25 | |
| 26 | - $query->marks($this->marks); |
|
| 26 | + $query->marks($this->marks); |
|
| 27 | 27 | |
| 28 | - foreach ($this->where as $k => $where) { |
|
| 29 | - if ($k === 'or') { |
|
| 30 | - foreach ($where as $condition) { |
|
| 31 | - $query->orWhere($condition); |
|
| 32 | - } |
|
| 33 | - } else { |
|
| 34 | - $query->where($where); |
|
| 35 | - } |
|
| 36 | - } |
|
| 28 | + foreach ($this->where as $k => $where) { |
|
| 29 | + if ($k === 'or') { |
|
| 30 | + foreach ($where as $condition) { |
|
| 31 | + $query->orWhere($condition); |
|
| 32 | + } |
|
| 33 | + } else { |
|
| 34 | + $query->where($where); |
|
| 35 | + } |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | 38 | return $query->run(); |
| 39 | 39 | } |