Code Duplication    Length = 8-8 lines in 2 locations

src/model/serializer/GroupSerializer.php 2 locations

@@ 82-89 (lines=8) @@
79
		$this->addUsers($model, $data);
80
	}
81
	
82
	public function addUsers($model, $data) {
83
		foreach ($data as $item) {
84
			$group = UserQuery::create()->findOneById($item['id']);
85
			if ($group !== null) {
86
				$model->addUser($group);
87
			}
88
		}
89
	}
90
	
91
	public function removeUsers($model, $data) {
92
		foreach ($data as $item) {
@@ 91-98 (lines=8) @@
88
		}
89
	}
90
	
91
	public function removeUsers($model, $data) {
92
		foreach ($data as $item) {
93
			$group = UserQuery::create()->findOneById($item['id']);
94
			if ($group !== null) {
95
				$model->removeUser($group);
96
			}
97
		}
98
	}
99
	
100
	public function setOwner($model, $data) {
101
		$model->setOwnerId($data['id']);