Code Duplication    Length = 11-11 lines in 2 locations

src/Socket/Socket.php 1 location

@@ 467-477 (lines=11) @@
464
     *
465
     * @param string[] $config
466
     */
467
    private function configure($config = [])
468
    {
469
        $this->config = $config;
470
471
        $this->configureVariable('ssl');
472
        $this->configureVariable('ssl_method');
473
        $this->configureVariable('ssl_name');
474
        $this->configureVariable('ssl_verify_sign');
475
        $this->configureVariable('ssl_verify_peer');
476
        $this->configureVariable('ssl_verify_depth');
477
    }
478
479
    /**
480
     * Configure config variable.

src/Socket/SocketListener.php 1 location

@@ 527-537 (lines=11) @@
524
     *
525
     * @param string[] $config
526
     */
527
    private function configure($config = [])
528
    {
529
        $this->config = $config;
530
531
        $this->configureVariable('ssl');
532
        $this->configureVariable('ssl_method');
533
        $this->configureVariable('ssl_name');
534
        $this->configureVariable('ssl_verify_sign');
535
        $this->configureVariable('ssl_verify_peer');
536
        $this->configureVariable('ssl_verify_depth');
537
    }
538
539
    /**
540
     * Configure static key