Skip to content

Commit e8760b8

Browse files
joedixonStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 64d0b4f commit e8760b8

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

app/Http/Controllers/Articles/ArticlesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function index(Request $request)
3636
->latest('submitted_at')
3737
->take(4)
3838
->get();
39-
39+
4040
$articles = Article::published()
4141
->notPinned()
4242
->{$filter}();

app/View/Components/Modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Illuminate\View\Component;
66

77
class Modal extends Component
8-
{
8+
{
99
public $identifier;
1010

1111
public $title;

tests/Feature/ArticleTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,22 +406,18 @@
406406

407407
$this->get('/articles?filter=invalid')
408408
->see('<link rel="canonical" href="http://localhost/articles?filter=recent" />');
409-
410409
});
411410

412411
test('can filter articles by tag', function () {
413412
$articleOne = Article::factory()->create(['title' => 'My First Article', 'slug' => 'my-first-article', 'submitted_at' => now(), 'approved_at' => now()]);
414413
$tagOne = Tag::factory()->create(['slug' => 'one']);
415414
$articleOne->syncTags([$tagOne->id]);
416-
415+
417416
$articleTwo = Article::factory()->create(['title' => 'My Second Article', 'slug' => 'my-second-article', 'submitted_at' => now(), 'approved_at' => now()]);
418417
$tagTwo = Tag::factory()->create(['slug' => 'two']);
419418
$articleTwo->syncTags([$tagTwo->id]);
420419

421-
422420
$this->get('/articles?tag=one')
423421
->see('My First Article')
424422
->dontSee('My Second Article');
425423
});
426-
427-

0 commit comments

Comments
 (0)