Completed
Push — add/lazy-images ( 1aef1c...4b007f )
by
unknown
08:11
created

Jetpack_PWA::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Module Name: Progressive Web Apps
4
 * Module Description: Speed up and improve the reliability of your site using the latest in web technology.
5
 * Sort Order: 38
6
 * Recommendation Order: 18
7
 * First Introduced: 5.6.0
8
 * Requires Connection: Yes
9
 * Auto Activate: No
10
 * Module Tags: Developers
11
 * Feature: Traffic
12
 * Additional Search Queries: manifest, pwa, progressive
13
 */
14
15
require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-helpers.php' );
16
require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-manifest.php' );
17
18
class Jetpack_PWA {
19
	/**
20
	 * @var Jetpack_PWA
21
	 */
22
	private static $__instance = null;
23
24
	/**
25
	 * Singleton implementation
26
	 *
27
	 * @return Jetpack_PWA
28
	 */
29
	public static function instance() {
30
		if ( is_null( self::$__instance ) ) {
31
			self::$__instance = new Jetpack_PWA;
32
		}
33
34
		return self::$__instance;
35
	}
36
37
	private function __construct() {
38
		Jetpack_PWA_Manifest::instance();
39
	}
40
}
41
42
Jetpack_PWA::instance();
43