Completed
Push — master ( da7c37...06f4a4 )
by Tom
03:19
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/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.
src/SheetLoader.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
     private $rules;
16 16
     private $cacheName;
17 17
 
18
+    /**
19
+     * @param string $tss
20
+     */
18 21
     public function __construct(Cache $cache, FilePath $filePath, $tss, $time) {
19 22
     	$this->cache = $cache;
20 23
         $this->filePath = $filePath;
@@ -99,6 +102,9 @@  discard block
 block discarded – undo
99 102
 		return $rules;
100 103
     }
101 104
 
105
+	/**
106
+	 * @param Template $template
107
+	 */
102 108
 	public function processRules($template, \Transphporm\Config $config) {
103 109
 		$rules = $this->getRules($this->tss, $config->getCssToXpath(), $config->getValueParser());
104 110
 
@@ -113,6 +119,11 @@  discard block
 block discarded – undo
113 119
 	}
114 120
 
115 121
 	//Load the TSS
122
+
123
+	/**
124
+	 * @param Parser\CssToXpath $cssToXpath
125
+	 * @param Parser\Value $valueParser
126
+	 */
116 127
 	public function getRules($tss, $cssToXpath, $valueParser, $indexStart = 0) {
117 128
 		if (is_file($tss)) {
118 129
     		//$rules = $this->cache->load($tss);
@@ -124,6 +135,10 @@  discard block
 block discarded – undo
124 135
 		return $tss == null ? [] : (new Parser\Sheet($tss, $cssToXpath, $valueParser, $this->filePath, $this))->parse($indexStart);
125 136
 	}
126 137
 	//Process a TSS rule e.g. `ul li {content: "foo"; format: bar}
138
+
139
+	/**
140
+	 * @param Config $config
141
+	 */
127 142
 	private function executeTssRule($rule, $template, $config) {
128 143
 		$rule->touch();
129 144
 
Please login to merge, or discard this patch.