Code Duplication    Length = 14-17 lines in 2 locations

src/DataGrid.php 2 locations

@@ 1303-1319 (lines=17) @@
1300
	 * @param  int $parent
1301
	 * @return void
1302
	 */
1303
	public function handleGetChildren($parent)
1304
	{
1305
		$this->setDataSource(
1306
			call_user_func($this->tree_view_children_callback, $parent)
1307
		);
1308
1309
		if ($this->getPresenter()->isAjax()) {
1310
			$this->getPresenter()->payload->_datagrid_url = $this->refresh_url;
1311
			$this->getPresenter()->payload->_datagrid_tree = $parent;
1312
1313
			$this->redrawControl('items');
1314
1315
			$this->onRedraw();
1316
		} else {
1317
			$this->getPresenter()->redirect('this');
1318
		}
1319
	}
1320
1321
1322
	/**
@@ 1327-1340 (lines=14) @@
1324
	 * @param  mixed $id
1325
	 * @return void
1326
	 */
1327
	public function handleGetItemDetail($id)
1328
	{
1329
		$this->template->toggle_detail = $id;
1330
		$this->redraw_item = [$this->items_detail->getPrimaryWhereColumn() => $id];
1331
1332
		if ($this->getPresenter()->isAjax()) {
1333
			$this->getPresenter()->payload->_datagrid_toggle_detail = $id;
1334
			$this->redrawControl('items');
1335
1336
			$this->onRedraw();
1337
		} else {
1338
			$this->getPresenter()->redirect('this');
1339
		}
1340
	}
1341
1342
1343
	/**