Code Duplication    Length = 14-14 lines in 2 locations

src/Chamilo/PageBundle/Entity/User.php 1 location

@@ 2340-2353 (lines=14) @@
2337
     *
2338
     * @return string
2339
     */
2340
    public function serialize()
2341
    {
2342
        return serialize(array(
2343
            $this->password,
2344
            $this->salt,
2345
            $this->usernameCanonical,
2346
            $this->username,
2347
            $this->expired,
2348
            $this->locked,
2349
            $this->credentialsExpired,
2350
            $this->enabled,
2351
            $this->id,
2352
        ));
2353
    }
2354
2355
    /**
2356
     * Unserializes the user.

src/Chamilo/UserBundle/Entity/User.php 1 location

@@ 2414-2427 (lines=14) @@
2411
     *
2412
     * @return string
2413
     */
2414
    public function serialize()
2415
    {
2416
        return serialize(array(
2417
            $this->password,
2418
            $this->salt,
2419
            $this->usernameCanonical,
2420
            $this->username,
2421
            $this->expired,
2422
            $this->locked,
2423
            $this->credentialsExpired,
2424
            $this->enabled,
2425
            $this->id,
2426
        ));
2427
    }
2428
2429
    /**
2430
     * Unserializes the user.