Fix some php analyzer issues
This commit is contained in:
@@ -24,6 +24,9 @@ use Symfony\Component\EventDispatcher\Event;
|
|||||||
* @property \Integration\GithubWebhook $githubWebhook
|
* @property \Integration\GithubWebhook $githubWebhook
|
||||||
* @property \Integration\GitlabWebhook $gitlabWebhook
|
* @property \Integration\GitlabWebhook $gitlabWebhook
|
||||||
* @property \Integration\BitbucketWebhook $bitbucketWebhook
|
* @property \Integration\BitbucketWebhook $bitbucketWebhook
|
||||||
|
* @property \Integration\PostmarkWebhook $postmarkWebhook
|
||||||
|
* @property \Integration\SendgridWebhook $sendgridWebhook
|
||||||
|
* @property \Integration\MailgunWebhook $mailgunWebhook
|
||||||
* @property \Model\Acl $acl
|
* @property \Model\Acl $acl
|
||||||
* @property \Model\Authentication $authentication
|
* @property \Model\Authentication $authentication
|
||||||
* @property \Model\Action $action
|
* @property \Model\Action $action
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ class Project extends Base
|
|||||||
$project = $this->project->getByToken($token);
|
$project = $this->project->getByToken($token);
|
||||||
|
|
||||||
// Token verification
|
// Token verification
|
||||||
if (! $project) {
|
if (empty($project)) {
|
||||||
$this->forbidden(true);
|
$this->forbidden(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -531,13 +531,12 @@ class Project extends Base
|
|||||||
|
|
||||||
$project_id = $this->project->create($values, $this->userSession->getId(), true);
|
$project_id = $this->project->create($values, $this->userSession->getId(), true);
|
||||||
|
|
||||||
if ($project_id) {
|
if ($project_id > 0) {
|
||||||
$this->session->flash(t('Your project have been created successfully.'));
|
$this->session->flash(t('Your project have been created successfully.'));
|
||||||
$this->response->redirect('?controller=project&action=show&project_id='.$project_id);
|
$this->response->redirect('?controller=project&action=show&project_id='.$project_id);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$this->session->flashError(t('Unable to create your project.'));
|
$this->session->flashError(t('Unable to create your project.'));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->create($values, $errors);
|
$this->create($values, $errors);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ use Pimple\Container;
|
|||||||
* @property \Model\Task $task
|
* @property \Model\Task $task
|
||||||
* @property \Model\TaskFinder $taskFinder
|
* @property \Model\TaskFinder $taskFinder
|
||||||
* @property \Model\User $user
|
* @property \Model\User $user
|
||||||
|
* @property \Model\Project $project
|
||||||
*/
|
*/
|
||||||
abstract class Base
|
abstract class Base
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ use Pimple\Container;
|
|||||||
* @property \Model\Timetable $timetable
|
* @property \Model\Timetable $timetable
|
||||||
* @property \Model\TimetableDay $timetableDay
|
* @property \Model\TimetableDay $timetableDay
|
||||||
* @property \Model\TimetableExtra $timetableExtra
|
* @property \Model\TimetableExtra $timetableExtra
|
||||||
* @property \Model\TimetableOff $timetableOfff
|
* @property \Model\TimetableOff $timetableOff
|
||||||
* @property \Model\TimetableWeek $timetableWeek
|
* @property \Model\TimetableWeek $timetableWeek
|
||||||
* @property \Model\SubtaskTimeTracking $subtaskTimeTracking
|
* @property \Model\SubtaskTimeTracking $subtaskTimeTracking
|
||||||
* @property \Model\User $user
|
* @property \Model\User $user
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ use Pimple\Container;
|
|||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*
|
*
|
||||||
* @property \Integration\SlackWebhook $slackWebhook
|
* @property \Integration\SlackWebhook $slackWebhook
|
||||||
* @property \Integration\Hipchat $hipchat
|
* @property \Integration\HipchatWebhook $hipchatWebhook
|
||||||
* @property \Model\Board $board
|
* @property \Model\Board $board
|
||||||
* @property \Model\Config $config
|
* @property \Model\Config $config
|
||||||
* @property \Model\Comment $comment
|
* @property \Model\Comment $comment
|
||||||
|
|||||||
Reference in New Issue
Block a user