Code Duplication    Length = 7-8 lines in 2 locations

Credentials.php 1 location

@@ 84-90 (lines=7) @@
81
    /**
82
     * {@inheritDoc}
83
     */
84
    public function unserialize($data)
85
    {
86
        $data = unserialize($data);
87
88
        $this->id     = $data['id'];
89
        $this->secret = $data['secret'];
90
    }
91
92
    /**
93
     * {@inheritDoc}

id/credentials/Client.php 1 location

@@ 66-73 (lines=8) @@
63
    /**
64
     * {@inheritDoc}
65
     */
66
    public function unserialize($data)
67
    {
68
        $data = unserialize($data);
69
70
        $this->id          = $data['id'];
71
        $this->secret      = $data['secret'];
72
        $this->redirectUri = $data['redirectUri'];
73
    }
74
75
    /**
76
     * {@inheritDoc}