From 8019f0308aa220b5216a9c9d5a9f5b319fd55ffe Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Fri, 16 Sep 2016 12:26:19 +0000 Subject: [PATCH] Applied fixes from StyleCI [ci skip] [skip ci] --- src/Notifynder/Traits/Notifable.php | 1 + src/Notifynder/Traits/NotifableLaravel53.php | 1 + tests/NotifynderTestCase.php | 5 +++-- tests/models/CarL53.php | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Notifynder/Traits/Notifable.php b/src/Notifynder/Traits/Notifable.php index 1025266..e352866 100755 --- a/src/Notifynder/Traits/Notifable.php +++ b/src/Notifynder/Traits/Notifable.php @@ -8,6 +8,7 @@ trait Notifable { use NotifableBasic; + /** * Get the notifications Relationship. * diff --git a/src/Notifynder/Traits/NotifableLaravel53.php b/src/Notifynder/Traits/NotifableLaravel53.php index f5f6da8..09328b1 100755 --- a/src/Notifynder/Traits/NotifableLaravel53.php +++ b/src/Notifynder/Traits/NotifableLaravel53.php @@ -8,6 +8,7 @@ trait NotifableLaravel53 { use NotifableBasic; + /** * Get the notifications Relationship. * diff --git a/tests/NotifynderTestCase.php b/tests/NotifynderTestCase.php index 9755454..f93766e 100644 --- a/tests/NotifynderTestCase.php +++ b/tests/NotifynderTestCase.php @@ -73,7 +73,7 @@ protected function createUser(array $attributes = []) 'lastname' => 'Doe', ], $attributes); - if($this->getLaravelVersion() < 5.3) { + if ($this->getLaravelVersion() < 5.3) { return User::create($attributes); } else { return UserL53::create($attributes); @@ -87,7 +87,7 @@ protected function createCar(array $attributes = []) 'model' => 'A6', ], $attributes); - if($this->getLaravelVersion() < 5.3) { + if ($this->getLaravelVersion() < 5.3) { return Car::create($attributes); } else { return CarL53::create($attributes); @@ -114,6 +114,7 @@ protected function getLaravelVersion() { $version = app()::VERSION; $parts = explode('.', $version); + return ($parts[0].'.'.$parts[1]) * 1; } } diff --git a/tests/models/CarL53.php b/tests/models/CarL53.php index afd824c..4bbc8d1 100644 --- a/tests/models/CarL53.php +++ b/tests/models/CarL53.php @@ -10,7 +10,7 @@ class CarL53 extends Model use NotifableLaravel53; protected $table = 'cars'; - + protected $fillable = [ 'id', 'brand',