Code Duplication    Length = 8-10 lines in 2 locations

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php 2 locations

@@ 667-676 (lines=10) @@
664
     *
665
     * @deprecated since version 2.7, will be removed in 3.0.
666
     */
667
    public function setSynchronized($boolean, $triggerDeprecationError = true)
668
    {
669
        if ($triggerDeprecationError) {
670
            trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
671
        }
672
673
        $this->synchronized = (bool) $boolean;
674
675
        return $this;
676
    }
677
678
    /**
679
     * Whether this service is synchronized.
@@ 687-694 (lines=8) @@
684
     *
685
     * @deprecated since version 2.7, will be removed in 3.0.
686
     */
687
    public function isSynchronized($triggerDeprecationError = true)
688
    {
689
        if ($triggerDeprecationError) {
690
            trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
691
        }
692
693
        return $this->synchronized;
694
    }
695
696
    /**
697
     * Sets the lazy flag of this service.