Code Duplication    Length = 13-13 lines in 2 locations

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 && !is_array($string[0]))
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

src/Passes/GroupSingleCharacters.php 1 location

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