Skip to content

Commit

Permalink
Code samples code style
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesvdvreken committed Feb 22, 2016
1 parent 55a4963 commit a4ee547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $users = [
$exporter = new Madewithlove\Export\Csv\Exporter();

// Create a new custom Transformer object (an anonymous class, only in PHP 7)
$transformer = new class() implements Madewithlove\Export\Csv\Transformer, Madewithlove\Export\Csv\WithHeaders {
$transformer = new class implements Madewithlove\Export\Csv\Transformer, Madewithlove\Export\Csv\WithHeaders {
public function getHeaders()
{
return ['username', 'email'];
Expand All @@ -45,7 +45,7 @@ $exporter->setItems($users);
$exporter->setTransformer($transformer);

// New controller being (an anonymous class, only in PHP 7)
$controller = new class () {
$controller = new class {
use Madewithlove\Export\Http\Psr7Response;

/**
Expand Down

0 comments on commit a4ee547

Please sign in to comment.