Code Duplication    Length = 21-21 lines in 2 locations

system/libraries/Profiler.php 2 locations

@@ 227-247 (lines=21) @@
224
     *
225
     * @return  void
226
     */
227
    public function post()
228
    {
229
        if (empty($_POST)) {
230
            return;
231
        }
232
233
        if (! $table = $this->table('post')) {
234
            return;
235
        }
236
237
        $table->add_column('kp-name');
238
        $table->add_column();
239
        $table->add_row(array('POST', 'Value'), 'kp-title', 'background-color: #E0E0FF');
240
241
        text::alternate();
242
        foreach ($_POST as $name => $value) {
243
            $data = array($name, $value);
244
            $class = text::alternate('', 'kp-altrow');
245
            $table->add_row($data, $class);
246
        }
247
    }
248
249
    /**
250
     * Cookie data.
@@ 254-274 (lines=21) @@
251
     *
252
     * @return  void
253
     */
254
    public function cookies()
255
    {
256
        if (empty($_COOKIE)) {
257
            return;
258
        }
259
260
        if (! $table = $this->table('cookies')) {
261
            return;
262
        }
263
264
        $table->add_column('kp-name');
265
        $table->add_column();
266
        $table->add_row(array('Cookies', 'Value'), 'kp-title', 'background-color: #FFF4D7');
267
268
        text::alternate();
269
        foreach ($_COOKIE as $name => $value) {
270
            $data = array($name, $value);
271
            $class = text::alternate('', 'kp-altrow');
272
            $table->add_row($data, $class);
273
        }
274
    }
275
}
276