Code Duplication    Length = 10-10 lines in 4 locations

DataCollector/LoadedCollector.php 4 locations

@@ 101-110 (lines=10) @@
98
    }
99
100
    /** @return array */
101
    public function getDefinedConstants()
102
    {
103
        static $sorted = false;
104
        if ($sorted === false) {
105
            $sorted = true;
106
            ksort($this->data['definedConstants']);
107
        }
108
109
        return $this->data['definedConstants'];
110
    }
111
112
    /** @return int */
113
    public function countDefinedConstants()
@@ 155-164 (lines=10) @@
152
    }
153
154
    /** @return array */
155
    public function getParameters()
156
    {
157
        static $sorted = false;
158
        if ($sorted === false) {
159
            $sorted = true;
160
            ksort($this->data['parameters']);
161
        }
162
163
        return $this->data['parameters'];
164
    }
165
166
    /** @return int */
167
    public function countParameters()
@@ 173-182 (lines=10) @@
170
    }
171
172
    /** @return array */
173
    public function getListeners()
174
    {
175
        static $sorted = false;
176
        if ($sorted === false) {
177
            $sorted = true;
178
            ksort($this->data['listeners']);
179
        }
180
181
        return $this->data['listeners'];
182
    }
183
184
    /** @return int */
185
    public function countListeners()
@@ 196-205 (lines=10) @@
193
    }
194
195
    /** @return array */
196
    public function getInstantiatedServices()
197
    {
198
        static $sorted = false;
199
        if ($sorted === false) {
200
            $sorted = true;
201
            ksort($this->data['instantiatedServices']);
202
        }
203
204
        return $this->data['instantiatedServices'];
205
    }
206
207
    /** @return int */
208
    public function countInstantiatedServices()