Passed
Push — v1 ( 514194...e06840 )
by Andrew
06:20
created

Twig_Node_Expression_EmptyCoalesce::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 10
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 13
rs 9.9332
1
<?php
2
/**
3
 * Empty Coalesce plugin for Craft CMS 3.x
4
 *
5
 * Empty Coalesce adds the ??? operator to Twig that will return the first thing
6
 * that is defined, not null, and not empty.
7
 *
8
 * @link      https://nystudio107.com/
9
 * @copyright Copyright (c) 2018 nystudio107
10
 */
11
12
use nystudio107\emptycoalesce\Node\Expression\EmptyCoalesceExpression;
13
14
/**
15
 * @author    nystudio107
16
 * @package   EmptyCoalesce
17
 * @since     1.0.0
18
 */
19
20
@trigger_error(sprintf('Using the "Twig_Node_Expression_EmptyCoalesce" class is deprecated since Twig version 2.7, use "nystudio107\emptycoalesce\Node\Expression\EmptyCoalesceExpression" instead.'), E_USER_DEPRECATED);
21
22
class_exists('nystudio107\emptycoalesce\Node\Expression\EmptyCoalesceExpression');
23
24
if (\false) {
25
    class Twig_Node_Expression_EmptyCoalesce extends EmptyCoalesceExpression
26
    {
27
    }
28
}
29