Skip to content

Commit

Permalink
fix some Scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Jan 13, 2017
1 parent 2a9474a commit fd8826b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
13 changes: 12 additions & 1 deletion src/Notifynder/Models/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@

/**
* Class Notification.
*
* @property int $to_id
* @property string $to_type
* @property int $from_id
* @property string $from_type
* @property int $category_id
* @property bool $read
* @property string $url
* @property array $extra
* @property string $expires_at
* @property int $stack_id
*/
class Notification extends Model
{
Expand Down Expand Up @@ -45,7 +56,7 @@ class Notification extends Model
/**
* Notification constructor.
*
* @param array $attributes
* @param array|\Fenos\Notifynder\Builder\Notification $attributes
*/
public function __construct($attributes = [])
{
Expand Down
6 changes: 5 additions & 1 deletion src/Notifynder/Models/NotificationCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

/**
* Class NotificationCategory.
*
* @property string $name
* @property string $text
* @method Builder byName($name)
*/
class NotificationCategory extends Model
{
Expand Down Expand Up @@ -66,7 +70,7 @@ public function setNameAttribute($value)
}

/**
* @return string
* @return \Symfony\Component\Translation\TranslatorInterface|string
*/
public function getTemplateBodyAttribute()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Notifynder/NotifynderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function bindContracts()
*/
protected function bindConfig()
{
$this->app->singleton('notifynder.config', function ($app) {
$this->app->singleton('notifynder.config', function () {
return new Config();
});
}
Expand All @@ -89,7 +89,7 @@ protected function bindConfig()
*/
protected function bindSender()
{
$this->app->singleton('notifynder.sender', function ($app) {
$this->app->singleton('notifynder.sender', function () {
return new SenderManager();
});
}
Expand Down

0 comments on commit fd8826b

Please sign in to comment.