Code Duplication    Length = 9-9 lines in 2 locations

User/InMemoryUserRepository.php 2 locations

@@ 110-118 (lines=9) @@
107
    /**
108
     * {@inheritdoc}
109
     */
110
    public function update(UserInterface $user)
111
    {
112
        foreach ($this->users as $key => $row) {
113
            if ($row->getId() === $user->getId()) {
114
                $this->users[$key] = $user;
115
                break;
116
            }
117
        }
118
    }
119
120
    /**
121
     * {@inheritdoc}
@@ 123-131 (lines=9) @@
120
    /**
121
     * {@inheritdoc}
122
     */
123
    public function delete(UserInterface $user)
124
    {
125
        foreach ($this->users as $key => $row) {
126
            if ($row->getUserName() === $user->getUserName()) {
127
                unset($this->users[$key]);
128
                break;
129
            }
130
        }
131
    }
132
}
133