@@ -172,7 +172,7 @@ |
||
172 | 172 | * Handler proxy function |
173 | 173 | * |
174 | 174 | * @param string $variable Name of the variable to set. |
175 | - * @param mixed $value Value of the variable to set. |
|
175 | + * @param null|string $value Value of the variable to set. |
|
176 | 176 | * |
177 | 177 | * @return mixed The value of the variable after it being set. |
178 | 178 | */ |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * Set the options |
31 | 31 | * |
32 | - * @param array $options Set the options available. |
|
32 | + * @param string[] $options Set the options available. |
|
33 | 33 | */ |
34 | 34 | protected function set_options( $options ) { |
35 | 35 | $this->options = $options; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Return the key of the current element |
57 | 57 | * |
58 | - * @return mixed|null scalar on success, null on failure. |
|
58 | + * @return integer scalar on success, null on failure. |
|
59 | 59 | */ |
60 | 60 | public function key() { |
61 | 61 | return $this->index; |
@@ -14,6 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @param string $page Page to set. |
16 | 16 | * @param array|Traversable $handler Handler to use. |
17 | + * @return void |
|
17 | 18 | */ |
18 | 19 | public static function set_hierarchy_handler( $page, $handler ); |
19 | 20 | |
@@ -22,6 +23,7 @@ discard block |
||
22 | 23 | * |
23 | 24 | * @param string $page Page to set. |
24 | 25 | * @param callable $handler Handler to use. |
26 | + * @return void |
|
25 | 27 | */ |
26 | 28 | public static function set_page_type_handler( $page, $handler ); |
27 | 29 | |
@@ -30,6 +32,7 @@ discard block |
||
30 | 32 | * |
31 | 33 | * @param string $page Page to set to. |
32 | 34 | * @param callable $handler Handler to use. |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public static function set_page_type_hooker( $page, $handler ); |
35 | 38 | |
@@ -37,6 +40,7 @@ discard block |
||
37 | 40 | * Remove handler for a page. |
38 | 41 | * |
39 | 42 | * @param string $page Page to remove from. |
43 | + * @return void |
|
40 | 44 | */ |
41 | 45 | public static function remove_page_type_handler( $page ); |
42 | 46 | |
@@ -44,6 +48,7 @@ discard block |
||
44 | 48 | * Remove page hooker from page |
45 | 49 | * |
46 | 50 | * @param string $page Page to remove from. |
51 | + * @return void |
|
47 | 52 | */ |
48 | 53 | public static function remove_page_type_hooker( $page ); |
49 | 54 |
@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | * Handler proxy functions |
26 | 26 | * |
27 | 27 | * @param Stencil_Recorder_Interface $recorder New Recorder to use. |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function set_recorder( Stencil_Recorder_Interface $recorder ); |
30 | 31 | |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | * Handler proxy functions |
44 | 45 | * |
45 | 46 | * @param string $variable Variable to Record into. |
47 | + * @return void |
|
46 | 48 | */ |
47 | 49 | public function start_recording( $variable ); |
48 | 50 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * Control loading the wp_head and wp_footer into variable |
68 | 68 | * |
69 | - * @param bool|true $yes_or_no Wheter to load them or not. |
|
69 | + * @param boolean $yes_or_no Wheter to load them or not. |
|
70 | 70 | */ |
71 | 71 | public function load_wp_header_and_footer( $yes_or_no = true ) { |
72 | 72 | if ( $this->load_wp_header_and_footer === $yes_or_no ) { |
@@ -14,6 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @param string $page Page to set. |
16 | 16 | * @param array|Traversable $handler Handler to use. |
17 | + * @return void |
|
17 | 18 | */ |
18 | 19 | public function set_hierarchy_handler( $page, $handler ); |
19 | 20 | |
@@ -22,6 +23,7 @@ discard block |
||
22 | 23 | * |
23 | 24 | * @param string $page Page to set. |
24 | 25 | * @param callable $handler Handler to use. |
26 | + * @return void |
|
25 | 27 | */ |
26 | 28 | public function set_page_type_handler( $page, $handler ); |
27 | 29 | |
@@ -30,6 +32,7 @@ discard block |
||
30 | 32 | * |
31 | 33 | * @param string $page Page to set to. |
32 | 34 | * @param callable $handler Handler to use. |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function set_page_type_hooker( $page, $handler ); |
35 | 38 | |
@@ -37,6 +40,7 @@ discard block |
||
37 | 40 | * Remove handler for a page. |
38 | 41 | * |
39 | 42 | * @param string $page Page to remove from. |
43 | + * @return void |
|
40 | 44 | */ |
41 | 45 | public function remove_page_type_handler( $page ); |
42 | 46 | |
@@ -44,6 +48,7 @@ discard block |
||
44 | 48 | * Remove page hooker from page |
45 | 49 | * |
46 | 50 | * @param string $page Page to remove from. |
51 | + * @return void |
|
47 | 52 | */ |
48 | 53 | public function remove_page_type_hooker( $page ); |
49 | 54 | } |
@@ -17,6 +17,7 @@ |
||
17 | 17 | * Uses fetch to fetch the output |
18 | 18 | * |
19 | 19 | * @param string $template Template file to show. |
20 | + * @return void |
|
20 | 21 | */ |
21 | 22 | public function display( $template ); |
22 | 23 |
@@ -113,7 +113,7 @@ |
||
113 | 113 | /** |
114 | 114 | * Get the template path |
115 | 115 | * |
116 | - * @return string|array |
|
116 | + * @return string |
|
117 | 117 | */ |
118 | 118 | public function get_template_path() { |
119 | 119 | return $this->template_path; |
@@ -11,6 +11,7 @@ |
||
11 | 11 | interface Stencil_Recorder_Interface { |
12 | 12 | /** |
13 | 13 | * Start capturing output buffer |
14 | + * @return void |
|
14 | 15 | */ |
15 | 16 | public function start_recording(); |
16 | 17 |