Code Duplication    Length = 9-9 lines in 2 locations

src/DataGrid.php 2 locations

@@ 1470-1478 (lines=9) @@
1467
	{
1468
		foreach ($container->getComponents() as $name => $control) {
1469
			if ($control instanceof Nette\Forms\IControl) {
1470
				if (array_key_exists($name, $values)) {
1471
					try {
1472
						$control->setValue($values[$name]);
1473
					} catch (Nette\InvalidArgumentException $e) {
1474
						if ($this->strict_session_filter_values) {
1475
							throw $e;
1476
						}
1477
					}
1478
				}
1479
1480
			} elseif ($control instanceof Nette\Forms\Container) {
1481
				if (array_key_exists($name, $values)) {
@@ 1481-1489 (lines=9) @@
1478
				}
1479
1480
			} elseif ($control instanceof Nette\Forms\Container) {
1481
				if (array_key_exists($name, $values)) {
1482
					try {
1483
						$control->setValues($values[$name]);
1484
					} catch (Nette\InvalidArgumentException $e) {
1485
						if ($this->strict_session_filter_values) {
1486
							throw $e;
1487
						}
1488
					}
1489
				}
1490
			}
1491
		}
1492
	}