Completed
Push — master ( e75327...ca0c2f )
by Fenz
02:31
created
libs/Embedment/CodeEmbedment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 	 *
15 15
 	 * @param  \Htsl\ReadingBuffer\Line $line
16 16
 	 *
17
-	 * @return \Htsl\Embedment\Contracts
17
+	 * @return CodeEmbedment
18 18
 	 */
19 19
 	public function parseLine( Line$line ):parent
20 20
 	{
Please login to merge, or discard this patch.
libs/Embedment/CssEmbedment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 	 *
15 15
 	 * @param  \Htsl\ReadingBuffer\Line $line
16 16
 	 *
17
-	 * @return \Htsl\Embedment\Contracts
17
+	 * @return CssEmbedment
18 18
 	 */
19 19
 	public function parseLine( Line$line ):parent
20 20
 	{
Please login to merge, or discard this patch.
libs/Embedment/JsEmbedment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 	 *
23 23
 	 * @param  \Htsl\ReadingBuffer\Line $line
24 24
 	 *
25
-	 * @return \Htsl\Embedment\Contracts
25
+	 * @return JsEmbedment
26 26
 	 */
27 27
 	public function parseLine( Line$line ):parent
28 28
 	{
Please login to merge, or discard this patch.
libs/Embedment/PhpEmbedment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 	 *
15 15
 	 * @param  \Htsl\ReadingBuffer\Line $line
16 16
 	 *
17
-	 * @return \Htsl\Embedment\Contracts
17
+	 * @return PhpEmbedment
18 18
 	 */
19 19
 	public function parseLine( Line$line ):parent
20 20
 	{
Please login to merge, or discard this patch.
libs/Embedment/TextEmbedment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 	 *
15 15
 	 * @param  \Htsl\ReadingBuffer\Line $line
16 16
 	 *
17
-	 * @return \Htsl\Embedment\Contracts
17
+	 * @return TextEmbedment
18 18
 	 */
19 19
 	public function parseLine( Line$line ):parent
20 20
 	{
Please login to merge, or discard this patch.
libs/Htsl.php 2 patches
Braces   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 		if( $toFile ){
69 69
 			return file_put_contents($toFile,$result);
70
-		}else{
70
+		} else{
71 71
 			return $result;
72 72
 		}
73 73
 	}
@@ -159,15 +159,12 @@  discard block
 block discarded – undo
159 159
 
160 160
 		if( '/'===$filePath{0} ){
161 161
 			if( is_null($path) )
162
-				{ return $filePath; }
163
-			else
162
+				{ return $filePath; } else
164 163
 				{ return $this->basePath.$filePath; }
165
-		}else{
164
+		} else{
166 165
 			if( !strlen($path) )
167
-				{ return $this->basePath.'/'.$filePath; }
168
-			elseif( '/'===substr($path,-1) )
169
-				{ return $path.$filePath; }
170
-			else
166
+				{ return $this->basePath.'/'.$filePath; } elseif( '/'===substr($path,-1) )
167
+				{ return $path.$filePath; } else
171 168
 				{ return $path.'/'.$filePath; }
172 169
 		}
173 170
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 	/**
124 124
 	 * Getting the config of Htsl.
125 125
 	 *
126
-	 * @param  string $keys
126
+	 * @param  string[] $keys
127 127
 	 *
128 128
 	 * @return mixed
129 129
 	 */
Please login to merge, or discard this patch.
libs/Helper/TSetter.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	{
17 17
 		if( is_callable([static::class, $setter= 'set'.implode('',array_map('ucfirst',explode('_',$attribute))),]) ){
18 18
 			return static::$setter($value);
19
-		}else{
19
+		} else{
20 20
 			throw new \Exception(static::class.' has no attribute named '.$attribute);
21 21
 		}
22 22
 	}
Please login to merge, or discard this patch.
libs/Parser/Node/Contracts/ANode.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,9 +136,9 @@
 block discarded – undo
136 136
 				}
137 137
 				return $config['out'];
138 138
 			})($config);
139
-		}elseif( isset($config['only_in']) && (!$this->document->scope || !in_array($this->document->scope->scope,$config['only_in'])) ){
139
+		} elseif( isset($config['only_in']) && (!$this->document->scope || !in_array($this->document->scope->scope,$config['only_in'])) ){
140 140
 			$this->document->throw("The $this->nodeType node $name only use in scope ".implode(',',$config['only_in']));
141
-		}elseif( isset($config['not_in']) && (!$this->document->scope || !in_array($this->document->scope->scope,$config['not_in'])) ){
141
+		} elseif( isset($config['not_in']) && (!$this->document->scope || !in_array($this->document->scope->scope,$config['not_in'])) ){
142 142
 			$this->document->throw("The $this->nodeType node $name not use in scope ".implode(',',$config['not_in']));
143 143
 		}
144 144
 
Please login to merge, or discard this patch.
libs/Parser/Node/TagNode.php 2 patches
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,11 +161,11 @@
 block discarded – undo
161 161
 		if( strlen($link) ){
162 162
 			if( isset($this->config['target']) && ':'===$link{0} ){
163 163
 				$this->setAttribute($this->config['link'],'javascript'.$link);
164
-			}elseif( '//'===($firstTwoLetters=substr($link,0,2)) ){
164
+			} elseif( '//'===($firstTwoLetters=substr($link,0,2)) ){
165 165
 				$this->setAttribute($this->config['link'],'http:'.$link);
166
-			}elseif( '\\\\'===$firstTwoLetters ){
166
+			} elseif( '\\\\'===$firstTwoLetters ){
167 167
 				$this->setAttribute($this->config['link'],'https://'.substr($link,2));
168
-			}else{
168
+			} else{
169 169
 				$this->setAttribute($this->config['link'],$this->checkExpression($link));
170 170
 			}
171 171
 		}
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,6 @@
 block discarded – undo
90 90
 	/**
91 91
 	 * Close this tag node, and returning node closer.
92 92
 	 *
93
-	 * @param  \Htsl\ReadingBuffer\Line   $closerLine  The line when node closed.
94 93
 	 *
95 94
 	 * @return string
96 95
 	 */
Please login to merge, or discard this patch.