Completed
Push — master ( a6fc67...f029dd )
by Tom
03:46 queued 01:29
created
src/Formatter/Number.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 	public function currency($num) {
15 15
 		$num = $this->decimal($num, $this->locale['currency_decimals']);
16
-		if ($this->locale['currency_position'] === 'before') return $this->locale['currency'] . $num;
17
-		else return $num . $this->locale['currency'];
16
+		if ($this->locale['currency_position'] === 'before') return $this->locale['currency'].$num;
17
+		else return $num.$this->locale['currency'];
18 18
 	}
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,10 @@
 block discarded – undo
13 13
 
14 14
 	public function currency($num) {
15 15
 		$num = $this->decimal($num, $this->locale['currency_decimals']);
16
-		if ($this->locale['currency_position'] === 'before') return $this->locale['currency'] . $num;
17
-		else return $num . $this->locale['currency'];
16
+		if ($this->locale['currency_position'] === 'before') {
17
+			return $this->locale['currency'] . $num;
18
+		} else {
19
+			return $num . $this->locale['currency'];
20
+		}
18 21
 	}
19 22
 }
20 23
\ No newline at end of file
Please login to merge, or discard this patch.
src/Rule.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
 		$num = (int) $frequency;
40 40
 		$unit = strtoupper(trim(str_replace($num, '', $frequency)));
41 41
 			
42
-		$offset = $num * constant(self::class . '::' . $unit);
42
+		$offset = $num * constant(self::class.'::'.$unit);
43 43
 
44
-		if ($time > $this->lastRun + $offset) return true;
44
+		if ($time > $this->lastRun+$offset) return true;
45 45
 		else return false;
46 46
 	}
47 47
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	private $pseudo;
11 11
 	private $depth;
12 12
 	private $index;
13
-    private $file;
13
+	private $file;
14 14
 	private $line;
15 15
 	private $properties = [];
16 16
 	private $lastRun = 0;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		$this->pseudo = $pseudo;
27 27
 		$this->depth = $depth;
28 28
 		$this->index = $index;
29
-        $this->file = $file;
29
+		$this->file = $file;
30 30
 		$this->line = $line;
31 31
 		$this->properties = $properties;
32 32
 	}
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,23 +44,32 @@
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	private function timeFrequency($frequency, $time = null) {
47
-		if ($time === null) $time = time();
47
+		if ($time === null) {
48
+			$time = time();
49
+		}
48 50
 		$num = (int) $frequency;
49 51
 		$unit = strtoupper(trim(str_replace($num, '', $frequency)));
50 52
 
51 53
 		$offset = $num * constant(self::class . '::' . $unit);
52 54
 
53
-		if ($time > $this->lastRun + $offset) return true;
54
-		else return false;
55
+		if ($time > $this->lastRun + $offset) {
56
+			return true;
57
+		} else {
58
+			return false;
59
+		}
55 60
 	}
56 61
 
57 62
 	public function shouldRun($time = null) {
58 63
 		if (isset($this->properties['update-frequency']) && $this->lastRun !== 0) {
59 64
 			$frequency = $this->properties['update-frequency']->read();
60 65
 			$static = ['always' => true, 'never' => false];
61
-			if (isset($static[$frequency])) return $static[$frequency];
62
-			else return $this->timeFrequency($frequency, $time);
66
+			if (isset($static[$frequency])) {
67
+				return $static[$frequency];
68
+			} else {
69
+				return $this->timeFrequency($frequency, $time);
70
+			}
71
+		} else {
72
+			return true;
63 73
 		}
64
-		else return true;
65 74
 	}
66 75
 }
Please login to merge, or discard this patch.
src/Hook/PostProcess.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,9 +9,13 @@
 block discarded – undo
9 9
 class PostProcess implements \Transphporm\Hook {
10 10
 	public function run(\DomElement $element) {
11 11
 		$transphporm = $element->getAttribute('transphporm');
12
-		if ($transphporm === 'remove') $element->parentNode->removeChild($element);
13
-		else if ($transphporm === 'text') $element->parentNode->replaceChild($element->firstChild, $element);
14
-		else $element->removeAttribute('transphporm');
12
+		if ($transphporm === 'remove') {
13
+			$element->parentNode->removeChild($element);
14
+		} else if ($transphporm === 'text') {
15
+			$element->parentNode->replaceChild($element->firstChild, $element);
16
+		} else {
17
+			$element->removeAttribute('transphporm');
18
+		}
15 19
 	}
16 20
 
17 21
 }
18 22
\ No newline at end of file
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/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')[0]);
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')[0]);
12
+		} else if (strtolower($values[0]) === 'none') {
13
+			$element->setAttribute('transphporm', 'remove');
14
+		} else {
15
+			$element->setAttribute('transphporm', 'show');
16
+		}
13 17
 	}
14 18
 }
Please login to merge, or discard this patch.
src/Parser/Sheet.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,14 +102,14 @@
 block discarded – undo
102 102
 	}
103 103
 
104 104
 	private function getProperties($tokens) {
105
-        $rules = $tokens->splitOnToken(Tokenizer::SEMI_COLON);
105
+		$rules = $tokens->splitOnToken(Tokenizer::SEMI_COLON);
106 106
 
107
-        $return = [];
108
-        foreach ($rules as $rule) {
109
-            $name = $rule->from(Tokenizer::NAME, true)->to(Tokenizer::COLON)->read();
110
-            $return[$name] = $rule->from(Tokenizer::COLON)->trim();
111
-        }
107
+		$return = [];
108
+		foreach ($rules as $rule) {
109
+			$name = $rule->from(Tokenizer::NAME, true)->to(Tokenizer::COLON)->read();
110
+			$return[$name] = $rule->from(Tokenizer::COLON)->trim();
111
+		}
112 112
 
113
-        return $return;
114
-    }
113
+		return $return;
114
+	}
115 115
 }
Please login to merge, or discard this patch.
Braces   +22 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,14 +25,19 @@  discard block
 block discarded – undo
25 25
 			$this->file = $tss;
26 26
 			$this->rules = $this->cache->load($tss);
27 27
 			$this->filePath->addPath(dirname(realpath($tss)));
28
-			if (empty($this->rules)) $tss = file_get_contents($tss);
29
-			else return;
28
+			if (empty($this->rules)) {
29
+				$tss = file_get_contents($tss);
30
+			} else {
31
+				return;
32
+			}
30 33
 		}
31 34
 		$this->tss = (new Tokenizer($tss))->getTokens();
32 35
 	}
33 36
 
34 37
 	public function parse($indexStart = 0) {
35
-		if (!empty($this->rules)) return $this->rules['rules'];
38
+		if (!empty($this->rules)) {
39
+			return $this->rules['rules'];
40
+		}
36 41
 		$rules = $this->parseTokens($indexStart);
37 42
 		usort($rules, [$this, 'sortRules']);
38 43
 		$this->checkError($rules);
@@ -44,8 +49,9 @@  discard block
 block discarded – undo
44 49
 		foreach (new TokenFilterIterator($this->tss, [Tokenizer::WHITESPACE]) as $token) {
45 50
 			if ($processing = $this->processingInstructions($token, count($this->rules)+$indexStart)) {
46 51
 				$this->rules = array_merge($this->rules, $processing);
52
+			} else if ($token['type'] !== Tokenizer::NEW_LINE) {
53
+				$this->addRules($token, $indexStart);
47 54
 			}
48
-			else if ($token['type'] !== Tokenizer::NEW_LINE) $this->addRules($token, $indexStart);
49 55
 		}
50 56
 
51 57
 		return $this->rules;
@@ -55,14 +61,18 @@  discard block
 block discarded – undo
55 61
 		$selector = $this->tss->from($token['type'], true)->to(Tokenizer::OPEN_BRACE);
56 62
 
57 63
 		$this->tss->skip(count($selector));
58
-		if (count($selector) === 0) return;
64
+		if (count($selector) === 0) {
65
+			return;
66
+		}
59 67
 
60 68
 		$newRules = $this->cssToRules($selector, count($this->rules)+$indexStart, $this->getProperties($this->tss->current()['value']), $token['line']);
61 69
 		$this->rules = $this->writeRule($this->rules, $newRules);
62 70
 	}
63 71
 
64 72
 	private function checkError($rules) {
65
-		if (empty($rules) && count($this->tss) > 0) throw new \Exception('No TSS rules parsed');
73
+		if (empty($rules) && count($this->tss) > 0) {
74
+			throw new \Exception('No TSS rules parsed');
75
+		}
66 76
 	}
67 77
 
68 78
 	private function CssToRules($selector, $index, $properties, $line) {
@@ -89,7 +99,9 @@  discard block
 block discarded – undo
89 99
 	}
90 100
 
91 101
 	private function processingInstructions($token, $indexStart) {
92
-		if ($token['type'] !== Tokenizer::AT_SIGN) return false;
102
+		if ($token['type'] !== Tokenizer::AT_SIGN) {
103
+			return false;
104
+		}
93 105
 		$tokens = $this->tss->from(Tokenizer::AT_SIGN, false)->to(Tokenizer::SEMI_COLON, false);
94 106
 		$funcName = $tokens->from(Tokenizer::NAME, true)->read();
95 107
 		$args = $this->valueParser->parseTokens($tokens->from(Tokenizer::NAME));
@@ -109,7 +121,9 @@  discard block
 block discarded – undo
109 121
 
110 122
 	private function sortRules($a, $b) {
111 123
 		//If they have the same depth, compare on index
112
-		if ($a->depth === $b->depth) return $a->index < $b->index ? -1 : 1;
124
+		if ($a->depth === $b->depth) {
125
+			return $a->index < $b->index ? -1 : 1;
126
+		}
113 127
 
114 128
 		return ($a->depth < $b->depth) ? -1 : 1;
115 129
 	}
Please login to merge, or discard this patch.
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@  discard block
 block discarded – undo
39 39
 		return $this->cache->write($this->file, $rules, $this->import);
40 40
 	}
41 41
 
42
+	/**
43
+	 * @param integer $indexStart
44
+	 */
42 45
 	private function parseTokens($indexStart) {
43 46
 		$this->rules = [];
44 47
 		foreach (new TokenFilterIterator($this->tss, [Tokenizer::WHITESPACE]) as $token) {
@@ -65,6 +68,10 @@  discard block
 block discarded – undo
65 68
 		if (empty($rules) && count($this->tss) > 0) throw new \Exception('No TSS rules parsed');
66 69
 	}
67 70
 
71
+	/**
72
+	 * @param Tokens $selector
73
+	 * @param integer $index
74
+	 */
68 75
 	private function CssToRules($selector, $index, $properties, $line) {
69 76
 		$parts = $selector->trim()->splitOnToken(Tokenizer::ARG);
70 77
 		$rules = [];
@@ -88,6 +95,9 @@  discard block
 block discarded – undo
88 95
 		return $rules;
89 96
 	}
90 97
 
98
+	/**
99
+	 * @param integer $indexStart
100
+	 */
91 101
 	private function processingInstructions($token, $indexStart) {
92 102
 		if ($token['type'] !== Tokenizer::AT_SIGN) return false;
93 103
 		$tokens = $this->tss->from(Tokenizer::AT_SIGN, false)->to(Tokenizer::SEMI_COLON, false);
Please login to merge, or discard this patch.
src/Parser/TokenFilterIterator.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,9 @@
 block discarded – undo
35 35
 
36 36
     public function rewind() {
37 37
         $this->tokens->rewind();
38
-        while ($this->shouldContinue()) $this->tokens->next();
38
+        while ($this->shouldContinue()) {
39
+        	$this->tokens->next();
40
+        }
39 41
     }
40 42
 
41 43
     private function shouldContinue() {
Please login to merge, or discard this patch.
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -6,39 +6,39 @@
 block discarded – undo
6 6
  * @version         1.2                                                             */
7 7
 namespace Transphporm\Parser;
8 8
 class TokenFilterIterator implements \Iterator {
9
-    private $ignore;
10
-    private $tokens;
9
+	private $ignore;
10
+	private $tokens;
11 11
 
12
-    public function __construct(Tokens $tokens, array $ignore) {
13
-        $this->ignore = $ignore;
14
-        $this->tokens = $tokens;
15
-    }
12
+	public function __construct(Tokens $tokens, array $ignore) {
13
+		$this->ignore = $ignore;
14
+		$this->tokens = $tokens;
15
+	}
16 16
 
17
-    public function current() {
18
-        return $this->tokens->current();
19
-    }
17
+	public function current() {
18
+		return $this->tokens->current();
19
+	}
20 20
 
21
-    public function key() {
22
-        return $this->tokens->key();
23
-    }
21
+	public function key() {
22
+		return $this->tokens->key();
23
+	}
24 24
 
25
-    public function valid() {
26
-        return $this->tokens->valid();
27
-    }
25
+	public function valid() {
26
+		return $this->tokens->valid();
27
+	}
28 28
 
29
-    public function next() {
30
-        do {
31
-            $this->tokens->next();
32
-        }
33
-        while ($this->shouldContinue());
34
-    }
29
+	public function next() {
30
+		do {
31
+			$this->tokens->next();
32
+		}
33
+		while ($this->shouldContinue());
34
+	}
35 35
 
36
-    public function rewind() {
37
-        $this->tokens->rewind();
38
-        while ($this->shouldContinue()) $this->tokens->next();
39
-    }
36
+	public function rewind() {
37
+		$this->tokens->rewind();
38
+		while ($this->shouldContinue()) $this->tokens->next();
39
+	}
40 40
 
41
-    private function shouldContinue() {
42
-        return $this->tokens->valid() && in_array($this->tokens->current()['type'], $this->ignore);
43
-    }
41
+	private function shouldContinue() {
42
+		return $this->tokens->valid() && in_array($this->tokens->current()['type'], $this->ignore);
43
+	}
44 44
 }
Please login to merge, or discard this patch.
src/Builder.php 4 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -62,6 +62,10 @@  discard block
 block discarded – undo
62 62
 		return (object) $result;
63 63
 	}
64 64
 
65
+	/**
66
+	 * @param Template $template
67
+	 * @param Config $config
68
+	 */
65 69
 	private function processRules($template, $config) {
66 70
 		$rules = $this->getRules($template, $config);
67 71
 
@@ -71,6 +75,10 @@  discard block
 block discarded – undo
71 75
 	}
72 76
 
73 77
 	//Add a postprocessing hook. This cleans up anything transphporm has added to the markup which needs to be removed
78
+
79
+	/**
80
+	 * @param Template $template
81
+	 */
74 82
 	private function doPostProcessing($template) {
75 83
 		$template->addHook('//*[@transphporm]', new Hook\PostProcess());
76 84
 		return $template;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
 		$cachedOutput = $this->loadTemplate();
55 55
 		//To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does
56
-		$template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>' . $cachedOutput['body'] . '</template>' );
56
+		$template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>'.$cachedOutput['body'].'</template>');
57 57
 		$valueParser = new Parser\Value($functionSet);
58 58
 		$this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers);
59 59
 
Please login to merge, or discard this patch.
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,9 @@  discard block
 block discarded – undo
27 27
 		$this->cache = new Cache(new \ArrayObject());
28 28
 		$this->filePath = new FilePath();
29 29
 		$modules = is_array($modules) ? $modules : $this->defaultModules;
30
-		foreach ($modules as $module) $this->loadModule(new $module);
30
+		foreach ($modules as $module) {
31
+			$this->loadModule(new $module);
32
+		}
31 33
 	}
32 34
 
33 35
 	//Allow setting the time used by Transphporm for caching. This is for testing purposes
@@ -56,7 +58,9 @@  discard block
 block discarded – undo
56 58
 		$valueParser = new Parser\Value($functionSet);
57 59
 		$this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers);
58 60
 
59
-		foreach ($this->modules as $module) $module->load($this->config);
61
+		foreach ($this->modules as $module) {
62
+			$module->load($this->config);
63
+		}
60 64
 
61 65
 		$this->processRules($template, $this->config);
62 66
 
@@ -70,7 +74,9 @@  discard block
 block discarded – undo
70 74
 		$rules = $this->getRules($template, $config);
71 75
 
72 76
 		foreach ($rules as $rule) {
73
-			if ($rule->shouldRun($this->time)) $this->executeTssRule($rule, $template, $config);
77
+			if ($rule->shouldRun($this->time)) {
78
+				$this->executeTssRule($rule, $template, $config);
79
+			}
74 80
 		}
75 81
 	}
76 82
 
@@ -93,7 +99,9 @@  discard block
 block discarded – undo
93 99
 	//Load a template, firstly check if it's a file or a valid string
94 100
 	private function loadTemplate() {
95 101
         $result = ['body' => $this->template, 'headers' => []];
96
-		if (file_exists($this->template)) $result = $this->loadTemplateFromFile($this->template);
102
+		if (file_exists($this->template)) {
103
+			$result = $this->loadTemplateFromFile($this->template);
104
+		}
97 105
 		return $result;
98 106
 	}
99 107
 
@@ -119,6 +127,8 @@  discard block
 block discarded – undo
119 127
 
120 128
 	public function __destruct() {
121 129
 		//Required hack as DomXPath can only register static functions clear, the statically stored instance to avoid memory leaks
122
-		if (isset($this->config)) $this->config->getCssToXpath()->cleanup();
130
+		if (isset($this->config)) {
131
+			$this->config->getCssToXpath()->cleanup();
132
+		}
123 133
 	}
124 134
 }
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 	}
42 42
 	
43 43
 	public function setLocale($locale) {
44
-                $format = new \Transphporm\Module\Format($locale);
45
-                $this->modules[get_class($format)] = $format;
46
-        }
44
+				$format = new \Transphporm\Module\Format($locale);
45
+				$this->modules[get_class($format)] = $format;
46
+		}
47 47
 
48 48
 	public function addPath($dir) {
49 49
 		$this->filePath->addPath($dir);
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
 
98 98
 	//Load a template, firstly check if it's a file or a valid string
99 99
 	private function loadTemplate() {
100
-        $result = ['body' => $this->template, 'headers' => []];
100
+		$result = ['body' => $this->template, 'headers' => []];
101 101
 		if (file_exists($this->template)) $result = $this->loadTemplateFromFile($this->template);
102 102
 		return $result;
103 103
 	}
104 104
 
105
-    private function loadTemplateFromFile($file) {
106
-        $xml = $this->cache->load($this->template, filemtime($this->template));
107
-        return $xml ? $xml : ['body' => file_get_contents($this->template) ?: "", 'headers' => []];
108
-    }
105
+	private function loadTemplateFromFile($file) {
106
+		$xml = $this->cache->load($this->template, filemtime($this->template));
107
+		return $xml ? $xml : ['body' => file_get_contents($this->template) ?: "", 'headers' => []];
108
+	}
109 109
 
110 110
 	//Load the TSS rules either from a file or as a string
111 111
 	//N.b. only files can be cached
Please login to merge, or discard this patch.
src/Exception.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     const FORMATTER = 'formatter';
8 8
 
9 9
     public function __construct(RunException $runException, $file, $line) {
10
-        $message = $runException->getMessage() . ' on Line ' . $line . ' of ' . ($file === null ? 'tss' : $file);
10
+        $message = $runException->getMessage().' on Line '.$line.' of '.($file === null ? 'tss' : $file);
11 11
 
12 12
         parent::__construct($message, 0, $runException->getPrevious());
13 13
     }
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
  * @version         1.2                                                             */
7 7
 namespace Transphporm;
8 8
 class Exception extends \Exception {
9
-    const PROPERTY = 'property';
10
-    const TSS_FUNCTION = 'function';
11
-    const PSEUDO = 'pseudo';
12
-    const FORMATTER = 'formatter';
9
+	const PROPERTY = 'property';
10
+	const TSS_FUNCTION = 'function';
11
+	const PSEUDO = 'pseudo';
12
+	const FORMATTER = 'formatter';
13 13
 
14
-    public function __construct(RunException $runException, $file, $line) {
15
-        $message = $runException->getMessage() . ' on Line ' . $line . ' of ' . ($file === null ? 'tss' : $file);
14
+	public function __construct(RunException $runException, $file, $line) {
15
+		$message = $runException->getMessage() . ' on Line ' . $line . ' of ' . ($file === null ? 'tss' : $file);
16 16
 
17
-        parent::__construct($message, 0, $runException->getPrevious());
18
-    }
17
+		parent::__construct($message, 0, $runException->getPrevious());
18
+	}
19 19
 }
Please login to merge, or discard this patch.