Test Failed
Pull Request — master (#70)
by Rafael
04:52
created

AppsPushNotifications::assemble()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Gewaer\Notifications\PushNotifications;
4
5
use Namshi\Notificator\Notification;
6
use Gewaer\Contracts\PushNotificationsContract;
7
use Gewaer\Notifications\PushNotifications\PushNotifications as PushNotifications;
8
9
class AppsPushNotifications extends PushNotifications implements PushNotificationsContract
10
{
11
    public function __construct( Users $user,string $content, int $system_module_id = 0)
0 ignored issues
show
Coding Style introduced by
Expected 0 spaces after opening parenthesis; 1 found
Loading history...
Coding Style introduced by
Expected 1 space between comma and type hint "string"; 0 found
Loading history...
Bug introduced by
The type Gewaer\Notifications\PushNotifications\Users was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
    {
13
        $this->user = $user;
14
        $this->content  = $content;
15
        $this->system_module_id = $system_module_id;
0 ignored issues
show
Bug Best Practice introduced by
The property system_module_id does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
16
    }
17
18
    public function assemble()
19
    {
20
        return $this->content . " From Apps";
21
    }
22
}
23