Code Duplication    Length = 11-11 lines in 2 locations

mod/missions/api/v0/api.php 2 locations

@@ 188-198 (lines=11) @@
185
					$data->annotations[$v->name] = $v->value;
186
				}
187
			}
188
			if ($relationships) {
189
				foreach ($relationships as $v) {
190
					$data->relationships[] = array(
191
						'direction' => 'OUT',
192
						'time_created' => $v->time_created,
193
						'id' => $v->id,
194
						'entity' => exportEntity($v->guid_two),
195
						'relationship' => $v->relationship,
196
					);
197
				}
198
			}
199
			if ($relationships2) {
200
				foreach ($relationships2 as $v) {
201
					$data->relationships[] = array(
@@ 199-209 (lines=11) @@
196
					);
197
				}
198
			}
199
			if ($relationships2) {
200
				foreach ($relationships2 as $v) {
201
					$data->relationships[] = array(
202
						'direction' => 'IN',
203
						'time_created' => $v->time_created,
204
						'id' => $v->id,
205
						'entity' => exportEntity($v->guid_one),
206
						'relationship' => $v->relationship,
207
					);
208
				}
209
			}
210
			yield [ 'object' => $object, 'export' => $data ];
211
		}
212
	}