Completed
Push — develop ( 0eab66...c30d8d )
by Zack
11:05 queued 03:39
created
future/includes/class-gv-collection-entry.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -313,6 +313,7 @@
 block discarded – undo
313 313
 	 * Add a callback for lazy loading/counting.
314 314
 	 *
315 315
 	 * @param callable $callback The callback to call when needed.
316
+	 * @param string $type
316 317
 	 *
317 318
 	 * @return void
318 319
 	 */
Please login to merge, or discard this patch.
future/includes/class-gv-context.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
 	 * Set an setting.
39 39
 	 *
40 40
 	 * @param mixed $key The key in this setting to retrieve.
41
-	 * @param mixed $default A default in case the key is not set. 
42 41
 	 *
43 42
 	 * @api
44 43
 	 * @since future
Please login to merge, or discard this patch.
future/includes/class-gv-entry-gravityforms.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 	 *
39 39
 	 * @api
40 40
 	 * @since future
41
-	 * @return \GV\Entry|null An instance of this entry or null if not found.
41
+	 * @return null|GF_Entry An instance of this entry or null if not found.
42 42
 	 */
43 43
 	public static function by_id( $entry_id ) {
44 44
 		$entry = \GFAPI::get_entry( $entry_id );
Please login to merge, or discard this patch.
future/includes/class-gv-view.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@
 block discarded – undo
298 298
 	/**
299 299
 	 * Determines if a view exists to begin with.
300 300
 	 *
301
-	 * @param int|\WP_Post|null $view_id The WordPress post ID, a \WP_Post object or null for global $post;
301
+	 * @param int|\WP_Post|null $view The WordPress post ID, a \WP_Post object or null for global $post;
302 302
 	 *
303 303
 	 * @api
304 304
 	 * @since future
Please login to merge, or discard this patch.
includes/class-frontend-views.php 2 patches
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
 	/**
155 155
 	 * Sets the single entry ID and also the entry
156
-	 * @param bool|int|string $single_entry
156
+	 * @param boolean|string $single_entry
157 157
 	 */
158 158
 	public function setSingleEntry( $single_entry ) {
159 159
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 	/**
172 172
 	 * Set the current entry
173
-	 * @param array|int $entry Entry array or entry slug or ID
173
+	 * @param boolean|string $entry Entry array or entry slug or ID
174 174
 	 */
175 175
 	public function setEntry( $entry ) {
176 176
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	 *
229 229
 	 *
230 230
 	 *
231
-	 * @param null $view_id
231
+	 * @param string $view_id
232 232
 	 */
233 233
 	public function set_context_view_id( $view_id = null ) {
234 234
 		$multiple_views = defined( 'GRAVITYVIEW_FUTURE_CORE_LOADED' ) ? gravityview()->views->count() > 1 : ( $this->getGvOutputData() && $this->getGvOutputData()->has_multiple_views() );
@@ -1213,7 +1213,7 @@  discard block
 block discarded – undo
1213 1213
 	 *
1214 1214
 	 * @uses  gravityview_get_entries()
1215 1215
 	 * @access public
1216
-	 * @param array $args\n
1216
+	 * @param array $args
1217 1217
 	 *   - $id - View id
1218 1218
 	 *   - $page_size - Page
1219 1219
 	 *   - $sort_field - form field id to sort
@@ -1370,7 +1370,6 @@  discard block
 block discarded – undo
1370 1370
 	 * @since 1.19.5
1371 1371
 	 *
1372 1372
 	 * @param $args
1373
-	 * @param int $form_id
1374 1373
 	 */
1375 1374
 	public static function get_search_criteria_paging( $args ) {
1376 1375
 
@@ -1785,7 +1784,7 @@  discard block
 block discarded – undo
1785 1784
 	/**
1786 1785
 	 * Checks if field (column) is sortable
1787 1786
 	 *
1788
-	 * @param string $field Field settings
1787
+	 * @param string $field_id Field settings
1789 1788
 	 * @param array $form Gravity Forms form array
1790 1789
 	 *
1791 1790
 	 * @since 1.7
Please login to merge, or discard this patch.
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 		}
459 459
 
460 460
 		// User reported WooCommerce doesn't pass two args.
461
-		if ( empty( $passed_post_id ) )  {
461
+		if ( empty( $passed_post_id ) ) {
462 462
 			return $title;
463 463
 		}
464 464
 
@@ -494,8 +494,9 @@  discard block
 block discarded – undo
494 494
 				}
495 495
 
496 496
 				/** No matching form sources were found, happens when requesting an entry from a different form . */
497
-				if ( ! isset( $view ) )
498
-					return $title;
497
+				if ( ! isset( $view ) ) {
498
+									return $title;
499
+				}
499 500
 			} else {
500 501
 				/** Deprecated. Use gravityview()->views->all() or gravityview()->request->all() */
501 502
 				foreach ( $this->getGvOutputData()->get_views() as $view_id => $view_data ) {
@@ -1478,7 +1479,7 @@  discard block
 block discarded – undo
1478 1479
 					 */
1479 1480
 					$address_part = apply_filters( 'gravityview/sorting/address', 'city', $sort_field_id, $form_id );
1480 1481
 
1481
-					switch( strtolower( $address_part ) ){
1482
+					switch( strtolower( $address_part ) ) {
1482 1483
 						case 'street':
1483 1484
 							$sort_field_id .= '.1';
1484 1485
 							break;
@@ -1563,7 +1564,7 @@  discard block
 block discarded – undo
1563 1564
 		 */
1564 1565
 		$single_entry = apply_filters( 'gravityview/is_single_entry', $single_entry );
1565 1566
 
1566
-		if ( empty( $single_entry ) ){
1567
+		if ( empty( $single_entry ) ) {
1567 1568
 			return false;
1568 1569
 		} else {
1569 1570
 			return $single_entry;
Please login to merge, or discard this patch.
includes/class-data.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 						/** Deprecated, see \GV\View_Collection::from_post */
102 102
 						if( ( get_post_type( $post ) === 'gravityview' ) ) {
103 103
 							$ids[] = $post->ID;
104
-						} else{
104
+						} else {
105 105
 							// Parse the Post Content
106 106
 							$id = $this->parse_post_content( $post->post_content );
107 107
 							if( $id ) {
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
 		}
647 647
 
648 648
 		if( ! $message ) {
649
-			if ( defined( 'GRAVITYVIEW_FUTURE_CORE_LOADED' ) && $post = get_post( $post_id ) )  {
649
+			if ( defined( 'GRAVITYVIEW_FUTURE_CORE_LOADED' ) && $post = get_post( $post_id ) ) {
650 650
 				$views = GV\View_Collection::from_post( $post );
651 651
 				$view_ids_in_post = array_map( function( $view ) { return $view->ID; }, $views->all() );
652 652
 			} else {
Please login to merge, or discard this patch.
future/includes/class-gv-logger.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @return void
38 38
      */
39
-    public function emergency($message, array $context = array())
40
-    {
39
+    public function emergency($message, array $context = array()) {
41 40
         $this->log(LogLevel::EMERGENCY, $message, $context);
42 41
     }
43 42
 
@@ -52,8 +51,7 @@  discard block
 block discarded – undo
52 51
      *
53 52
      * @return void
54 53
      */
55
-    public function alert($message, array $context = array())
56
-    {
54
+    public function alert($message, array $context = array()) {
57 55
         $this->log(LogLevel::ALERT, $message, $context);
58 56
     }
59 57
 
@@ -67,8 +65,7 @@  discard block
 block discarded – undo
67 65
      *
68 66
      * @return void
69 67
      */
70
-    public function critical($message, array $context = array())
71
-    {
68
+    public function critical($message, array $context = array()) {
72 69
         $this->log(LogLevel::CRITICAL, $message, $context);
73 70
     }
74 71
 
@@ -81,8 +78,7 @@  discard block
 block discarded – undo
81 78
      *
82 79
      * @return void
83 80
      */
84
-    public function error($message, array $context = array())
85
-    {
81
+    public function error($message, array $context = array()) {
86 82
         $this->log(LogLevel::ERROR, $message, $context);
87 83
     }
88 84
 
@@ -97,8 +93,7 @@  discard block
 block discarded – undo
97 93
      *
98 94
      * @return void
99 95
      */
100
-    public function warning($message, array $context = array())
101
-    {
96
+    public function warning($message, array $context = array()) {
102 97
         $this->log(LogLevel::WARNING, $message, $context);
103 98
     }
104 99
 
@@ -110,8 +105,7 @@  discard block
 block discarded – undo
110 105
      *
111 106
      * @return void
112 107
      */
113
-    public function notice($message, array $context = array())
114
-    {
108
+    public function notice($message, array $context = array()) {
115 109
         $this->log(LogLevel::NOTICE, $message, $context);
116 110
     }
117 111
 
@@ -125,8 +119,7 @@  discard block
 block discarded – undo
125 119
      *
126 120
      * @return void
127 121
      */
128
-    public function info($message, array $context = array())
129
-    {
122
+    public function info($message, array $context = array()) {
130 123
         $this->log(LogLevel::INFO, $message, $context);
131 124
     }
132 125
 
@@ -138,8 +131,7 @@  discard block
 block discarded – undo
138 131
      *
139 132
      * @return void
140 133
      */
141
-    public function debug($message, array $context = array())
142
-    {
134
+    public function debug($message, array $context = array()) {
143 135
         $this->log(LogLevel::DEBUG, $message, $context);
144 136
     }
145 137
 
Please login to merge, or discard this patch.