Code Duplication    Length = 3-3 lines in 2 locations

lib/Loader.php 2 locations

@@ 121-123 (lines=3) @@
118
	 */
119
	public function run() {
120
121
		foreach ( $this->filters as $hook ) {
122
			\add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
123
		}
124
125
		foreach ( $this->actions as $hook ) {
126
			\add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
@@ 125-127 (lines=3) @@
122
			\add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
123
		}
124
125
		foreach ( $this->actions as $hook ) {
126
			\add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
127
		}
128
129
	}
130