ICompilable
last analyzed

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2013-2016
4
 *
5
 * @category  Library
6
 * @package   Dwoo
7
 * @author    Jordi Boggiano <[email protected]>
8
 * @author    David Sanchez <[email protected]>
9
 * @copyright 2008-2013 Jordi Boggiano
10
 * @copyright 2013-2016 David Sanchez
11
 * @license   http://dwoo.org/LICENSE Modified BSD License
12
 * @version   1.3.0
13
 * @date      2016-09-23
14
 * @link      http://dwoo.org/
15
 */
16
17
namespace Dwoo;
18
19
/**
20
 * Interface that represents a compilable plugin.
21
 * implement this to notify the compiler that this plugin does not need to be loaded at runtime.
22
 * to implement it right, you must implement <em>public static function compile(Compiler $compiler, $arg, $arg,
23
 * ...)</em>, which replaces the <em>process()</em> method (that means <em>compile()</em> should have all arguments it
24
 * requires). This software is provided 'as-is', without any express or implied warranty. In no event will the authors
25
 * be held liable for any damages arising from the use of this software.
26
 */
27
interface ICompilable
28
{
29
    // this replaces the process function
30
    //public static function compile(Compiler $compiler, $arg, $arg, ...);
0 ignored issues
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
31
}
32