Code Duplication    Length = 9-9 lines in 2 locations

src/Routing/RouteGroup.php 2 locations

@@ 106-114 (lines=9) @@
103
	/**
104
	 * {@inheritDoc}
105
	 */
106
	public function route( $methods, $condition, $handler ) {
107
		if ( ! $condition instanceof ConditionInterface ) {
108
			$condition = RouteCondition::make( $condition );
109
		}
110
111
		$condition = $this->mergeConditions( $this->condition, $condition );
112
113
		return $this->traitRoute( $methods, $condition, $handler );
114
	}
115
116
	/**
117
	 * {@inheritDoc}
@@ 119-127 (lines=9) @@
116
	/**
117
	 * {@inheritDoc}
118
	 */
119
	public function group( $condition, Closure $closure ) {
120
		if ( ! $condition instanceof ConditionInterface ) {
121
			$condition = RouteCondition::make( $condition );
122
		}
123
124
		$condition = $this->mergeConditions( $this->condition, $condition );
125
126
		return $this->traitGroup( $condition, $closure );
127
	}
128
129
	/**
130
	 * {@inheritDoc}