Code Duplication    Length = 8-8 lines in 2 locations

Tests/Unit/CleanCode/TraitPublicMethodTest.php 2 locations

@@ 69-76 (lines=8) @@
66
     *
67
     * @return \Mockery\MockInterface
68
     */
69
    protected function getPublicMethodNode($parentType)
70
    {
71
        $node = parent::getMethodNode('UserComparator', 'doThings');
72
        $node->shouldReceive('getParentType')->andReturn($parentType);
73
        $node->shouldReceive('isPublic')->andReturn(true);
74
75
        return $node;
76
    }
77
78
    /**
79
     * @param mixed $parentType
@@ 83-90 (lines=8) @@
80
     *
81
     * @return \Mockery\MockInterface
82
     */
83
    protected function getPrivateMethodNode($parentType)
84
    {
85
        $node = parent::getMethodNode('UserComparator', 'doThings');
86
        $node->shouldReceive('getParentType')->andReturn($parentType);
87
        $node->shouldReceive('isPublic')->andReturn(false);
88
89
        return $node;
90
    }
91
}
92