Completed
Push — master ( 353fd1...eae0f6 )
by Benjamin
14:14
created
src/class-hook-loader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 * @since    1.0.0
93 93
 	 */
94 94
 	private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
95
-		$hooks[] = array(
95
+		$hooks[ ] = array(
96 96
 			'hook'          => $hook,
97 97
 			'component'     => $component,
98 98
 			'callback'      => $callback,
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
 	 */
111 111
 	public function run() {
112 112
 		foreach ( $this->filters as $hook ) {
113
-			add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
113
+			add_filter( $hook[ 'hook' ], array( $hook[ 'component' ], $hook[ 'callback' ] ), $hook[ 'priority' ], $hook[ 'accepted_args' ] );
114 114
 		}
115 115
 
116 116
 		foreach ( $this->actions as $hook ) {
117
-			add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
117
+			add_action( $hook[ 'hook' ], array( $hook[ 'component' ], $hook[ 'callback' ] ), $hook[ 'priority' ], $hook[ 'accepted_args' ] );
118 118
 		}
119 119
 	}
120 120
 }
Please login to merge, or discard this patch.