• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / bd19b056d0e3aeba531997bbd20f1153cb192a7f

21 Apr 2025 03:51PM UTC coverage: 52.286% (-2.2%) from 54.437%
bd19b056d0e3aeba531997bbd20f1153cb192a7f

Pull #22151

github

web-flow
Merge 1492b0a05 into 7346229f6
Pull Request #22151: 439 UI library stepper improvement

7803 of 13852 branches covered (56.33%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

2223 existing lines in 188 files now uncovered.

28850 of 56249 relevant lines covered (51.29%)

42373.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/integrations/blocks/block-categories.php
1
<?php
2

3
namespace Yoast\WP\SEO\Integrations\Blocks;
4

5
use Yoast\WP\SEO\Integrations\Integration_Interface;
6

7
/**
8
 * Internal_Linking_Category block class.
9
 */
10
class Internal_Linking_Category implements Integration_Interface {
11

12
        /**
13
         * {@inheritDoc}
14
         */
15
        public static function get_conditionals() {
×
16
                return [];
×
17
        }
18

19
        /**
20
         * {@inheritDoc}
21
         */
22
        public function register_hooks() {
×
23
                \add_filter( 'block_categories_all', [ $this, 'add_block_categories' ] );
×
24
        }
25

26
        /**
27
         * Adds Yoast block categories.
28
         *
29
         * @param array $categories The categories.
30
         * @return array The filtered categories.
31
         */
32
        public function add_block_categories( $categories ) {
×
33
                $categories[] = [
×
34
                        'slug'  => 'yoast-structured-data-blocks',
×
35
                        'title' => \sprintf(
×
36
                                /* translators: %1$s expands to Yoast. */
37
                                \__( '%1$s Structured Data Blocks', 'wordpress-seo' ),
×
38
                                'Yoast'
×
UNCOV
39
                        ),
×
UNCOV
40
                ];
×
41
                $categories[] = [
×
42
                        'slug'  => 'yoast-internal-linking-blocks',
×
43
                        'title' => \sprintf(
×
44
                                /* translators: %1$s expands to Yoast. */
45
                                \__( '%1$s Internal Linking Blocks', 'wordpress-seo' ),
×
46
                                'Yoast'
×
UNCOV
47
                        ),
×
UNCOV
48
                ];
×
49

50
                return $categories;
×
51
        }
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc