Code Duplication    Length = 9-9 lines in 2 locations

src/matcher/ToContain.php 2 locations

@@ 81-89 (lines=9) @@
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function reportFailed(FailedMessage $message)
82
    {
83
        $unmatchResults = $this->matchResult->getUnmatchResults();
84
85
        $message->appendText('Expected ')
86
            ->appendText($this->type)
87
            ->appendText(' to contain ')
88
            ->appendValues($unmatchResults);
89
    }
90
91
    /**
92
     * {@inheritdoc}
@@ 94-102 (lines=9) @@
91
    /**
92
     * {@inheritdoc}
93
     */
94
    public function reportNegativeFailed(FailedMessage $message)
95
    {
96
        $matchResults = $this->matchResult->getMatchResults();
97
98
        $message->appendText('Expected ')
99
            ->appendText($this->type)
100
            ->appendText(' not to contain ')
101
            ->appendValues($matchResults);
102
    }
103
104
    private function createStrategy()
105
    {