Completed
Push — master ( c9bd8d...4ed61c )
by Tom
03:17
created
src/TSSFunction/Template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 	public function run(array $args, \DomElement $element) {
23 23
 		$selector = $this->readArray($args, 1);
24 24
 		$tss = $this->readArray($args, 2);
25
-		$newTemplate = new \Transphporm\Builder($this->baseDir . $args[0], $tss ? $this->baseDir . $tss : null);
25
+		$newTemplate = new \Transphporm\Builder($this->baseDir.$args[0], $tss ? $this->baseDir.$tss : null);
26 26
 
27 27
 		$doc = $newTemplate->output($this->elementData->getData($element), true)->body;
28 28
 		if ($selector != '') return $this->templateSubsection($doc, $selector);
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,9 @@  discard block
 block discarded – undo
30 30
 		$newTemplate = new \Transphporm\Builder($this->baseDir . $args[0], $tss ? $this->baseDir . $tss : null);
31 31
 
32 32
 		$doc = $newTemplate->output($this->elementData->getData($element), true)->body;
33
-		if ($selector != '') return $this->templateSubsection($doc, $selector);
33
+		if ($selector != '') {
34
+			return $this->templateSubsection($doc, $selector);
35
+		}
34 36
 
35 37
 		return $this->getTemplateContent($doc, $tss);
36 38
 
@@ -60,7 +62,9 @@  discard block
 block discarded – undo
60 62
 
61 63
 	private function getClonedElement($node, $tss) {
62 64
 		$clone = $node->cloneNode(true);
63
-		if ($tss != null && $clone instanceof \DomElement) $clone->setAttribute('transphporm', 'includedtemplate');
65
+		if ($tss != null && $clone instanceof \DomElement) {
66
+			$clone->setAttribute('transphporm', 'includedtemplate');
67
+		}
64 68
 		return $clone;
65 69
 	}
66 70
 }
Please login to merge, or discard this patch.
src/TSSFunction/Json.php 3 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Transphporm\TSSFunction;
3 3
 class Json implements \Transphporm\TSSFunction {
4
-        private $baseDir;
4
+		private $baseDir;
5 5
         
6
-        public function __construct(&$baseDir) {
7
-                $this->baseDir = &$baseDir;
8
-        }
6
+		public function __construct(&$baseDir) {
7
+				$this->baseDir = &$baseDir;
8
+		}
9 9
         
10
-        public function run(array $args, \DomElement $element = null) {
11
-                $json = $args[0];
10
+		public function run(array $args, \DomElement $element = null) {
11
+				$json = $args[0];
12 12
                 
13
-                if (trim($json)[0] != '{') {
14
-                        $path = $this->baseDir . $json;
15
-                        if (!file_exists($path)) throw new \Exception('File does not exist at: ' . $path);
13
+				if (trim($json)[0] != '{') {
14
+						$path = $this->baseDir . $json;
15
+						if (!file_exists($path)) throw new \Exception('File does not exist at: ' . $path);
16 16
 			$json = file_get_contents($json);
17 17
 		}
18 18
 
19 19
 		$map = json_decode($json, true);
20 20
                 
21
-                if (!is_array($map)) throw new \Exception('Could not decode json: ' . json_last_error_msg());
21
+				if (!is_array($map)) throw new \Exception('Could not decode json: ' . json_last_error_msg());
22 22
                 
23
-                return $map;
24
-        }
23
+				return $map;
24
+		}
25 25
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
                 $json = $args[0];
12 12
                 
13 13
                 if (trim($json)[0] != '{') {
14
-                        $path = $this->baseDir . $json;
15
-                        if (!file_exists($path)) throw new \Exception('File does not exist at: ' . $path);
14
+                        $path = $this->baseDir.$json;
15
+                        if (!file_exists($path)) throw new \Exception('File does not exist at: '.$path);
16 16
 			$json = file_get_contents($json);
17 17
 		}
18 18
 
19 19
 		$map = json_decode($json, true);
20 20
                 
21
-                if (!is_array($map)) throw new \Exception('Could not decode json: ' . json_last_error_msg());
21
+                if (!is_array($map)) throw new \Exception('Could not decode json: '.json_last_error_msg());
22 22
                 
23 23
                 return $map;
24 24
         }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,17 @@
 block discarded – undo
12 12
                 
13 13
                 if (trim($json)[0] != '{') {
14 14
                         $path = $this->baseDir . $json;
15
-                        if (!file_exists($path)) throw new \Exception('File does not exist at: ' . $path);
15
+                        if (!file_exists($path)) {
16
+                        	throw new \Exception('File does not exist at: ' . $path);
17
+                        }
16 18
 			$json = file_get_contents($json);
17 19
 		}
18 20
 
19 21
 		$map = json_decode($json, true);
20 22
                 
21
-                if (!is_array($map)) throw new \Exception('Could not decode json: ' . json_last_error_msg());
23
+                if (!is_array($map)) {
24
+                	throw new \Exception('Could not decode json: ' . json_last_error_msg());
25
+                }
22 26
                 
23 27
                 return $map;
24 28
         }
Please login to merge, or discard this patch.
src/Hook/ElementData.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
 	/** Returns the data that has been bound to $element, or, if no data is bound to $element climb the DOM tree to find the data bound to a parent node*/
32 32
 	public function getData(\DomElement $element = null, $type = 'data') {
33 33
 		while ($element) {
34
-			if (isset($this->elementMap[$element]) && isset($this->elementMap[$element][$type])) return $this->elementMap[$element][$type];
34
+			if (isset($this->elementMap[$element]) && isset($this->elementMap[$element][$type])) {
35
+				return $this->elementMap[$element][$type];
36
+			}
35 37
 			$element = $element->parentNode;
36 38
 		}
37 39
 		return $this->data;
Please login to merge, or discard this patch.
src/Parser/Value.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
 
157 157
 	private function callFuncOnObject($obj, $func, $args, $element) {
158 158
 		if (isset($obj->$func) && is_callable($obj->$func)) return call_user_func_array($obj->$func, $args);
159
-		else if (isset($obj->$func) && is_array($obj->$func))  {
159
+		else if (isset($obj->$func) && is_array($obj->$func)) {
160 160
 
161 161
 		}
162 162
 		else return call_user_func_array([$obj, $func], $args);
Please login to merge, or discard this patch.
Braces   +48 added lines, -31 removed lines patch added patch discarded remove patch
@@ -24,7 +24,9 @@  discard block
 block discarded – undo
24 24
 	public function parse($str, $element = null, $returnTokens = false) {
25 25
 		$tokenizer = new Tokenizer($str);
26 26
 		$tokens = $tokenizer->getTokens();
27
-		if ($returnTokens) return $tokens;
27
+		if ($returnTokens) {
28
+			return $tokens;
29
+		}
28 30
 		$this->result = $this->parseTokens($tokens, $element, $this->baseData);
29 31
 		return $this->result;
30 32
 	}
@@ -36,7 +38,9 @@  discard block
 block discarded – undo
36 38
 		$this->last = null;
37 39
 		$this->element = $element;
38 40
 
39
-		if (empty($tokens)) return [$this->data];
41
+		if (empty($tokens)) {
42
+			return [$this->data];
43
+		}
40 44
 
41 45
 		$tokenFuncs = [
42 46
 			Tokenizer::NOT => 'processComparator',
@@ -64,27 +68,36 @@  discard block
 block discarded – undo
64 68
 
65 69
 		if ($this->mode == Tokenizer::NOT && $token['type'] == Tokenizer::EQUALS) {
66 70
 			$this->mode = Tokenizer::NOT;
71
+		} else {
72
+			$this->mode = $token['type'];
67 73
 		}
68
-		else $this->mode = $token['type'];
69 74
 	}
70 75
 
71 76
 
72 77
 	//Reads the last selected value from $data regardless if it's an array or object and overrides $this->data with the new value
73 78
 	private function moveLastToData() {
74
-		if (isset($this->data->{$this->last})) $this->data = $this->data->{$this->last};
75
-		else if (is_array($this->data) && isset($this->data[$this->last])) $this->data = $this->data[$this->last];
79
+		if (isset($this->data->{$this->last})) {
80
+			$this->data = $this->data->{$this->last};
81
+		} else if (is_array($this->data) && isset($this->data[$this->last])) {
82
+			$this->data = $this->data[$this->last];
83
+		}
76 84
 	}
77 85
 
78 86
 	//Dot moves $data to the next object in $data foo.bar moves the $data pointer from `foo` to `bar`
79 87
 	private function processDot($token) {
80
-		if ($this->last !== null) $this->moveLastToData();
81
-		else $this->data = array_pop($this->result);
88
+		if ($this->last !== null) {
89
+			$this->moveLastToData();
90
+		} else {
91
+			$this->data = array_pop($this->result);
92
+		}
82 93
 
83 94
 		$this->last = null;
84 95
 	}
85 96
 
86 97
 	private function processSquareBracket($token) {
87
-		if ($this->last !== null) $this->moveLastToData();
98
+		if ($this->last !== null) {
99
+			$this->moveLastToData();
100
+		}
88 101
 
89 102
 		$parser = new Value($this->baseData, $this->autoLookup);
90 103
 		$this->last = $parser->parseTokens($token['value'], $this->element, null)[0];
@@ -107,15 +120,15 @@  discard block
 block discarded – undo
107 120
 	private function processBrackets($token) {
108 121
 		if ($this->baseData instanceof \Transphporm\Functionset && $this->baseData->hasFunction($this->last)) {
109 122
 			$this->callTransphpormFunctions($token);
110
-		}
111
-		else if ($this->data instanceof \Transphporm\Functionset) {
123
+		} else if ($this->data instanceof \Transphporm\Functionset) {
112 124
 			$this->result = $this->processValue($this->data->{$this->last}($token['value'], $this->element));
113 125
 			$this->last = null;
114
-		}
115
-		else {
126
+		} else {
116 127
 			$parser = new Value($this->baseData, $this->autoLookup);
117 128
 			$args = $parser->parseTokens($token['value'], $this->element, $this->data);
118
-			if ($args[0] == $this->data) $args = [];
129
+			if ($args[0] == $this->data) {
130
+				$args = [];
131
+			}
119 132
 			$funcResult = $this->callFunc($this->last, $args, $this->element, $this->data);
120 133
 			$this->result = $this->processValue($funcResult);
121 134
 			$this->last = null;
@@ -126,9 +139,12 @@  discard block
 block discarded – undo
126 139
 		$this->result = $this->processValue($this->baseData->{$this->last}($token['value'], $this->element));
127 140
 		foreach ($this->result as $i => $value) {
128 141
 			if (is_array($this->data)) {
129
-				if (isset($this->data[$value])) $this->result[$i] = $this->data[$value];
142
+				if (isset($this->data[$value])) {
143
+					$this->result[$i] = $this->data[$value];
144
+				}
145
+			} else if (is_scalar($value) && isset($this->data->$value)) {
146
+				$this->result[$i] = $this->data->$value;
130 147
 			}
131
-			else if (is_scalar($value) && isset($this->data->$value)) $this->result[$i] = $this->data->$value;
132 148
 		}
133 149
 		$this->last = null;
134 150
 	}
@@ -138,12 +154,12 @@  discard block
 block discarded – undo
138 154
 		if ($this->last !== null) {
139 155
 			try {
140 156
 				$this->result = $this->extractLast($this->result);
141
-			}
142
-			catch (\UnexpectedValueException $e) {
157
+			} catch (\UnexpectedValueException $e) {
143 158
 				if (!$this->autoLookup) {
144 159
 					$this->result = $this->processValue($this->last);
160
+				} else {
161
+					$this->result = [false];
145 162
 				}
146
-				else $this->result = [false];			
147 163
 			}			
148 164
 		}
149 165
 		return $this->result;
@@ -152,8 +168,7 @@  discard block
 block discarded – undo
152 168
 	private function extractLast($result) {
153 169
 		if ($this->autoLookup && isset($this->data->{$this->last})) {
154 170
 			return $this->processValue($this->data->{$this->last});
155
-		}
156
-		else if (is_array($this->data) && isset($this->data[$this->last])) {
171
+		} else if (is_array($this->data) && isset($this->data[$this->last])) {
157 172
 			return $this->processValue($this->data[$this->last]);
158 173
 		}
159 174
 		throw new \UnexpectedValueException('Not found');
@@ -162,14 +177,11 @@  discard block
 block discarded – undo
162 177
 	private function processValue($newValue) {
163 178
 		if ($this->mode == Tokenizer::ARG) {
164 179
 			$this->result[] = $newValue;
165
-		}
166
-		else if ($this->mode == Tokenizer::CONCAT) {
180
+		} else if ($this->mode == Tokenizer::CONCAT) {
167 181
 				$this->result[count($this->result)-1] .= $newValue;
168
-		}
169
-		else if ($this->mode == Tokenizer::NOT) {
182
+		} else if ($this->mode == Tokenizer::NOT) {
170 183
 			$this->result[count($this->result)-1] = $this->result[count($this->result)-1] != $newValue;
171
-		}
172
-		else if ($this->mode == Tokenizer::EQUALS) {
184
+		} else if ($this->mode == Tokenizer::EQUALS) {
173 185
 			$this->result[count($this->result)-1] = $this->result[count($this->result)-1] == $newValue;
174 186
 		}
175 187
 
@@ -177,15 +189,20 @@  discard block
 block discarded – undo
177 189
 	}
178 190
 
179 191
 	private function callFunc($name, $args, $element, $data) {
180
-		if ($this->data instanceof \Transphporm\FunctionSet) return $this->data->$name($args, $element);
181
-		else return $this->callFuncOnObject($this->data, $name, $args, $element);
192
+		if ($this->data instanceof \Transphporm\FunctionSet) {
193
+			return $this->data->$name($args, $element);
194
+		} else {
195
+			return $this->callFuncOnObject($this->data, $name, $args, $element);
196
+		}
182 197
 	}
183 198
 
184 199
 	private function callFuncOnObject($obj, $func, $args, $element) {
185
-		if (isset($obj->$func) && is_callable($obj->$func)) return call_user_func_array($obj->$func, $args);
186
-		else if (isset($obj->$func) && is_array($obj->$func))  {
200
+		if (isset($obj->$func) && is_callable($obj->$func)) {
201
+			return call_user_func_array($obj->$func, $args);
202
+		} else if (isset($obj->$func) && is_array($obj->$func))  {
187 203
 
204
+		} else {
205
+			return call_user_func_array([$obj, $func], $args);
188 206
 		}
189
-		else return call_user_func_array([$obj, $func], $args);
190 207
 	}
191 208
 }
Please login to merge, or discard this patch.
src/Parser/Tokenizer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 			$string = $this->extractString($i);
106 106
 			$length = strlen($string)+1;
107 107
 			$char = $this->getChar($char);
108
-			$string = str_replace('\\' . $char, $char, $string);
108
+			$string = str_replace('\\'.$char, $char, $string);
109 109
 			$tokens[] = ['type' => self::STRING, 'value' => $string];
110 110
 			return $length;
111 111
 		}
Please login to merge, or discard this patch.
Braces   +25 added lines, -10 removed lines patch added patch discarded remove patch
@@ -76,10 +76,15 @@  discard block
 block discarded – undo
76 76
 				$name .= $this->str[$i+1];
77 77
 				$i++;
78 78
 			}
79
-			if (is_numeric($name)) $tokens[] = ['type' => self::NUMERIC, 'value' => $name];
80
-			else if ($name == 'true') $tokens[] = ['type' => self::BOOL, 'value' => true];
81
-			else if ($name == 'false') $tokens[] = ['type' => self::BOOL, 'value' => false];
82
-			else $tokens[] = ['type' => self::NAME, 'value' => $name];
79
+			if (is_numeric($name)) {
80
+				$tokens[] = ['type' => self::NUMERIC, 'value' => $name];
81
+			} else if ($name == 'true') {
82
+				$tokens[] = ['type' => self::BOOL, 'value' => true];
83
+			} else if ($name == 'false') {
84
+				$tokens[] = ['type' => self::BOOL, 'value' => false];
85
+			} else {
86
+				$tokens[] = ['type' => self::NAME, 'value' => $name];
87
+			}
83 88
 		}
84 89
 	}
85 90
 
@@ -114,7 +119,9 @@  discard block
 block discarded – undo
114 119
 	private function extractString($pos) {
115 120
 		$char = $this->str[$pos];
116 121
 		$end = strpos($this->str, $char, $pos+1);
117
-		while ($end !== false && $this->str[$end-1] == '\\') $end = strpos($this->str, $char, $end+1);
122
+		while ($end !== false && $this->str[$end-1] == '\\') {
123
+			$end = strpos($this->str, $char, $end+1);
124
+		}
118 125
 
119 126
 		return substr($this->str, $pos+1, $end-$pos-1);
120 127
 	}
@@ -123,18 +130,26 @@  discard block
 block discarded – undo
123 130
 		$close = strpos($this->str, $closeBracket, $open);
124 131
 
125 132
 		$cPos = $open+1;
126
-		while (($cPos = strpos($this->str, $startBracket, $cPos+1)) !== false && $cPos < $close) $close = strpos($this->str, $closeBracket, $close+1);
133
+		while (($cPos = strpos($this->str, $startBracket, $cPos+1)) !== false && $cPos < $close) {
134
+			$close = strpos($this->str, $closeBracket, $close+1);
135
+		}
127 136
 		return substr($this->str, $open+1, $close-$open-1);
128 137
 	}
129 138
 
130 139
 	private function identifyChar($chr) {
131
-		if (isset($this->chars[$chr])) return $this->chars[$chr];
132
-		else return self::NAME;
140
+		if (isset($this->chars[$chr])) {
141
+			return $this->chars[$chr];
142
+		} else {
143
+			return self::NAME;
144
+		}
133 145
 	}
134 146
 
135 147
 	private function getChar($num) {
136 148
 		$chars = array_reverse($this->chars);
137
-		if (isset($chars[$num])) return $chars[$num];
138
-		else return false;
149
+		if (isset($chars[$num])) {
150
+			return $chars[$num];
151
+		} else {
152
+			return false;
153
+		}
139 154
 	}
140 155
 }
Please login to merge, or discard this patch.
src/Property/Repeat.php 1 patch
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,13 +15,19 @@  discard block
 block discarded – undo
15 15
 	}
16 16
 
17 17
 	public function run(array $values, \DomElement $element, array $rules, \Transphporm\Hook\PseudoMatcher $pseudoMatcher, array $properties = []) {
18
-		if ($element->getAttribute('transphporm') === 'added') return $element->parentNode->removeChild($element);
18
+		if ($element->getAttribute('transphporm') === 'added') {
19
+			return $element->parentNode->removeChild($element);
20
+		}
19 21
 		$max = $this->getMax($values);
20 22
 		$count = 0;
21 23
 
22
-		if (empty($values[0])) $values[0] = [];
24
+		if (empty($values[0])) {
25
+			$values[0] = [];
26
+		}
23 27
 		foreach ($values[0] as $key => $iteration) {
24
-			if ($count+1 > $max) break;
28
+			if ($count+1 > $max) {
29
+				break;
30
+			}
25 31
 			$clone = $this->cloneElement($element, $iteration, $key, $count++);
26 32
 			//Re-run the hook on the new element, but use the iterated data
27 33
 			//Don't run repeat on the clones element or it will loop forever
@@ -45,7 +51,9 @@  discard block
 block discarded – undo
45 51
 
46 52
 	private function tagElement($element, $count) {
47 53
 		//Mark all but one of the nodes as having been added by transphporm, when the hook is run again, these are removed
48
-		if ($count > 0) $element->setAttribute('transphporm', 'added');
54
+		if ($count > 0) {
55
+			$element->setAttribute('transphporm', 'added');
56
+		}
49 57
 	}
50 58
 
51 59
 	private function getMax($values) {
@@ -54,7 +62,9 @@  discard block
 block discarded – undo
54 62
 
55 63
 	private function createHook($newRules, $pseudoMatcher, $properties) {
56 64
 		$hook = new \Transphporm\Hook\PropertyHook($newRules, $pseudoMatcher, new \Transphporm\Parser\Value($this->functionSet));
57
-		foreach ($properties as $name => $property) $hook->registerProperty($name, $property);
65
+		foreach ($properties as $name => $property) {
66
+			$hook->registerProperty($name, $property);
67
+		}
58 68
 		return $hook;
59 69
 	}
60 70
 }
Please login to merge, or discard this patch.
src/Property/Display.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,8 +7,12 @@
 block discarded – undo
7 7
 namespace Transphporm\Property;
8 8
 class Display implements \Transphporm\Property {
9 9
 	public function run(array $values, \DomElement $element, array $rules, \Transphporm\Hook\PseudoMatcher $pseudoMatcher, array $properties = []) {
10
-		if ($pseudoMatcher->hasFunction('attr')) $element->removeAttribute($pseudoMatcher->getFuncArgs('attr'));
11
-		else if (strtolower($values[0]) === 'none') $element->setAttribute('transphporm', 'remove');
12
-		else $element->setAttribute('transphporm', 'show');
10
+		if ($pseudoMatcher->hasFunction('attr')) {
11
+			$element->removeAttribute($pseudoMatcher->getFuncArgs('attr'));
12
+		} else if (strtolower($values[0]) === 'none') {
13
+			$element->setAttribute('transphporm', 'remove');
14
+		} else {
15
+			$element->setAttribute('transphporm', 'show');
16
+		}
13 17
 	}
14 18
 }
15 19
\ No newline at end of file
Please login to merge, or discard this patch.
src/Pseudo/Attribute.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
 		$valueParser = new \Transphporm\Parser\Value($this->functionSet);
27 27
 
28
-		$criteria = $name . '(' . $criteria;
28
+		$criteria = $name.'('.$criteria;
29 29
 
30 30
 		$pos = strpos($pseudo, '!');
31 31
 		if ($pos === false) $pos = strpos($pseudo, '=');
Please login to merge, or discard this patch.
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,14 @@  discard block
 block discarded – undo
15 15
 	public function match($pseudo, \DomElement $element) {
16 16
 
17 17
 		$pos = strpos($pseudo, '[');
18
-		if ($pos === false) return true;
18
+		if ($pos === false) {
19
+			return true;
20
+		}
19 21
 
20 22
 		$name = substr($pseudo, 0, $pos);
21
-		if (!is_callable([$this->functionSet, $name])) return true;
23
+		if (!is_callable([$this->functionSet, $name])) {
24
+			return true;
25
+		}
22 26
 
23 27
 		$bracketMatcher = new \Transphporm\Parser\BracketMatcher($pseudo);
24 28
 		$criteria = $bracketMatcher->match('[', ']');
@@ -28,11 +32,14 @@  discard block
 block discarded – undo
28 32
 		$criteria = $name . '(' . $criteria;
29 33
 
30 34
 		$pos = strpos($pseudo, '!');
31
-		if ($pos === false) $pos = strpos($pseudo, '=');
35
+		if ($pos === false) {
36
+			$pos = strpos($pseudo, '=');
37
+		}
32 38
 		if ($pos === false) {
33 39
 			$criteria .= ')=true';
40
+		} else {
41
+			$criteria = substr_replace($criteria, ')', $pos, 0);
34 42
 		}
35
-		else $criteria = substr_replace($criteria, ')', $pos, 0);
36 43
 
37 44
 		return $valueParser->parse($criteria, $element)[0];
38 45
 	}
Please login to merge, or discard this patch.
src/TSSFunction/Data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * @version         1.0                                                             */
7 7
 namespace Transphporm\TSSFunction;
8 8
 /* Handles data() and iteration() function calls from the stylesheet */
9
-class Data implements \Transphporm\TSSFunction{
9
+class Data implements \Transphporm\TSSFunction {
10 10
 	private $data;
11 11
 	private $dataKey;
12 12
 	private $functionSet;
Please login to merge, or discard this patch.