Skip to content

Commit

Permalink
Formats code to PSR-12 standard
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#737

Signed-off-by: Jhon <[email protected]>
  • Loading branch information
JhonathanLepidus committed Jan 20, 2025
1 parent 88d80a4 commit 6f9f99f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AuthorVersionPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public function addWorkflowModifications($hookName, $params)
$request = PKPApplication::get()->getRequest();
$requestedPage = $templateMgr->getTemplateVars('requestedPage');

if($requestedPage == 'authorDashboard') {
if ($requestedPage == 'authorDashboard') {
$templateMgr->registerFilter("output", array($this, 'addVersionJustificationButtonFilter'));
}

if($requestedPage == 'workflow') {
if ($requestedPage == 'workflow') {
$templateMgr->registerFilter("output", array($this, 'addVersionJustificationButtonFilter'));
$templateMgr->registerFilter("output", array($this, 'addDeleteVersionButtonFilter'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function appGet($q)
->where('setting_name', '=', 'versionJustification');
};

if($this->submittedVersion) {
if ($this->submittedVersion) {
$q->whereIn('nvp.publication_id', $submittedVersionSubQuery);
} else {
$q->whereNotIn('nvp.publication_id', $submittedVersionSubQuery);
Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @defgroup plugins_generic_authorVersion
*/
Expand Down

0 comments on commit 6f9f99f

Please sign in to comment.