Code Duplication    Length = 8-8 lines in 2 locations

lib/RouteDefinition.php 2 locations

@@ 111-118 (lines=8) @@
108
	 */
109
	static public function assert_is_valid(array $definition)
110
	{
111
		if (empty($definition[self::PATTERN]))
112
		{
113
			throw new PatternNotDefined(format("Pattern is not defined: !route", [
114
115
				'route' => $definition
116
117
			]));
118
		}
119
120
		if (empty($definition[self::CONTROLLER]) && empty($definition[self::LOCATION]))
121
		{
@@ 120-127 (lines=8) @@
117
			]));
118
		}
119
120
		if (empty($definition[self::CONTROLLER]) && empty($definition[self::LOCATION]))
121
		{
122
			throw new ControllerNotDefined(format("Controller is not defined: !route", [
123
124
				'route' => $definition
125
126
			]));
127
		}
128
	}
129
130
	/**