| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function __construct( $item_limit, $byte_limit, $time = '1970-01-01 00:00:00' ) { |
||
| 20 | parent::__construct( $item_limit, $byte_limit, $time ); |
||
| 21 | |||
| 22 | $this->doc->appendChild( |
||
| 23 | $this->doc->createComment( "generator='jetpack-" . JETPACK__VERSION . "'" ) |
||
| 24 | ); |
||
| 25 | |||
| 26 | $this->doc->appendChild( |
||
| 27 | $this->doc->createProcessingInstruction( |
||
| 28 | 'xml-stylesheet', |
||
| 29 | 'type="text/xsl" href="' . $this->finder->construct_sitemap_url( 'sitemap-index.xsl' ) . '"' |
||
| 30 | ) |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 45 |
This check looks for classes that have been defined more than once.
If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.
This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.