Skip to content

Commit 55c4c31

Browse files
committed
Exclude test from codacy, fix warning in github actions
1 parent 1d25e1a commit 55c4c31

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.codacy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
exclude_paths:
2-
- 'tests/*'
2+
- '*.md'
3+
- '**/tests/**'

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
php-version: ${{ matrix.php-versions }}
1818
extensions: mbstring, intl, zip
1919
coverage: xdebug
20-
pecl: false
2120

2221
- name: Get Composer Cache Directory
2322
id: composer-cache

src/AbstractRepositoryType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Exception;
99
use GuzzleHttp\ClientInterface;
1010
use Illuminate\Support\Facades\File;
11+
use SplFileInfo;
1112
use Symfony\Component\Finder\Finder;
1213

1314
/**
@@ -85,7 +86,7 @@ protected function hasCorrectPermissionForUpdate(): bool
8586
throw new Exception('No directory set for update. Please set the update with: setPathToUpdate(path).');
8687
}
8788

88-
$collection = collect($this->pathToUpdate->files())->each(function ($file) { /* @var \SplFileInfo $file */
89+
collect($this->pathToUpdate->files())->each(function ($file) { /* @var SplFileInfo $file */
8990
if (! File::isWritable($file->getRealPath())) {
9091
event(new HasWrongPermissions($this));
9192

0 commit comments

Comments
 (0)