Passed
Push — master ( 33b63d...303f6e )
by Adam
01:36
created
src/Database.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * This outputs the SQL where query based on a given array
87 87
      * @param array $where This should be an array that you wish to create the where query for in the for array('field1' => 'test') or array('field1' => array('>=', 0))
88
-     * @return string|boolean If the where query is an array will return the where string and set the values else returns false if no array sent
88
+     * @return string|false If the where query is an array will return the where string and set the values else returns false if no array sent
89 89
      */
90 90
     private function where($where){
91 91
         if(is_array($where)){
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * Sets the order sting for the SQL query based on an array or string
116 116
      * @param array|string $order This should be either set to array('fieldname' => 'ASC/DESC') or RAND()
117
-     * @return string|boolean If the SQL query has an valid order by will return a string else returns false
117
+     * @return string|false If the SQL query has an valid order by will return a string else returns false
118 118
      */
119 119
     private function orderBy($order){
120 120
         if(is_array($order)){
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
     
131 131
     /**
132 132
      * Returns the limit SQL for the current query as a string
133
-     * @param int|array $limit This should either be set as an integer or should be set as an array with a start and end value  
134
-     * @return string|boolean Will return the LIMIT string for the current query if it is valid else returns false
133
+     * @param integer $limit This should either be set as an integer or should be set as an array with a start and end value  
134
+     * @return string|false Will return the LIMIT string for the current query if it is valid else returns false
135 135
      */
136 136
     private function limit($limit = 0){
137 137
         if(is_array($limit)){
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @param array $where Should be the field names and values you wish to use as the where query e.g. array('fieldname' => 'value', 'fieldname2' => 'value2', etc).
171 171
      * @param string|array $fields This should be the records you wis to select from the table. It should be either set as '*' which is the default or set as an array in the following format array('field', 'field2', 'field3', etc).
172 172
      * @param array|string $order This is the order you wish the results to be ordered in should be formatted as follows array('fieldname' => 'ASC') or array("'fieldname', 'fieldname2'" => 'DESC') so it can be done in both directions
173
-     * @param int|array $limit The number of results you want to return 0 is default and returns all results, else should be formated either as a standard integer or as an array as the start and end values e.g. array(0 => 150)
173
+     * @param integer $limit The number of results you want to return 0 is default and returns all results, else should be formated either as a standard integer or as an array as the start and end values e.g. array(0 => 150)
174 174
      */
175 175
     protected function buildSelectQuery($table, $where = '', $fields = '*', $order = '', $limit = 0){
176 176
         if(is_array($fields)){
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * @param array $where Should be the field names and values you wish to use as the where query e.g. array('fieldname' => 'value', 'fieldname2' => 'value2', etc).
207 207
      * @param string|array $fields This should be the records you wis to select from the table. It should be either set as '*' which is the default or set as an array in the following format array('field', 'field2', 'field3', etc).
208 208
      * @param array|string $order This is the order you wish the results to be ordered in should be formatted as follows array('fieldname' => 'ASC') or array("'fieldname', 'fieldname2'" => 'DESC') so it can be done in both directions
209
-     * @param int|array $limit The number of results you want to return 0 is default and returns all results, else should be formated either as a standard integer or as an array as the start and end values e.g. array(0 => 150)
209
+     * @param integer $limit The number of results you want to return 0 is default and returns all results, else should be formated either as a standard integer or as an array as the start and end values e.g. array(0 => 150)
210 210
      * @param boolean $cache If the query should be cached or loaded from cache set to true else set to false
211 211
      * @return array Returns a multidimensional array with the chosen fields from the table
212 212
      */
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
     
444 444
     /**
445 445
      * Displays the error massage which occurs
446
-     * @param object $error This should be an instance of Exception
446
+     * @param \Exception $error This should be an instance of Exception
447 447
      */
448 448
     private function error($error){
449 449
         if($this->logErrors){
Please login to merge, or discard this patch.