Skip to content

Commit

Permalink
adding php_cs.dist and running for PSR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Baker committed Jan 18, 2019
1 parent 71c08a1 commit e08e2a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('node_modules')
->exclude('vendor')
->in(__DIR__);

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'binary_operator_spaces' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder);
11 changes: 5 additions & 6 deletions tests/MailTrackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,17 @@ public function testSendMessageWithMailRaw()
$content = 'Text to e-mail';
\View::addLocation(__DIR__);

Mail::raw($content, function($message) use ($email, $name)
{
Mail::raw($content, function ($message) use ($email, $name) {
$message->from('[email protected]', 'From Name');

$message->to($email, $name);
});

$this->seeInDatabase('sent_emails', [
'recipient'=>$name.' <'.$email.'>',
'sender'=>'From Name <[email protected]>',
'recipient'=>"{$name} <{$email}>",
'content'=>$content
'recipient' => $name.' <'.$email.'>',
'sender' => 'From Name <[email protected]>',
'recipient' => "{$name} <{$email}>",
'content' => $content
]);
}

Expand Down

0 comments on commit e08e2a9

Please sign in to comment.