Code Duplication    Length = 8-8 lines in 6 locations

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

@@ 97-104 (lines=8) @@
94
        $bundleNamespace = ClassUtils::relatedBundleNamespace($refClass->getName());
95
96
        //All query
97
        if (in_array('all', $annotation->include)) {
98
            if ($annotation->all) {
99
                $query = $annotation->all;
100
            } else {
101
                $query = new Annotation\Query();
102
            }
103
            $this->createAllOperation($definition, $query, $endpoint, $bundleNamespace);
104
        }
105
106
        //Get query
107
        if (in_array('get', $annotation->include)) {
@@ 107-114 (lines=8) @@
104
        }
105
106
        //Get query
107
        if (in_array('get', $annotation->include)) {
108
            if ($annotation->get) {
109
                $query = $annotation->get;
110
            } else {
111
                $query = new Annotation\Query();
112
            }
113
            $this->createGetOperation($definition, $query, $endpoint, $bundleNamespace);
114
        }
115
116
        //Gets query
117
        if (in_array('gets', $annotation->include)) {
@@ 117-124 (lines=8) @@
114
        }
115
116
        //Gets query
117
        if (in_array('gets', $annotation->include)) {
118
            if ($annotation->gets) {
119
                $query = $annotation->gets;
120
            } else {
121
                $query = new Annotation\Query();
122
            }
123
            $this->createGetsOperation($definition, $query, $endpoint, $bundleNamespace);
124
        }
125
126
        //Add mutation
127
        if (in_array('add', $annotation->include)) {
@@ 127-134 (lines=8) @@
124
        }
125
126
        //Add mutation
127
        if (in_array('add', $annotation->include)) {
128
            if ($annotation->add) {
129
                $mutation = $annotation->add;
130
            } else {
131
                $mutation = new Annotation\Mutation();
132
            }
133
            $this->createAddOperation($definition, $mutation, $endpoint, $bundleNamespace);
134
        }
135
136
        //Update mutation
137
        if (in_array('update', $annotation->include)) {
@@ 137-144 (lines=8) @@
134
        }
135
136
        //Update mutation
137
        if (in_array('update', $annotation->include)) {
138
            if ($annotation->update) {
139
                $mutation = $annotation->update;
140
            } else {
141
                $mutation = new Annotation\Mutation();
142
            }
143
            $this->createUpdateOperation($definition, $mutation, $endpoint, $bundleNamespace);
144
        }
145
146
        //Delete mutation
147
        if (in_array('delete', $annotation->include)) {
@@ 147-154 (lines=8) @@
144
        }
145
146
        //Delete mutation
147
        if (in_array('delete', $annotation->include)) {
148
            if ($annotation->delete) {
149
                $mutation = $annotation->delete;
150
            } else {
151
                $mutation = new Annotation\Mutation();
152
            }
153
            $this->createDeleteOperation($definition, $mutation, $endpoint, $bundleNamespace);
154
        }
155
    }
156
157
    /**