Making code PSR2 compliant

This commit is contained in:
gamonoid
2017-09-24 19:23:30 +02:00
parent 05b57e0236
commit 6c61577583
160 changed files with 1432 additions and 1086 deletions

View File

@@ -7,7 +7,7 @@ use Users\Common\Model\User;
class NotificationManager
{
/* @var \Classes\BaseService $baseService */
var $baseService;
public $baseService;
public function setBaseService($baseService)
{
@@ -15,11 +15,18 @@ class NotificationManager
}
public function addNotification(
$toEmployee, $message, $action, $type, $toUserId = null, $fromSystem = false, $sendEmail = false)
{
$toEmployee,
$message,
$action,
$type,
$toUserId = null,
$fromSystem = false,
$sendEmail = false
) {
$userEmp = new User();
$toUser = null;
$toUser = null;
if (!empty($toEmployee)) {
$userEmp->Load("employee = ?", array($toEmployee));
@@ -91,7 +98,7 @@ class NotificationManager
$notification = new Notification();
$listUnread = $notification->Find("toUser = ? and status = ?", array($userId,'Unread'));
/* @var Notification $not */
/* @var Notification $not */
foreach ($listUnread as $not) {
$not->status = "Read";
$not->Save();