fomvasss /
laravel-slugmaker
| 1 | <?php |
||||
| 2 | |||||
| 3 | if (! function_exists('slug_get_model')) { |
||||
| 4 | function slug_get_model($slug, $class = null) |
||||
| 5 | { |
||||
| 6 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->getModel($slug, $class); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 7 | } |
||||
| 8 | } |
||||
| 9 | |||||
| 10 | if (! function_exists('slug_get_models')) { |
||||
| 11 | function slug_get_models($slugs, $class = null) |
||||
|
0 ignored issues
–
show
|
|||||
| 12 | { |
||||
| 13 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->getModels($slugs, $class); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 14 | } |
||||
| 15 | } |
||||
| 16 | |||||
| 17 | if (! function_exists('slug_get_id')) { |
||||
| 18 | function slug_get_id($slug, $class = null) |
||||
|
0 ignored issues
–
show
|
|||||
| 19 | { |
||||
| 20 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->getId($slug, $class); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 21 | } |
||||
| 22 | } |
||||
| 23 | |||||
| 24 | if (! function_exists('slug_get_ids')) { |
||||
| 25 | function slug_get_ids($slugs, $class = null) |
||||
|
0 ignored issues
–
show
|
|||||
| 26 | { |
||||
| 27 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->getIds($slugs, $class); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 28 | } |
||||
| 29 | } |
||||
| 30 | |||||
| 31 | if (! function_exists('slug_get_grouped_class')) { |
||||
| 32 | function slug_get_grouped_class($attributes, $useId = false) |
||||
|
0 ignored issues
–
show
|
|||||
| 33 | { |
||||
| 34 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->getIdsGroupedByClass($attributes, $useId); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 35 | } |
||||
| 36 | } |
||||
| 37 | |||||
| 38 | if (! function_exists('slug_get')) { |
||||
| 39 | function slug_get($model) |
||||
|
0 ignored issues
–
show
|
|||||
| 40 | { |
||||
| 41 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->getSlugName($model); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 42 | } |
||||
| 43 | } |
||||
| 44 | |||||
| 45 | if (! function_exists('slug_make')) { |
||||
| 46 | function slug_make($model, $slug = '') |
||||
|
0 ignored issues
–
show
|
|||||
| 47 | { |
||||
| 48 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->makeForModel($model, $slug); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 49 | } |
||||
| 50 | } |
||||
| 51 | |||||
| 52 | if (! function_exists('slug_delete')) { |
||||
| 53 | function slug_delete($model) |
||||
|
0 ignored issues
–
show
|
|||||
| 54 | { |
||||
| 55 | return app(\Fomvasss\SlugMaker\SlugHelper::class)->deleteByModel($model); |
||||
|
0 ignored issues
–
show
The function
app was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 56 | } |
||||
| 57 | } |
||||
| 58 |