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

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