Skip to content

Commit

Permalink
Add language codes to try:formatters example command.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Sep 27, 2016
1 parent 20c2d20 commit 11330bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ public function trySuccess()
public function tryFormatters($somthing = 'default', $options = ['format' => 'table', 'fields' => ''])
{
$outputData = [
[ 'first' => 'One', 'second' => 'Two', 'third' => 'Three' ],
[ 'first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei' ],
[ 'first' => 'Ichi', 'second' => 'Ni', 'third' => 'San' ],
[ 'first' => 'Uno', 'second' => 'Dos', 'third' => 'Tres' ],
'en' => [ 'first' => 'One', 'second' => 'Two', 'third' => 'Three' ],
'de' => [ 'first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei' ],
'jp' => [ 'first' => 'Ichi', 'second' => 'Ni', 'third' => 'San' ],
'es' => [ 'first' => 'Uno', 'second' => 'Dos', 'third' => 'Tres' ],
];
return new RowsOfFields($outputData);
}
Expand All @@ -182,7 +182,7 @@ public function tryFormatters($somthing = 'default', $options = ['format' => 'ta
public function alterFormatters($result, array $args, AnnotationData $annotationData)
{
if ($args['options']['french']) {
$result[] = [ 'first' => 'Un', 'second' => 'Deux', 'third' => 'Trois' ];
$result['fr'] = [ 'first' => 'Un', 'second' => 'Deux', 'third' => 'Trois' ];
}

return $result;
Expand Down

0 comments on commit 11330bc

Please sign in to comment.