Completed
Pull Request — master (#116)
by Richard
02:55
created

Attribute   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 13
Bugs 2 Features 0
Metric Value
wmc 3
c 13
b 2
f 0
lcom 0
cbo 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A match() 0 4 3
1
<?php
2
/* @description     Transformation Style Sheets - Revolutionising PHP templating    *
3
 * @author          Tom Butler [email protected]                                             *
4
 * @copyright       2015 Tom Butler <[email protected]> | https://r.je/                      *
5
 * @license         http://www.opensource.org/licenses/bsd-license.php  BSD License *
6
 * @version         1.0                                                             */
7
namespace Transphporm\Pseudo;
8
use \Transphporm\Parser\Tokenizer;
9
class Attribute implements \Transphporm\Pseudo {
10
	public function match($name, $args, \DomElement $element) {
11
		if (!($name === null || in_array($name, ['data', 'iteration', 'root'])))  return true;
12
		return $args[0];
13
	}
14
}
15