Skip to content

Commit 8af889f

Browse files
authored
Merge pull request #2 from coding-wisely/dev
Testing github actions on merging to dev
2 parents 95d1a29 + 0b25847 commit 8af889f

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/CodingWisely/laravel-slug-auto-generator/discussions/new?category=q-a
4+
url: https://github.com/coding-wisely/laravel-slug-auto-generator/discussions/categories/q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/CodingWisely/laravel-slug-auto-generator/discussions/new?category=ideas
7+
url: https://github.com/CodingWisely/laravel-slug-auto-generator/discussions/ideas
88
about: Share ideas for new features
99
- name: Report a security issue
1010
url: https://github.com/CodingWisely/laravel-slug-auto-generator/security/policy

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Fix PHP code style issues
22

33
on:
44
push:
5+
branches:
6+
- dev
57
paths:
68
- '**.php'
79

src/SlugGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static function bootSlugGenerator(): void
1212
static::saving(function ($model) {
1313
$field = self::getSluggableField();
1414

15-
if (!in_array($field, array_keys($model->getAttributes()))) {
15+
if (! in_array($field, array_keys($model->getAttributes()))) {
1616
throw new InvalidArgumentException("{$field} does not exist in the model.");
1717
}
1818

src/SlugGeneratorServiceProvider.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22

33
namespace CodingWisely\SlugGenerator;
44

5-
use CodingWisely\SlugGenerator\Commands\SlugGeneratorCommand;
65
use Spatie\LaravelPackageTools\Package;
76
use Spatie\LaravelPackageTools\PackageServiceProvider;
87

98
class SlugGeneratorServiceProvider extends PackageServiceProvider
109
{
1110
public function configurePackage(Package $package): void
1211
{
13-
/*
14-
* This class is a Package Service Provider
15-
*
16-
* More info: https://github.com/spatie/laravel-package-tools
17-
*/
1812
$package
1913
->name('laravel-slug-auto-generator')
2014
->hasConfigFile();

0 commit comments

Comments
 (0)