Code Duplication    Length = 13-13 lines in 2 locations

src/Passes/GroupSingleCharacters.php 1 location

@@ 35-47 (lines=13) @@
32
	* @param  array[] $strings
33
	* @return array[]
34
	*/
35
	protected function getSingleCharStrings(array $strings)
36
	{
37
		$singles = [];
38
		foreach ($strings as $k => $string)
39
		{
40
			if (count($string) === 1 && !is_array($string[0]))
41
			{
42
				$singles[$k] = $string;
43
			}
44
		}
45
46
		return $singles;
47
	}
48
}

src/Serializer.php 1 location

@@ 114-126 (lines=13) @@
111
	* @param  array[]
112
	* @return array   String key => codepoint
113
	*/
114
	protected function getChars(array $strings)
115
	{
116
		$chars = [];
117
		foreach ($strings as $k => $string)
118
		{
119
			if (count($string) === 1)
120
			{
121
				$chars[$k] = $string[0];
122
			}
123
		}
124
125
		return $chars;
126
	}
127
128
	/**
129
	* Get the list of ranges that cover all given values