@@ -97,6 +97,9 @@ |
||
97 | 97 | |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param string $fetch_mode |
|
102 | + */ |
|
100 | 103 | private static function selectFetchMode($fetch_mode) { |
101 | 104 | |
102 | 105 | if ( $fetch_mode == Database::FETCH_NUM ) return MYSQLI_NUM; |
@@ -945,7 +945,7 @@ discard block |
||
945 | 945 | * |
946 | 946 | * @param string $query |
947 | 947 | * |
948 | - * @return QueryResult |
|
948 | + * @return Results\QueryResultInterface |
|
949 | 949 | * |
950 | 950 | * @throws \Comodojo\Exception\DatabaseException |
951 | 951 | */ |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | * |
963 | 963 | * @param string $query |
964 | 964 | * |
965 | - * @return mixed |
|
965 | + * @return resource |
|
966 | 966 | * |
967 | 967 | * @throws \Comodojo\Exception\DatabaseException |
968 | 968 | */ |
@@ -57,13 +57,13 @@ |
||
57 | 57 | */ |
58 | 58 | public function getLength(); |
59 | 59 | |
60 | - /** |
|
61 | - * Get number of rows affected by query |
|
62 | - * |
|
63 | - * @return int |
|
64 | - * @throws DatabaseException |
|
65 | - */ |
|
66 | - public function getAffectedRows(); |
|
60 | + /** |
|
61 | + * Get number of rows affected by query |
|
62 | + * |
|
63 | + * @return int |
|
64 | + * @throws DatabaseException |
|
65 | + */ |
|
66 | + public function getAffectedRows(); |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Get last insert id (if available) |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | } catch (PDOException $e) { |
59 | 59 | |
60 | - throw new DatabaseException($e->getMessage(), (int)$e->getCode()); |
|
60 | + throw new DatabaseException($e->getMessage(), (int) $e->getCode()); |
|
61 | 61 | |
62 | 62 | } |
63 | 63 |
@@ -217,7 +217,7 @@ |
||
217 | 217 | */ |
218 | 218 | public function setFetchMode($mode) { |
219 | 219 | |
220 | - if ( in_array( $fetch = strtoupper($mode), Array('ASSOC', 'NUM', 'BOTH')) ) { |
|
220 | + if ( in_array($fetch = strtoupper($mode), Array('ASSOC', 'NUM', 'BOTH')) ) { |
|
221 | 221 | |
222 | 222 | $this->fetch = $fetch; |
223 | 223 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | } catch (PDOException $e) { |
59 | 59 | |
60 | - throw new DatabaseException($e->getMessage(), (int)$e->getCode()); |
|
60 | + throw new DatabaseException($e->getMessage(), (int) $e->getCode()); |
|
61 | 61 | |
62 | 62 | } |
63 | 63 |