diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml deleted file mode 100644 index 56d54d3..0000000 --- a/.github/workflows/fix-php-code-style-issues.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Fix PHP code style issues - -on: - push: - paths: - - '**.php' - -permissions: - contents: write - -jobs: - php-code-styling: - runs-on: ubuntu-latest - timeout-minutes: 5 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - - - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@2.4 - - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: Fix styling diff --git a/src/EmbeddedMedia.php b/src/EmbeddedMedia.php index 9cec3f0..4c89aba 100644 --- a/src/EmbeddedMedia.php +++ b/src/EmbeddedMedia.php @@ -24,7 +24,7 @@ public function __construct(public array $config) public function make(string $path) { $this->path = implode('/', [ - $this->config['media_path'], + config('docsidian.media_path'), $path, ]); @@ -34,7 +34,7 @@ public function make(string $path) ]); $this->uri = implode('/', [ - str_replace(public_path(), '', rtrim($this->config['media_path'], '/')), + str_replace(public_path(), '', rtrim(config('docsidian.media_path'), '/')), $path, ]);