Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jul 24, 2024
1 parent 22f22cf commit a4256f5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function buildOrphanedEntityProcessor(): void
$affectedRows = 0;
$rows = DB::table('publications AS p')
->join('publication_settings AS ps', 'ps.publication_id', '=', 'p.publication_id')
->leftJoin('issues AS i', DB::raw('CAST(i.issue_id AS CHAR(20))'), '=', 'ps.setting_value')
->leftJoin('issues AS i', 'ps.setting_value', '=', DB::raw('CAST(i.issue_id AS CHAR(20))'))
->where('ps.setting_name', 'issueId')
->whereNull('i.issue_id')
->get(['p.submission_id', 'p.publication_id', 'ps.setting_value']);
Expand Down
10 changes: 5 additions & 5 deletions classes/observers/events/UsageEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class UsageEvent extends \PKP\observers\events\UsageEvent
public function __construct(
int $assocType,
Context $context,
Submission $submission = null,
Representation $galley = null,
SubmissionFile $submissionFile = null,
Issue $issue = null,
IssueGalley $issueGalley = null
?Submission $submission = null,
?Representation $galley = null,
?SubmissionFile $submissionFile = null,
?Issue $issue = null,
?IssueGalley $issueGalley = null
) {
$this->issue = $issue;
$this->issueGalley = $issueGalley;
Expand Down
6 changes: 3 additions & 3 deletions classes/section/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getAbbrev(?string $locale): string|array|null
return $this->getData('abbrev', $locale);
}

public function setAbbrev(string|array $abbrev, string $locale = null): void
public function setAbbrev(string|array $abbrev, ?string $locale = null): void
{
$this->setData('abbrev', $abbrev, $locale);
}
Expand All @@ -51,7 +51,7 @@ public function getPolicy(?string $locale): string|array|null
return $this->getData('policy', $locale);
}

public function setPolicy(string|array $policy, string $locale = null): void
public function setPolicy(string|array $policy, ?string $locale = null): void
{
$this->setData('policy', $policy, $locale);
}
Expand Down Expand Up @@ -186,7 +186,7 @@ public function getIdentifyType(?string $locale): string|array|null
/**
* Set string identifying type of items in this section.
*/
public function setIdentifyType(string|array $identifyType, string $locale = null): void
public function setIdentifyType(string|array $identifyType, ?string $locale = null): void
{
$this->setData('identifyType', $identifyType, $locale);
}
Expand Down
2 changes: 1 addition & 1 deletion pages/issue/IssueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function userCanViewGalley($request)
* will be displayed.
* @param bool $withSubscriptionDetails Should include the subscription related information into the template
*/
public static function _setupIssueTemplate(Request $request, Issue $issue, Journal $journal = null, $showToc = false, $withSubscriptionDetails = true)
public static function _setupIssueTemplate(Request $request, Issue $issue, ?Journal $journal = null, $showToc = false, $withSubscriptionDetails = true)
{
$journal ??= $request->getJournal();
$templateMgr = TemplateManager::getManager($request);
Expand Down
4 changes: 2 additions & 2 deletions tools/resolveAgencyDuplicates.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

class resolveAgencyDuplicates extends \PKP\cliTool\CommandLineTool
{
private string|null $command = null;
private string|null $agency_name = null;
private ?string $command = null;
private ?string $agency_name = null;
private bool $forceFlag = false;
/**
* List of potential agencies to choose from along with related fields for resolution.
Expand Down

0 comments on commit a4256f5

Please sign in to comment.