Completed
Pull Request — master (#793)
by Jared
03:28 queued 29s
created
lib/timber-url-helper.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
 		return $path;
137 137
 	}
138 138
 
139
+	/**
140
+	 * @param string $fs
141
+	 */
139 142
 	public static function file_system_to_url( $fs ) {
140 143
 		$relative_path = self::get_rel_path( $fs );
141 144
 		$home = home_url( '/'.$relative_path );
@@ -210,6 +213,7 @@  discard block
 block discarded – undo
210 213
 	/**
211 214
 	 * This will evaluate wheter a URL is at an aboslute location (like http://example.org/whatever)
212 215
 	 *
216
+	 * @param string $path
213 217
 	 * @return boolean true if $path is an absolute url, false if relative.
214 218
 	 */
215 219
 	public static function is_absolute( $path ) {
@@ -230,6 +234,9 @@  discard block
 block discarded – undo
230 234
 		return $is_external;
231 235
 	}
232 236
 
237
+	/**
238
+	 * @param string $url
239
+	 */
233 240
 	private static function is_internal_content($url) {
234 241
 		// using content_url() instead of site_url or home_url is IMPORTANT
235 242
 		// otherwise you run into errors with sites that:
Please login to merge, or discard this patch.
timber.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -606,7 +606,7 @@
 block discarded – undo
606 606
 	 * Is post class or class map.
607 607
 	 *
608 608
 	 * @param string|array $args
609
-	 * @return bool
609
+	 * @return boolean|null
610 610
 	 * @deprecated since 0.20.0
611 611
 	 */
612 612
 	public static function is_post_class_or_class_map( $args ) {
Please login to merge, or discard this patch.
lib/timber-post-getter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -606,7 +606,7 @@
 block discarded – undo
606 606
 	 * Is post class or class map.
607 607
 	 *
608 608
 	 * @param string|array $args
609
-	 * @return bool
609
+	 * @return boolean|null
610 610
 	 * @deprecated since 0.20.0
611 611
 	 */
612 612
 	public static function is_post_class_or_class_map( $args ) {
Please login to merge, or discard this patch.