Code Duplication    Length = 8-8 lines in 4 locations

src/Definition/Loader/Annotation/CRUDAnnotationParser.php 4 locations

@@ 97-104 (lines=8) @@
94
        $bundleNamespace = ClassUtils::relatedBundleNamespace($refClass->getName());
95
96
        //All query
97
        if (in_array('list', $annotation->include)) {
98
            if ($annotation->list) {
99
                $query = $annotation->list;
100
            } else {
101
                $query = new Annotation\Query();
102
            }
103
            $this->createListOperation($definition, $query, $endpoint, $bundleNamespace);
104
        }
105
106
        //Add mutation
107
        if (in_array('add', $annotation->include)) {
@@ 107-114 (lines=8) @@
104
        }
105
106
        //Add mutation
107
        if (in_array('add', $annotation->include)) {
108
            if ($annotation->add) {
109
                $mutation = $annotation->add;
110
            } else {
111
                $mutation = new Annotation\Mutation();
112
            }
113
            $this->createAddOperation($definition, $mutation, $endpoint, $bundleNamespace);
114
        }
115
116
        //Update mutation
117
        if (in_array('update', $annotation->include)) {
@@ 117-124 (lines=8) @@
114
        }
115
116
        //Update mutation
117
        if (in_array('update', $annotation->include)) {
118
            if ($annotation->update) {
119
                $mutation = $annotation->update;
120
            } else {
121
                $mutation = new Annotation\Mutation();
122
            }
123
            $this->createUpdateOperation($definition, $mutation, $endpoint, $bundleNamespace);
124
        }
125
126
        //Delete mutation
127
        if (in_array('delete', $annotation->include)) {
@@ 127-134 (lines=8) @@
124
        }
125
126
        //Delete mutation
127
        if (in_array('delete', $annotation->include)) {
128
            if ($annotation->delete) {
129
                $mutation = $annotation->delete;
130
            } else {
131
                $mutation = new Annotation\Mutation();
132
            }
133
            $this->createDeleteOperation($definition, $mutation, $endpoint, $bundleNamespace);
134
        }
135
    }
136
137
    /**