Skip to content

Commit

Permalink
Code. Psalm fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Apr 2, 2024
1 parent 4bfc38f commit f737031
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/spbc-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ function changedPluginName(){

/**
* Register stylesheet and scripts.
* @psalm-suppress InvalidArgument
*/
function spbc_enqueue_scripts($hook)
{
Expand Down
6 changes: 6 additions & 0 deletions lib/CleantalkSP/SpbctWP/Scanner/ScannerQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,12 @@ public function auto_cure_backup() // phpcs:ignore PSR1.Methods.CamelCapsMethodN
return spbc_backup__files_with_signatures(true);
}

/**
* @param int $offset
* @param int $amount
* @return \CleantalkSP\Common\Scanner\HeuristicAnalyser\Structures\Verdict|string[]|array
* @psalm-suppress UnusedVariable
*/
public function auto_cure($offset = 0, $amount = 1) // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
{
$offset = isset($offset) ? $offset : $this->offset;
Expand Down

0 comments on commit f737031

Please sign in to comment.