comparison vendor/psy/psysh/src/Command/BufferCommand.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
66 * 66 *
67 * @return array Formatted strings 67 * @return array Formatted strings
68 */ 68 */
69 protected function formatLines(array $lines, $type = 'return') 69 protected function formatLines(array $lines, $type = 'return')
70 { 70 {
71 $template = sprintf('<%s>%%s</%s>', $type, $type); 71 $template = \sprintf('<%s>%%s</%s>', $type, $type);
72 72
73 return array_map(function ($line) use ($template) { 73 return \array_map(function ($line) use ($template) {
74 return sprintf($template, $line); 74 return \sprintf($template, $line);
75 }, $lines); 75 }, $lines);
76 } 76 }
77 } 77 }