Skip to content

Commit

Permalink
Fix missing and wrong variable names.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoGrano committed Feb 14, 2020
1 parent 464a8a4 commit c28bec1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions audit.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* This source file is released under GPLv3 license by copyright holders.
* Please see LICENSE file for more specific licensing terms.
* @copyright 2019 (c) Lamia Oy
* @copyright 2019-2020 (c) Lamia Oy
* @author Niko Granö <[email protected]>
*
*/
Expand All @@ -30,7 +30,7 @@ public function launch()

public function catchException(\Magento\Framework\App\Bootstrap $bootstrap, \Exception $exception)
{
// Just pass thye control to Bootstrap.
// Just pass to have control to Bootstrap.
return false;
}
}
Expand Down Expand Up @@ -264,7 +264,7 @@ final class Scanner {
public function __construct(
Version $version
) {
$this->version = $version;
$this->moduleVersion = $version;
}

/**
Expand Down Expand Up @@ -293,7 +293,7 @@ public function getEntries(): array
}
$this->entries[] = new Entry(
(string)$data[0],
$this->version->getModuleVersion((string)$data[0]),
$this->moduleVersion->getModuleVersion((string)$data[0]),
(string)$data[1],
(string)$data[2],
$this->getFrontnameFromRoute((string)$data[2]),
Expand Down Expand Up @@ -404,6 +404,8 @@ final class AuditFailedException extends \Exception

public function __construct(Entry $entry, int $type, $message = "", $code = 0, Throwable $previous = null)
{
$this->entry = $entry;
$this->type = $type;
parent::__construct($message, $code, $previous);
}

Expand Down

0 comments on commit c28bec1

Please sign in to comment.