From d6d0baea0e22a5e95dc551be605ffa9f192af058 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 12 Aug 2021 12:47:06 -0500 Subject: [PATCH] Minor - Format code --- plugin/ims_lti/edit.php | 1 + plugin/ims_lti/src/Form/FrmAdd.php | 16 ++++++++-------- plugin/ims_lti/src/Form/FrmEdit.php | 9 +++++---- plugin/lti_provider/src/Form/FrmEdit.php | 7 +++---- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/plugin/ims_lti/edit.php b/plugin/ims_lti/edit.php index 71f894dc36..1fdeb471cc 100644 --- a/plugin/ims_lti/edit.php +++ b/plugin/ims_lti/edit.php @@ -1,5 +1,6 @@ baseTool = $tool; - $this->toolIsV1p3 = $this->baseTool && - !empty($this->baseTool->publicKey) && - !empty($this->baseTool->getClientId()) && - !empty($this->baseTool->getLoginUrl()) && - !empty($this->baseTool->getRedirectUrl()); + $this->toolIsV1p3 = $this->baseTool + && !empty($this->baseTool->publicKey) + && !empty($this->baseTool->getClientId()) + && !empty($this->baseTool->getLoginUrl()) + && !empty($this->baseTool->getRedirectUrl()); } /** @@ -96,8 +96,8 @@ class FrmAdd extends FormValidator ['iframe' => 'iframe', 'window' => 'window'] ); - if (null === $this->baseTool || - ($this->baseTool && !$this->baseTool->isActiveDeepLinking()) + if (null === $this->baseTool + || ($this->baseTool && !$this->baseTool->isActiveDeepLinking()) ) { $this->addCheckBox( 'deep_linking', @@ -157,7 +157,7 @@ class FrmAdd extends FormValidator 'replacement_user_id', [ $plugin->get_lang('ReplacementUserId'), - $plugin->get_lang('ReplacementUserIdHelp') + $plugin->get_lang('ReplacementUserIdHelp'), ], false ); diff --git a/plugin/ims_lti/src/Form/FrmEdit.php b/plugin/ims_lti/src/Form/FrmEdit.php index 2d9e360ea5..4e2fb99958 100644 --- a/plugin/ims_lti/src/Form/FrmEdit.php +++ b/plugin/ims_lti/src/Form/FrmEdit.php @@ -6,6 +6,7 @@ namespace Chamilo\PluginBundle\Form; use Category; use Chamilo\PluginBundle\Entity\ImsLti\ImsLtiTool; use Display; +use Exception; use FormValidator; use ImsLti; use ImsLtiPlugin; @@ -105,8 +106,8 @@ class FrmEdit extends FormValidator ['iframe' => 'iframe', 'window' => 'window'] ); - if (null === $parent || - (null !== $parent && !$parent->isActiveDeepLinking()) + if (null === $parent + || (null !== $parent && !$parent->isActiveDeepLinking()) ) { $this->addCheckBox( 'deep_linking', @@ -165,7 +166,7 @@ class FrmEdit extends FormValidator 'replacement_user_id', [ $plugin->get_lang('ReplacementUserId'), - $plugin->get_lang('ReplacementUserIdHelp') + $plugin->get_lang('ReplacementUserIdHelp'), ], false ); @@ -186,7 +187,7 @@ class FrmEdit extends FormValidator } /** - * @throws \Exception + * @throws Exception */ public function setDefaultValues() { diff --git a/plugin/lti_provider/src/Form/FrmEdit.php b/plugin/lti_provider/src/Form/FrmEdit.php index ca01234245..3988840296 100644 --- a/plugin/lti_provider/src/Form/FrmEdit.php +++ b/plugin/lti_provider/src/Form/FrmEdit.php @@ -4,6 +4,7 @@ namespace Chamilo\PluginBundle\LtiProvider\Form; use Chamilo\PluginBundle\Entity\LtiProvider\Platform; +use Exception; use FormValidator; use LtiProviderPlugin; @@ -32,10 +33,8 @@ class FrmEdit extends FormValidator /** * Build the form. - * - * @param bool $globalMode */ - public function build(bool $globalMode = true) + public function build() { $plugin = LtiProviderPlugin::create(); $this->addHeader($plugin->get_lang('ConnectionDetails')); @@ -55,7 +54,7 @@ class FrmEdit extends FormValidator } /** - * @throws \Exception + * @throws Exception */ public function setDefaultValues(): void {