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

Yoast / wordpress-seo / 6987097851

25 Nov 2023 04:49AM UTC coverage: 49.206% (-0.1%) from 49.302%
6987097851

push

github

web-flow
Merge pull request #20878 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

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

0.0
/src/values/robots/directive.php
1
<?php
2

3
namespace Yoast\WP\SEO\Values\Robots;
4

5
/**
6
 * Class Directive
7
 */
8
class Directive {
9

10
        /**
11
         * Paths list.
12
         *
13
         * @var array All paths affected by this directive.
14
         */
15
        private $paths;
16

17
        /**
18
         * Sets up the path array
19
         */
20
        public function __construct() {
×
21
                $this->paths = [];
×
22
        }
23

24
        /**
25
         * Adds a path to the directive path list.
26
         *
27
         * @param string $path A path to add in the path list.
28
         *
29
         * @return void
30
         */
31
        public function add_path( $path ) {
×
32
                if ( ! \in_array( $path, $this->paths, true ) ) {
×
33
                        $this->paths[] = $path;
×
34
                }
35
        }
36

37
        /**
38
         * Returns all paths.
39
         *
40
         * @return array
41
         */
42
        public function get_paths() {
×
43
                return $this->paths;
×
44
        }
45
}
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