@@ -281,15 +281,30 @@ public function test_filter_by_meta_multiple_keys_uses_and_logic(): void {
281281
282282 $ this ->register_test_ability (
283283 'test/ability-both ' ,
284- array ( 'meta ' => array ( 'show_in_rest ' => true , 'public ' => true ) )
284+ array (
285+ 'meta ' => array (
286+ 'show_in_rest ' => true ,
287+ 'public ' => true ,
288+ ),
289+ )
285290 );
286291 $ this ->register_test_ability (
287292 'test/ability-one-key ' ,
288- array ( 'meta ' => array ( 'show_in_rest ' => true , 'public ' => false ) )
293+ array (
294+ 'meta ' => array (
295+ 'show_in_rest ' => true ,
296+ 'public ' => false ,
297+ ),
298+ )
289299 );
290300
291301 $ result = wp_get_abilities (
292- array ( 'meta ' => array ( 'show_in_rest ' => true , 'public ' => true ) )
302+ array (
303+ 'meta ' => array (
304+ 'show_in_rest ' => true ,
305+ 'public ' => true ,
306+ ),
307+ )
293308 );
294309 $ names = array_map (
295310 static function ( WP_Ability $ a ) {
@@ -483,7 +498,10 @@ public function test_wp_get_abilities_match_filter_receives_ability_and_args():
483498 bool $ include ,
484499 WP_Ability $ ability ,
485500 array $ args
486- ) use ( &$ received_ability , &$ received_args ): bool {
501+ ) use (
502+ &$ received_ability ,
503+ &$ received_args
504+ ): bool {
487505 $ received_ability = $ ability ;
488506 $ received_args = $ args ;
489507 return $ include ;
@@ -622,15 +640,24 @@ public function test_combined_category_and_meta_filters(): void {
622640
623641 $ this ->register_test_ability (
624642 'test/math-rest ' ,
625- array ( 'category ' => 'math ' , 'meta ' => array ( 'show_in_rest ' => true ) )
643+ array (
644+ 'category ' => 'math ' ,
645+ 'meta ' => array ( 'show_in_rest ' => true ),
646+ )
626647 );
627648 $ this ->register_test_ability (
628649 'test/math-no-rest ' ,
629- array ( 'category ' => 'math ' , 'meta ' => array ( 'show_in_rest ' => false ) )
650+ array (
651+ 'category ' => 'math ' ,
652+ 'meta ' => array ( 'show_in_rest ' => false ),
653+ )
630654 );
631655 $ this ->register_test_ability (
632656 'test/text-rest ' ,
633- array ( 'category ' => 'text ' , 'meta ' => array ( 'show_in_rest ' => true ) )
657+ array (
658+ 'category ' => 'text ' ,
659+ 'meta ' => array ( 'show_in_rest ' => true ),
660+ )
634661 );
635662
636663 $ result = wp_get_abilities (
0 commit comments