Fix files with Laravel Pint

This commit is contained in:
Jonny Barnes 2022-07-09 10:08:26 +01:00
parent c714457604
commit e36f15d391
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
116 changed files with 409 additions and 378 deletions

View file

@ -28,7 +28,7 @@ class DownloadWebMentionJobTest extends TestCase
{
$this->assertFileDoesNotExist(storage_path('HTML/https'));
$source = 'https://example.org/reply/1';
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
<a class="u-like-of" href=""></a>
</div>
@ -56,12 +56,12 @@ class DownloadWebMentionJobTest extends TestCase
{
$this->assertFileDoesNotExist(storage_path('HTML/https'));
$source = 'https://example.org/reply/1';
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
<a class="u-like-of" href=""></a>
</div>
HTML;
$html2 = <<<HTML
$html2 = <<<'HTML'
<div class="h-entry">
<a class="u-like-of" href=""></a>
<a class="u-repost-of" href=""></a>
@ -91,7 +91,7 @@ class DownloadWebMentionJobTest extends TestCase
{
$this->assertFileDoesNotExist(storage_path('HTML/https'));
$source = 'https://example.org/reply-one/';
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
<a class="u-like-of" href=""></a>
</div>

View file

@ -58,7 +58,7 @@ class ProcessWebMentionJobTest extends TestCase
$parser = new Parser();
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
I liked <a class="u-like-of" href="/notes/1">a note</a>.
</div>
@ -125,7 +125,7 @@ class ProcessWebMentionJobTest extends TestCase
{
$parser = new Parser();
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
<p>In reply to <a class="u-in-reply-to" href="https://other.com/notes/E">a note</a></p>
<div class="e-content">Replying to someone else</div>
@ -162,7 +162,7 @@ class ProcessWebMentionJobTest extends TestCase
{
$parser = new Parser();
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
<p>In reply to <a class="u-like-of" href="https://other.com/notes/E">a note</a></p>
<div class="e-content">I like someone else now</div>
@ -199,7 +199,7 @@ class ProcessWebMentionJobTest extends TestCase
{
$parser = new Parser();
$html = <<<HTML
$html = <<<'HTML'
<div class="h-entry">
<p>In reply to <a class="u-repost-of" href="https://other.com/notes/E">a note</a></p>
<div class="e-content">Reposting someone else</div>

View file

@ -23,7 +23,7 @@ class SyndicateBookmarkToTwitterJobTest extends TestCase
$faker = \Faker\Factory::create();
$randomNumber = $faker->randomNumber();
$json = json_encode([
'url' => 'https://twitter.com/' . $randomNumber
'url' => 'https://twitter.com/' . $randomNumber,
]);
$mock = new MockHandler([
new Response(201, ['Content-Type' => 'application/json'], $json),