| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public static function register($aName, $aConnector) |
||
| 28 | { |
||
| 29 | if (method_exists(static::class, 'definition')) { |
||
| 30 | $definition = static::definition($aName); |
||
|
|
|||
| 31 | $definition['location'] = $aConnector; |
||
| 32 | acf_add_local_field_group($definition); |
||
| 33 | } else { |
||
| 34 | //@deprecated Will be removed in 2.0, and this class will implement FieldComponentInterface |
||
| 35 | return new static($aName, $aConnector); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.