@@ -729,6 +729,7 @@ |
||
729 | 729 | * |
730 | 730 | * @param string $branch - Branch that's ready for update. |
731 | 731 | * @param string $section - What kind of branch we're updated (master, rc, pr). |
732 | + * @return string |
|
732 | 733 | */ |
733 | 734 | public static function update_action_url( $branch, $section ) { |
734 | 735 | $query = array( |
@@ -168,7 +168,7 @@ |
||
168 | 168 | /** |
169 | 169 | * Checks to see whether or not the root package is the one that required the autoloader. |
170 | 170 | * |
171 | - * @return bool |
|
171 | + * @return null|boolean |
|
172 | 172 | */ |
173 | 173 | private function isRequiredByRoot() { |
174 | 174 | $package = $this->composer->getPackage(); |
@@ -136,6 +136,10 @@ discard block |
||
136 | 136 | ); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $service_name |
|
141 | + * @param string $for |
|
142 | + */ |
|
139 | 143 | static function refresh_url( $service_name, $for ) { |
140 | 144 | return add_query_arg( |
141 | 145 | array( |
@@ -150,6 +154,10 @@ discard block |
||
150 | 154 | ); |
151 | 155 | } |
152 | 156 | |
157 | + /** |
|
158 | + * @param string $service_name |
|
159 | + * @param string $id |
|
160 | + */ |
|
153 | 161 | static function disconnect_url( $service_name, $id ) { |
154 | 162 | return add_query_arg( |
155 | 163 | array( |
@@ -281,7 +281,7 @@ |
||
281 | 281 | * @param string $password the password. |
282 | 282 | * @param array $test_data the current test data. |
283 | 283 | * |
284 | - * @return bool does the test pass? |
|
284 | + * @return integer does the test pass? |
|
285 | 285 | */ |
286 | 286 | protected function test_preg_match( $password, $test_data ) { |
287 | 287 | return preg_match( $test_data['pattern'], $password ); |
@@ -165,7 +165,7 @@ |
||
165 | 165 | /** |
166 | 166 | * Set the timestamp. |
167 | 167 | * |
168 | - * @param DateTime|string $timestamp Timestamp to set. |
|
168 | + * @param string $timestamp Timestamp to set. |
|
169 | 169 | * @returns $this |
170 | 170 | * @throws InvalidArgumentException If an argument is invalid. |
171 | 171 | */ |
@@ -89,6 +89,7 @@ |
||
89 | 89 | * |
90 | 90 | * @param string $haystack String to split. |
91 | 91 | * @param string[] ...$needles Strings to split on. Earliest match in $haystack wins. |
92 | + * @param string $needles |
|
92 | 93 | * @return string[] Two elements: The part before $needles and the part after, both trimmed. |
93 | 94 | */ |
94 | 95 | private function split( $haystack, ...$needles ) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Initializer. |
52 | 52 | * |
53 | - * @return object |
|
53 | + * @return Identity_Crisis |
|
54 | 54 | */ |
55 | 55 | public static function init() { |
56 | 56 | if ( is_null( self::$instance ) ) { |
@@ -43,6 +43,7 @@ |
||
43 | 43 | * @param String $action The action name. |
44 | 44 | * @param Integer|bool $user_id The user identifier. Defaults to `false`. |
45 | 45 | * @param Integer $exp Expiration time in seconds. |
46 | + * @return string|boolean |
|
46 | 47 | */ |
47 | 48 | public function generate( $action, $user_id = false, $exp = 600 ) { |
48 | 49 | if ( false === $user_id ) { |
@@ -138,7 +138,7 @@ |
||
138 | 138 | * Extract the index and count from a prerelease string. |
139 | 139 | * |
140 | 140 | * @param string|null $s String. |
141 | - * @return array Two elements: index and count. |
|
141 | + * @return integer[] Two elements: index and count. |
|
142 | 142 | * @throws InvalidArgumentException If the string is invalid. |
143 | 143 | */ |
144 | 144 | private function parsePrerelease( $s ) { |