Completed
Push — master ( f8660b...c42a51 )
by Tom
01:54
created
src/Formatter/HTMLFormatter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
         $this->templateFunction = $templateFunction;
8 8
     }
9 9
 
10
+    /**
11
+     * @param string $val
12
+     */
10 13
     public function html($val) {
11 14
 		return $this->templateFunction->run(['<template>' . $val . '</template>']);
12 15
 	}
Please login to merge, or discard this patch.
src/Parser/CssToXpath.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 	private $functionSet;
14 14
 	private $id;
15 15
 
16
+	/**
17
+	 * @param string $id
18
+	 */
16 19
 	public function __construct(\Transphporm\FunctionSet $functionSet, $prefix = '', $id = null) {
17 20
 		$this->id = $id;
18 21
 		self::$instances[$this->id] = $this;
Please login to merge, or discard this patch.
src/Property/ContentPseudo/BeforeAfter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@
 block discarded – undo
4 4
 	private $insertLocation;
5 5
 	private $content;
6 6
 
7
+	/**
8
+	 * @param string $insertLocation
9
+	 */
7 10
 	public function __construct($insertLocation, \Transphporm\Property\Content $content) {
8 11
 		$this->insertLocation = $insertLocation;
9 12
 		$this->content = $content;
Please login to merge, or discard this patch.
src/Parser/Sheet.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 		return $rules;
31 31
 	}
32 32
 
33
+	/**
34
+	 * @param integer $indexStart
35
+	 */
33 36
 	private function parseTokens($indexStart) {
34 37
 		$this->rules = [];
35 38
 		foreach (new TokenFilterIterator($this->tss, [Tokenizer::WHITESPACE]) as $token) {
@@ -55,6 +58,10 @@  discard block
 block discarded – undo
55 58
 		if (empty($rules) && count($this->tss) > 0) throw new \Exception('No TSS rules parsed');
56 59
 	}
57 60
 
61
+	/**
62
+	 * @param Tokens $selector
63
+	 * @param integer $index
64
+	 */
58 65
 	private function CssToRules($selector, $index, $properties, $line) {
59 66
 		$parts = $selector->trim()->splitOnToken(Tokenizer::ARG);
60 67
 		$rules = [];
@@ -78,6 +85,9 @@  discard block
 block discarded – undo
78 85
 		return $rules;
79 86
 	}
80 87
 
88
+	/**
89
+	 * @param integer $indexStart
90
+	 */
81 91
 	private function processingInstructions($token, $indexStart) {
82 92
 		if ($token['type'] !== Tokenizer::AT_SIGN) return false;
83 93
 		$tokens = $this->tss->from(Tokenizer::AT_SIGN, false)->to(Tokenizer::SEMI_COLON, false);
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -85,6 +85,10 @@
 block discarded – undo
85 85
 	}
86 86
 
87 87
 	//Add a postprocessing hook. This cleans up anything transphporm has added to the markup which needs to be removed
88
+
89
+	/**
90
+	 * @param Template $template
91
+	 */
88 92
 	private function doPostProcessing($template) {
89 93
 		$template->addHook('//*[@transphporm]', new Hook\PostProcess());
90 94
 		return $template;
Please login to merge, or discard this patch.
src/SheetLoader.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
     private $time;
13 13
     private $import = [];
14 14
 
15
+    /**
16
+     * @param string $tss
17
+     */
15 18
     public function __construct(Cache $cache, FilePath $filePath, $tss, $time) {
16 19
         $this->cache = $cache;
17 20
         $this->filePath = $filePath;
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
 		return $rules;
60 63
     }
61 64
 
65
+	/**
66
+	 * @param Template $template
67
+	 */
62 68
 	public function processRules($template, \Transphporm\Config $config) {
63 69
 		$rules = $this->getRules($this->tss, $config->getCssToXpath(), $config->getValueParser());
64 70
 
@@ -72,6 +78,11 @@  discard block
 block discarded – undo
72 78
 	}
73 79
 
74 80
 	//Load the TSS
81
+
82
+	/**
83
+	 * @param Parser\CssToXpath $cssToXpath
84
+	 * @param Parser\Value $valueParser
85
+	 */
75 86
 	public function getRules($tss, $cssToXpath, $valueParser) {
76 87
 		if (is_file($tss)) {
77 88
     		//$rules = $this->cache->load($tss);
@@ -84,6 +95,10 @@  discard block
 block discarded – undo
84 95
 	}
85 96
 
86 97
 	//Process a TSS rule e.g. `ul li {content: "foo"; format: bar}
98
+
99
+	/**
100
+	 * @param Config $config
101
+	 */
87 102
 	private function executeTssRule($rule, $template, $config) {
88 103
 		$rule->touch();
89 104
 
Please login to merge, or discard this patch.
src/Rule.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@
 block discarded – undo
21 21
 	const D = 86400;
22 22
 
23 23
 
24
+	/**
25
+	 * @param string $query
26
+	 * @param integer $depth
27
+	 */
24 28
 	public function __construct($query, $pseudo, $depth, $index, $file, $line, array $properties = []) {
25 29
 		$this->query = $query;
26 30
 		$this->pseudo = $pseudo;
Please login to merge, or discard this patch.