@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | else throw new \RuntimeException("A component of type '$type' has already been registered."); |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param string $path |
|
55 | + */ |
|
53 | 56 | public static function get_url( $path ) |
54 | 57 | { |
55 | 58 | $url = str_replace( ABSPATH, '', $path ); |
@@ -58,8 +61,8 @@ discard block |
||
58 | 61 | |
59 | 62 | /** |
60 | 63 | * |
61 | - * @param type $type |
|
62 | - * @param type $props |
|
64 | + * @param string $type |
|
65 | + * @param type string |
|
63 | 66 | * @throws \RuntimeException |
64 | 67 | */ |
65 | 68 | private static function create_core_component( $type, $props ) |
@@ -85,8 +88,8 @@ discard block |
||
85 | 88 | |
86 | 89 | /** |
87 | 90 | * |
88 | - * @param type $type |
|
89 | - * @param type $props |
|
91 | + * @param string $type |
|
92 | + * @param type string |
|
90 | 93 | * @throws \RuntimeException |
91 | 94 | */ |
92 | 95 | private static function create_registered_component( $type, $props ) |