Passed
Pull Request — master (#68)
by Sergey
07:18
created

FlashesMessage::flashSpatieMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace JamesMills\LaravelTimezone\Traits;
4
5
trait FlashesMessage
6
{
7
    protected function flashLaravelMessage(string $key, string $message): void
8
    {
9
        request()->session()->flash($key, $message);
10
    }
11
12
    protected function flashLaracastsMessage(string $key, string $message): void
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

12
    protected function flashLaracastsMessage(/** @scrutinizer ignore-unused */ string $key, string $message): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
13
    {
14
        flash()->success($message);
0 ignored issues
show
Bug introduced by
The function flash 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 ignore-call  annotation

14
        /** @scrutinizer ignore-call */ 
15
        flash()->success($message);
Loading history...
15
    }
16
17
    protected function flashMercuryseriesMessage(string $key, string $message): void
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
    protected function flashMercuryseriesMessage(/** @scrutinizer ignore-unused */ string $key, string $message): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    {
19
        flashy()->success($message);
0 ignored issues
show
Bug introduced by
The function flashy 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 ignore-call  annotation

19
        /** @scrutinizer ignore-call */ 
20
        flashy()->success($message);
Loading history...
20
    }
21
22
    protected function flashSpatieMessage(string $key, string $message): void
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    protected function flashSpatieMessage(/** @scrutinizer ignore-unused */ string $key, string $message): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
        flash()->success($message);
0 ignored issues
show
Bug introduced by
The function flash 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 ignore-call  annotation

24
        /** @scrutinizer ignore-call */ 
25
        flash()->success($message);
Loading history...
25
    }
26
27
    protected function flashMckenzieartsMessage(string $key, string $message): void
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

27
    protected function flashMckenzieartsMessage(/** @scrutinizer ignore-unused */ string $key, string $message): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
        notify()->success($message);
0 ignored issues
show
Bug introduced by
The function notify 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 ignore-call  annotation

29
        /** @scrutinizer ignore-call */ 
30
        notify()->success($message);
Loading history...
30
    }
31
}
32