@@ -64,7 +64,7 @@ |
||
64 | 64 | * Set an setting. |
65 | 65 | * |
66 | 66 | * @param mixed $key The key in this setting to retrieve. |
67 | - * @param mixed $default A default in case the key is not set. |
|
67 | + * @param false|null $default A default in case the key is not set. |
|
68 | 68 | * |
69 | 69 | * @api |
70 | 70 | * @since 2.0 |
@@ -174,7 +174,6 @@ |
||
174 | 174 | * @param \GV\View $view The View. |
175 | 175 | * @param \GV\Entry_Collection $entries The calculated entries. |
176 | 176 | * @param array $atts The shortcode attributes (with defaults). |
177 | - * @param array $view_atts A quirky compatibility parameter where we get the unaltered view atts. |
|
178 | 177 | * |
179 | 178 | * @return string The output. |
180 | 179 | */ |
@@ -24,7 +24,6 @@ |
||
24 | 24 | /** |
25 | 25 | * Get a \GV\Field by Field ID for this data source. |
26 | 26 | * |
27 | - * @param int $field_id The internal field ID (custom content, etc.) |
|
28 | 27 | * |
29 | 28 | * @return \GV\Field|null The requested field or null if not found. |
30 | 29 | */ |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * |
23 | 23 | * @param \GV\Field $field The field to be ouput. |
24 | 24 | * |
25 | - * @return string|false The field output or false if "hide_empty" is set. |
|
25 | + * @return null|string The field output or false if "hide_empty" is set. |
|
26 | 26 | */ |
27 | 27 | public function the_field( \GV\Field $field ) { |
28 | 28 | $renderer = new Field_Renderer(); |
@@ -63,7 +63,6 @@ |
||
63 | 63 | * Initializer. |
64 | 64 | * |
65 | 65 | * @param \GV\View $view The View connected to this template. |
66 | - * @param \GV\Entry_Collection $entries A collection of entries for this view. |
|
67 | 66 | * @param \GV\Request $request The request context. |
68 | 67 | */ |
69 | 68 | public function __construct( Entry $entry, View $view, Request $request ) { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * @param \GV\Field $field The Field. |
52 | 52 | * @param \GV\Request $request The request. |
53 | 53 | * |
54 | - * @return void |
|
54 | + * @return string|null |
|
55 | 55 | */ |
56 | 56 | public function __construct( \GV\View $view, \GV\Entry $entry = null, \GV\Field $field = null, \GV\Request $request = null ) { |
57 | 57 | add_filter( $this->filter_prefix . '_get_template_part', array( $this, 'add_id_specific_templates' ), 10, 3 ); |
@@ -151,7 +151,7 @@ |
||
151 | 151 | * Output a field cell. |
152 | 152 | * |
153 | 153 | * @param \GV\Field $field The field to be ouput. |
154 | - * @param \GV\Field $entry The entry this field is for. |
|
154 | + * @param Entry $entry The entry this field is for. |
|
155 | 155 | * |
156 | 156 | * @return void |
157 | 157 | */ |
@@ -595,6 +595,7 @@ |
||
595 | 595 | * Retrieve the entries for the current view and request. |
596 | 596 | * |
597 | 597 | * @param \GV\Request The request. Usued for now. |
598 | + * @param Request|null $request |
|
598 | 599 | * |
599 | 600 | * @return \GV\Entry_Collection The entries. |
600 | 601 | */ |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * |
317 | 317 | * @param array $widget_args The Widget shortcode args. |
318 | 318 | * @param string $content The content. |
319 | - * @param string|\GV\Template_Context $context The context, if available. |
|
319 | + * @param string $context The context, if available. |
|
320 | 320 | * |
321 | 321 | * @return void |
322 | 322 | */ |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | * @internal |
376 | 376 | * @since 2.0 |
377 | 377 | * |
378 | - * @return \GV\Widget|null The widget implementation from configuration or none. |
|
378 | + * @return Widget The widget implementation from configuration or none. |
|
379 | 379 | */ |
380 | 380 | public static function from_configuration( $configuration ) { |
381 | 381 | $registered_widgets = self::registered(); |