Completed
Push — master ( c4f381...6418ca )
by Askupa
02:05
created
Form.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * Get a component by its name.
138 138
      * 
139 139
      * @param string $name
140
-     * @return UI\AbstractComponent
140
+     * @return AbstractComponent
141 141
      */
142 142
     public function get_component( $name )
143 143
     {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * Get all components.
149 149
      * 
150
-     * @return array
150
+     * @return AbstractComponent[]
151 151
      */
152 152
     public function get_components()
153 153
     {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * Check if the given component is disabled.
183 183
      * 
184
-     * @param UI\AbstractComponent $component
184
+     * @param ValueComponentInterface $component
185 185
      * @return boolean
186 186
      */
187 187
     private function is_disabled( $component )
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Filter the component's value using its filter function (if applicable)
199 199
      * 
200
-     * @param UI\AbstractComponent $component
200
+     * @param ValueComponentInterface $component
201 201
      */
202 202
     private function filter( $component )
203 203
     {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * If the value is invalid, the old value is used, and an error message is
220 220
      * saved into the errors array as component_name => error_message.
221 221
      * 
222
-     * @param UI\AbstractComponent $component The component to validate.
222
+     * @param ValueComponentInterface $component The component to validate.
223 223
      */
224 224
     private function validate( $component )
225 225
     {
Please login to merge, or discard this patch.
AbstractComponent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     /**
90 90
      * Get the name for this component by parsing the name template.
91 91
      * 
92
-     * @return type
92
+     * @return string
93 93
      */
94 94
     public function get_name()
95 95
     {
Please login to merge, or discard this patch.
components/composite/controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * 
125 125
      * @param type $args
126
-     * @return type
126
+     * @return AbstractComponent
127 127
      */
128 128
     private function create_component( $args )
129 129
     {
Please login to merge, or discard this patch.
ComponentFactory.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 )
Please login to merge, or discard this patch.