Completed
Push — master ( a3c2e5...7dfd4a )
by Tom
02:04
created
src/Property/Content.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
 		}
28 28
 	}
29 29
 
30
+	/**
31
+	 * @param \DOMElement $element
32
+	 */
30 33
 	private function shouldRun($element) {
31 34
 		do {
32 35
 			if (in_array($element->getAttribute('transphporm'), ['includedtemplate', 'added']))  return false;
@@ -43,6 +46,10 @@  discard block
 block discarded – undo
43 46
 		$this->contentPseudo[$name] = $contentPseudo;
44 47
 	}
45 48
 
49
+	/**
50
+	 * @param \DOMElement $element
51
+	 * @param \Transphporm\Hook\PseudoMatcher $pseudoMatcher
52
+	 */
46 53
 	private function processPseudo($value, $element, $pseudoMatcher) {
47 54
 		foreach ($this->contentPseudo as $pseudoName => $pseudoFunction) {
48 55
 			if ($pseudoMatcher->hasFunction($pseudoName)) {
@@ -81,6 +88,9 @@  discard block
 block discarded – undo
81 88
 	}
82 89
 
83 90
 
91
+	/**
92
+	 * @param \DOMElement $element
93
+	 */
84 94
 	private function replaceContent($element, $content) {
85 95
 		//If this rule was cached, the elements that were added last time need to be removed prior to running the rule again.
86 96
 		if ($transphpormMode = $element->getAttribute('transphporm')) {
@@ -115,12 +125,18 @@  discard block
 block discarded – undo
115 125
 		}
116 126
 	}
117 127
 
128
+	/**
129
+	 * @param \DOMElement $element
130
+	 */
118 131
 	private function appendContent($element, $content) {
119 132
 		foreach ($this->getNode($content, $element->ownerDocument) as $node) {
120 133
 			$element->appendChild($node);
121 134
 		}
122 135
 	}
123 136
 
137
+	/**
138
+	 * @param \DOMElement $element
139
+	 */
124 140
 	private function removeAllChildren($element) {
125 141
 		while ($element->hasChildNodes()) $element->removeChild($element->firstChild);
126 142
 	}
Please login to merge, or discard this patch.