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

SemanticWatchlist::checkRequirements()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 5
nc 3
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