Code Duplication    Length = 5-7 lines in 2 locations

module/Core/src/Core/Form/Container.php 2 locations

@@ 282-286 (lines=5) @@
279
     */
280
    public function getForm($key, $asInstance = true)
281
    {
282
        if (false !== strpos($key, '.')) {
283
            list($key, $childKey) = explode('.', $key, 2);
284
            $container = $this->getForm($key);
285
            return $container->getForm($childKey);
286
        }
287
        
288
        if (!isset($this->forms[$key])) {
289
            return null;
@@ 359-365 (lines=7) @@
356
     */
357
    public function executeAction($name, array $data = [])
358
    {
359
        if (false !== strpos($name, '.')) {
360
            list($name, $childKey) = explode('.', $name, 2);
361
            $container = $this->getForm($name);
362
            
363
            // execute child container's action
364
            return $container->executeAction($childKey, $data);
365
        }
366
        
367
        // this container defines no actions
368
        return [];