Issues (38)

src/Models/Skill.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Skill
4
 *
5
 * @package LivePersonInc\LiveEngageLaravel\Models
6
 */
7
8
namespace LivePersonInc\LiveEngageLaravel\Models;
9
10
use Illuminate\Database\Eloquent\Model;
11
use LivePersonInc\LiveEngageLaravel\Facades\LiveEngageLaravel as LiveEngage;
12
13
class Skill extends Model
14
{
15
	protected $guarded = [];
16
	
17 1
	public function __construct($skill)
18
	{
19 1
		if (is_int($skill)) {
20 1
			$skill = LiveEngage::getSkill($skill);
0 ignored issues
show
The method getSkill() does not exist on LivePersonInc\LiveEngage...cades\LiveEngageLaravel. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

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

20
			/** @scrutinizer ignore-call */ 
21
   $skill = LiveEngage::getSkill($skill);
Loading history...
21
		}
22 1
		parent::__construct((array) $skill);
23 1
	}
24
}
25