Completed
Push — master ( d21dd2...a23d9a )
by Beñat
8s
created

Assets::productionAssets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the WordPress Standard project.
5
 *
6
 * Copyright (c) 2015-2016 LIN3S <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace AppTheme\Configuration;
13
14
use LIN3S\WPFoundation\Configuration\Assets\Assets as BaseAssets;
15
16
/**
17
 * Final Assets class, it enqueue in a simple way all the scripts and stylesheets.
18
 *
19
 * @author Gorka Laucirica <[email protected]>
20
 * @author Beñat Espiña <[email protected]>
21
 */
22
final class Assets extends BaseAssets
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function developmentAssets()
28
    {
29
        $this
30
            ->addScript('fastclick', self::NPM . '/fastclick/lib')
31
            ->addScript('svg4everybody.min', self::NPM . '/svg4everybody/dist')
32
            ->addScript('modernizr', self::BUILD_JS, [], '3.0.0', false)
33
34
            ->addStylesheet('app', self::CSS)
35
            ->addScript('svg')
36
            ->addScript('cookies')
37
            ->addScript('app');
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function productionAssets()
44
    {
45
        $this
46
            ->addStylesheet('app.min', self::CSS)
47
            ->addScript('app.min', self::BUILD_JS)
48
            ->addScript('modernizr', self::BUILD_JS, [], '3.0.0', false);
49
    }
50
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
51