@@ -26,8 +26,6 @@ class FormFieldRegistry
26
26
* Adds a field to the registry.
27
27
*
28
28
* @param FormField $field The field
29
- *
30
- * @throws \InvalidArgumentException when the name is malformed
31
29
*/
32
30
public function add (FormField $ field )
33
31
{
@@ -52,8 +50,6 @@ public function add(FormField $field)
52
50
* Removes a field and its children from the registry.
53
51
*
54
52
* @param string $name The fully qualified name of the base field
55
- *
56
- * @throws \InvalidArgumentException when the name is malformed
57
53
*/
58
54
public function remove ($ name )
59
55
{
@@ -76,7 +72,6 @@ public function remove($name)
76
72
*
77
73
* @return mixed The value of the field
78
74
*
79
- * @throws \InvalidArgumentException when the name is malformed
80
75
* @throws \InvalidArgumentException if the field does not exist
81
76
*/
82
77
public function &get ($ name )
@@ -118,7 +113,6 @@ public function has($name)
118
113
* @param string $name The fully qualified name of the field
119
114
* @param mixed $value The value
120
115
*
121
- * @throws \InvalidArgumentException when the name is malformed
122
116
* @throws \InvalidArgumentException if the field does not exist
123
117
*/
124
118
public function set ($ name , $ value )
@@ -199,8 +193,6 @@ private function walk(array $array, $base = '', array &$output = array())
199
193
* @param string $name The name of the field
200
194
*
201
195
* @return string[] The list of segments
202
- *
203
- * @throws \InvalidArgumentException when the name is malformed
204
196
*/
205
197
private function getSegments ($ name )
206
198
{
@@ -218,6 +210,6 @@ private function getSegments($name)
218
210
return $ segments ;
219
211
}
220
212
221
- return [ $ name] ;
213
+ return array ( $ name) ;
222
214
}
223
215
}
0 commit comments