@@ -9,6 +9,9 @@ |
||
9 | 9 | |
10 | 10 | class Differences extends PersistentList { |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $path |
|
14 | + */ |
|
12 | 15 | private function slashit( $path ) { |
13 | 16 | $path .= ( substr( $path, -1 ) == '/' ? '' : '/' ); |
14 | 17 | return $path; |
@@ -37,6 +37,9 @@ |
||
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $root |
|
42 | + */ |
|
40 | 43 | public function scan_dir( $root, $exclude = array() ) { |
41 | 44 | $filter = function ( $file, $key, $iterator ) use ( $exclude ) { |
42 | 45 | if ( $iterator->hasChildren() && ! in_array( $file->getFilename(), $exclude ) ) { |
@@ -31,6 +31,7 @@ |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Saves the items to a file and returns the file contents |
34 | + * @param string $file_path |
|
34 | 35 | */ |
35 | 36 | public function save( $file_path, $allow_empty = true ) { |
36 | 37 |
@@ -11,6 +11,9 @@ |
||
11 | 11 | private $declarations; |
12 | 12 | private $current_relative_path; |
13 | 13 | |
14 | + /** |
|
15 | + * @param $declarations |
|
16 | + */ |
|
14 | 17 | public function __construct( $current_relative_path, $declarations ) { |
15 | 18 | $this->current_relative_path = $current_relative_path; |
16 | 19 | $this->declarations = $declarations; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | public $declaration; |
10 | 10 | public $invocation_root; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $invocation_root |
|
14 | + */ |
|
12 | 15 | function __construct( $invocation, $declaration, $invocation_root = null ) { |
13 | 16 | $this->invocation = $invocation; |
14 | 17 | $this->declaration = $declaration; |
@@ -15,6 +15,9 @@ |
||
15 | 15 | public $line; |
16 | 16 | public $func_name; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $func_name |
|
20 | + */ |
|
18 | 21 | public function __construct( $path, $line, $func_name ) { |
19 | 22 | $this->path = $path; |
20 | 23 | $this->line = $line; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | private $invocations; |
10 | 10 | private $file_path; |
11 | 11 | |
12 | + /** |
|
13 | + * @param $invocations |
|
14 | + */ |
|
12 | 15 | public function __construct( $file_path, $invocations ) { |
13 | 16 | $this->file_path = $file_path; |
14 | 17 | $this->invocations = $invocations; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * Convenience function for grabbing options from params->options |
119 | 119 | * |
120 | 120 | * @param string $option the option to grab. |
121 | - * @param mixed $default (optional). |
|
121 | + * @param boolean $default (optional). |
|
122 | 122 | * @return option or $default if not set |
123 | 123 | * |
124 | 124 | * @since 4.5.0 |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | /** |
711 | 711 | * Check the reasons to bail before we attempt to insert ads. |
712 | 712 | * |
713 | - * @return true if we should bail (don't insert ads) |
|
713 | + * @return boolean if we should bail (don't insert ads) |
|
714 | 714 | * |
715 | 715 | * @since 4.5.0 |
716 | 716 | */ |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * Returns status of WordAds approval. |
70 | 70 | * |
71 | - * @return boolean true if site is WordAds approved |
|
71 | + * @return string true if site is WordAds approved |
|
72 | 72 | * |
73 | 73 | * @since 4.5.0 |
74 | 74 | */ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Returns status of WordAds active. |
85 | 85 | * |
86 | - * @return boolean true if ads are active on site |
|
86 | + * @return string true if ads are active on site |
|
87 | 87 | * |
88 | 88 | * @since 4.5.0 |
89 | 89 | */ |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Returns status of WordAds house ads. |
100 | 100 | * |
101 | - * @return boolean true if WP.com house ads should be shown |
|
101 | + * @return string true if WP.com house ads should be shown |
|
102 | 102 | * |
103 | 103 | * @since 4.5.0 |
104 | 104 | */ |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * Returns whether or not this site is safe to run ads on. |
116 | 116 | * |
117 | - * @return boolean true if ads shown not be shown on this site. |
|
117 | + * @return string true if ads shown not be shown on this site. |
|
118 | 118 | * |
119 | 119 | * @since 6.5.0 |
120 | 120 | */ |