Completed
Push — master ( de6a17...35dc2a )
by Sam
02:15
created
src/DB/Table.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 	/**
593 593
 	 * Get a count of the number of pages in the currently filtered record set.
594 594
 	 *
595
-	 * @return integer The page count.
595
+	 * @return double The page count.
596 596
 	 */
597 597
 	public function get_page_count() {
598 598
 		return ceil( $this->count_records() / $this->get_records_per_page() );
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
 	/**
924 924
 	 * Get a list of the names of the foreign keys in this table.
925 925
 	 *
926
-	 * @return string[] Names of foreign key columns in this table.
926
+	 * @return integer[] Names of foreign key columns in this table.
927 927
 	 */
928 928
 	public function get_foreign_key_names() {
929 929
 		return array_keys( $this->get_referenced_tables( false ) );
Please login to merge, or discard this patch.
src/Controllers/RecordController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 * Save a record.
80 80
 	 *
81 81
 	 * @param string[] $args The request arguments.
82
-	 * @return boolean
82
+	 * @return false|null
83 83
 	 */
84 84
 	public function save( $args ) {
85 85
 		$db = new \WordPress\Tabulate\DB\Database( $this->wpdb );
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 * Delete (or ask for confirmation of deleting) a single record.
132 132
 	 *
133 133
 	 * @param string[] $args The request arguments.
134
-	 * @return type
134
+	 * @return null|string
135 135
 	 */
136 136
 	public function delete( $args ) {
137 137
 		$db = new \WordPress\Tabulate\DB\Database( $this->wpdb );
Please login to merge, or discard this patch.
src/DB/Column.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	/**
118 118
 	 * Get the valid options for this column; only applies to ENUM and SET.
119 119
 	 *
120
-	 * @return array The available options.
120
+	 * @return string[] The available options.
121 121
 	 */
122 122
 	public function get_options() {
123 123
 		return $this->options;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 	/**
271 271
 	 * Get the default value for this column.
272 272
 	 *
273
-	 * @return mixed
273
+	 * @return string|null
274 274
 	 */
275 275
 	public function get_default() {
276 276
 		if ( 'CURRENT_TIMESTAMP' === $this->default_value ) {
Please login to merge, or discard this patch.
src/Controllers/ReportsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	 * View a report.
22 22
 	 *
23 23
 	 * @param string[] $args The request arguments.
24
-	 * @return type
24
+	 * @return null|string
25 25
 	 */
26 26
 	public function index( $args ) {
27 27
 		$db = new Database( $this->wpdb );
Please login to merge, or discard this patch.
src/DB/ChangeTracker.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
 	 * changeset if required, and save the old record for later use.
116 116
 	 *
117 117
 	 * @param Table $table The table into which the record is being saved.
118
-	 * @param type  $pk_value The primary key of the record being saved. May be null.
119
-	 * @return boolean
118
+	 * @param string|null  $pk_value The primary key of the record being saved. May be null.
119
+	 * @return false|null
120 120
 	 */
121 121
 	public function before_save( Table $table, $pk_value ) {
122 122
 		// Don't save changes to the changes tables.
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 *
138 138
 	 * @param Table  $table The table the record is being saved in.
139 139
 	 * @param Record $new_record The record, after being saved.
140
-	 * @return boolean
140
+	 * @return false|null
141 141
 	 */
142 142
 	public function after_save( Table $table, Record $new_record ) {
143 143
 		// Don't save changes to the changes tables.
Please login to merge, or discard this patch.
src/Template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 	 * Get an item from this template's data.
136 136
 	 *
137 137
 	 * @param string $name The name of the template variable.
138
-	 * @return mixed
138
+	 * @return string
139 139
 	 */
140 140
 	public function __get( $name ) {
141 141
 		return $this->data[ $name ];
Please login to merge, or discard this patch.