Code Duplication    Length = 10-10 lines in 2 locations

src/ExampleFactory.php 2 locations

@@ 80-89 (lines=10) @@
77
     *
78
     * @return string
79
     */
80
    private function readName(array $annotations)
81
    {
82
        foreach ($annotations as list($name, $args)) {
83
            if (strcasecmp($name, 'example') == 0) {
84
                return isset($args[0]) ? $args[0] : '';
85
            }
86
        }
87
88
        return '';
89
    }
90
91
    /**
92
     * Check if this example is marked as ignored
@@ 112-121 (lines=10) @@
109
     *
110
     * @return string
111
     */
112
    private function shouldExtendExample(array $annotations)
113
    {
114
        foreach ($annotations as list($name, $args)) {
115
            if (strcasecmp($name, 'extends') == 0) {
116
                return isset($args[0]) ? $args[0] : '';
117
            }
118
        }
119
120
        return '';
121
    }
122
123
    /**
124
     * Create expectation from definition data