Completed
Push — master ( a5b09f...24d151 )
by Jeroen De
04:21 queued 03:05
created

SemanticWatchlist::load()   B

Complexity

Conditions 2
Paths 2

Size

Total Lines 25
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 8.8571
c 0
b 0
f 0
cc 2
eloc 7
nc 2
nop 0
1
<?php
2
3
/**
4
 * @see https://github.com/SemanticMediaWiki/SemanticWatchlist/
5
 *
6
 * @defgroup SWL Semantic Watchlist
7
 */
8
if ( !defined( 'MEDIAWIKI' ) ) {
9
	die( 'This file is part of the SemanticWatchlist extension, it is not a valid entry point.' );
10
}
11
12
if ( defined( 'SWL_VERSION' ) ) {
13
	// Do not initialize more than once.
14
	return 1;
15
}
16
17
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
18
	include_once __DIR__ . '/vendor/autoload.php';
19
}
20
21
SWL\SemanticWatchlist::load();
22