Passed
Branch master (2e40b8)
by Hyunwoo
02:25
created
lib/HtmlUtils.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -189,6 +189,9 @@  discard block
 block discarded – undo
189 189
 		return $string;
190 190
 	}
191 191
 
192
+	/**
193
+	 * @param string $string
194
+	 */
192 195
 	private static function extractTagAttributes($string)
193 196
 	{
194 197
 		$html_attributes = array();
@@ -202,6 +205,9 @@  discard block
 block discarded – undo
202 205
 		return $html_attributes;
203 206
 	}
204 207
 
208
+	/**
209
+	 * @param string $tag_name
210
+	 */
205 211
 	private static function filterAllowableTagAttributes($tag_name, $html_attributes)
206 212
 	{
207 213
 		// 문자열비교시 대소문자를 가리기때문에, 소문자로 해당값 입력
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$stack = array();
56 56
 		preg_replace_callback(
57 57
 			'/\<(\/?)([a-z]\w*)([^\>]*)\>/i',
58
-			function ($args) use (&$stack) {
58
+			function($args) use (&$stack) {
59 59
 				$tag_opened = (strlen($args[1]) == 0);
60 60
 				$tag = $args[2];
61 61
 				$attr = $args[3];
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 			}
154 154
 
155 155
 			// attr가 필수적인것들
156
-			$is_matched = !!preg_match("/^(" . implode('|', $tags_with_attrs) .")\s+(.+)$/is", trim($tag_and_attr_string), $sub_matches);
156
+			$is_matched = !!preg_match("/^(" . implode('|', $tags_with_attrs) . ")\s+(.+)$/is", trim($tag_and_attr_string), $sub_matches);
157 157
 			if ($is_matched) {
158 158
 				// 태그명
159 159
 				$tag_name = $sub_matches[1];
Please login to merge, or discard this patch.
lib/StringUtils.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@  discard block
 block discarded – undo
89 89
 		return $str;
90 90
 	}
91 91
 
92
+	/**
93
+	 * @return string
94
+	 */
92 95
 	private static function normalizeSpace($str, $is_single_line = false)
93 96
 	{
94 97
 		if ($is_single_line) {
@@ -170,6 +173,10 @@  discard block
 block discarded – undo
170 173
 	 * @param $obj
171 174
 	 * @param $result
172 175
 	 */
176
+
177
+	/**
178
+	 * @param \SimpleXMLElement $obj
179
+	 */
173 180
 	private static function normalizeSimpleXML($obj, &$result)
174 181
 	{
175 182
 		$data = $obj;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -325,12 +325,12 @@
 block discarded – undo
325 325
 				$string = substr_replace($string, $sub_string2, $i, strlen($sub_string1));
326 326
 				$length -= strlen($sub_string1);
327 327
 				$length += strlen($sub_string2);
328
-				$i += strlen($sub_string2) - 1;    // for문내에서 $i++이기에
328
+				$i += strlen($sub_string2) - 1; // for문내에서 $i++이기에
329 329
 			} elseif (substr($string, $i, strlen($sub_string2)) == $sub_string2) {
330 330
 				$string = substr_replace($string, $sub_string1, $i, strlen($sub_string2));
331 331
 				$length -= strlen($sub_string2);
332 332
 				$length += strlen($sub_string1);
333
-				$i += strlen($sub_string1) - 1;    // for문내에서 $i++이기에
333
+				$i += strlen($sub_string1) - 1; // for문내에서 $i++이기에
334 334
 			}
335 335
 		}
336 336
 
Please login to merge, or discard this patch.