Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Fix StyleCI recommendations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Aug 31, 2019
1 parent ab4d8f1 commit fa8109d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ParsedownServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function boot()
) {
$this->publishes(
[
__DIR__ . '/config/markdown.php' => config_path('markdown.php'),
__DIR__.'/config/markdown.php' => config_path('markdown.php'),
],
'laravel-parsedown-config'
);
Expand Down
12 changes: 6 additions & 6 deletions tests/Facades/ParsedownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ class ParsedownTest extends TestCase
{
public function testHelperWorks()
{
$result = parsedown("# Heading 1");
$result = parsedown('# Heading 1');

$this->assertEquals("<h1>Heading 1</h1>", $result);
$this->assertEquals('<h1>Heading 1</h1>', $result);
}

public function testFacadeWorks()
{
$result = Parsedown::text("# Heading 1");
$result = Parsedown::text('# Heading 1');

$this->assertEquals("<h1>Heading 1</h1>", $result);
$this->assertEquals('<h1>Heading 1</h1>', $result);
}

public function testSingletonWorks()
{
$result = app("parsedown")->text("# Heading 1");
$result = app('parsedown')->text('# Heading 1');

$this->assertEquals("<h1>Heading 1</h1>", $result);
$this->assertEquals('<h1>Heading 1</h1>', $result);
}
}
4 changes: 3 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Yansongda\LaravelParsedown\Tests;
<?php

namespace Yansongda\LaravelParsedown\Tests;

use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Yansongda\LaravelParsedown\ParsedownServiceProvider;
Expand Down

0 comments on commit fa8109d

Please sign in to comment.