Code Duplication    Length = 8-8 lines in 2 locations

src/Knot/Dict/Helpers/PHPArrayChangerHelper.php 1 location

@@ 34-41 (lines=8) @@
31
	}
32
33
34
	public function addRoutes(HelperManager $helperManager)
35
	{
36
		foreach ($this->functions as $functionName)
37
		{
38
			$route = $this->convertPHPFunctionToRoute($functionName);
39
			$helperManager->addRoute($route, [ __CLASS__, "execute" ]);
40
		}
41
	}
42
43
44
	public static function execute(AbstractDictBody $knot, $arguments, $methodName)

src/Knot/Dict/Helpers/PHPArrayEqualizerHelper.php 1 location

@@ 56-63 (lines=8) @@
53
	}
54
55
56
	public function addRoutes(HelperManager $helperManager)
57
	{
58
		foreach ($this->functions as $functionName)
59
		{
60
			$route = $this->convertPHPFunctionToRoute($functionName);
61
			$helperManager->addRoute($route, [ __CLASS__, "execute" ]);
62
		}
63
	}
64
65
66
	public static function execute(AbstractDictBody $knot, $arguments, $methodName)