Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta #62

Merged
merged 4 commits into from
May 1, 2024
Merged

Beta #62

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Controller/Adminhtml/Export/Trigger.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Tweakwise (https://www.tweakwise.com/) - All Rights Reserved
*
Expand Down Expand Up @@ -66,6 +67,7 @@ protected function createRefererRedirect()
if (!$redirectUrl) {
$redirectUrl = $this->_url->getUrl('adminhtml');
}

$resultRedirect->setUrl($redirectUrl);

return $resultRedirect;
Expand Down
20 changes: 10 additions & 10 deletions Model/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,63 +44,63 @@ public function __construct(LoggerInterface $log, State $state)
/**
* {@inheritdoc}
*/
public function emergency($message, array $context = [])
public function emergency($message, array $context = []): void
{
$this->log->emergency('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function alert($message, array $context = [])
public function alert($message, array $context = []): void
{
$this->log->alert('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function critical($message, array $context = [])
public function critical($message, array $context = []): void
{
$this->log->critical('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function error($message, array $context = [])
public function error($message, array $context = []): void
{
$this->log->error('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function warning($message, array $context = [])
public function warning($message, array $context = []): void
{
$this->log->warning('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function notice($message, array $context = [])
public function notice($message, array $context = []): void
{
$this->log->notice('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function info($message, array $context = [])
public function info($message, array $context = []): void
{
$this->log->info('[TweakWise] ' . $message, $context);
}

/**
* {@inheritdoc}
*/
public function debug($message, array $context = [])
public function debug($message, array $context = []): void
{
if ($this->enableDebugLog) {
$this->log->debug('[TweakWise] ' . $message, $context);
Expand All @@ -110,7 +110,7 @@ public function debug($message, array $context = [])
/**
* {@inheritdoc}
*/
public function log($level, $message, array $context = [])
public function log($level, $message, array $context = []): void
{
$this->log->log($level, '[TweakWise] ' . $message, $context);
}
Expand All @@ -121,7 +121,7 @@ public function log($level, $message, array $context = [])
* @param Exception $exception
* @throws Exception
*/
public function throwException(Exception $exception)
public function throwException(Exception $exception): void
{
$this->log->error($exception->getMessage());
throw $exception;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0 <8.3",
"php": "^8.0",
"laminas/laminas-http": "^2.15.0"
},
"require-dev": {
Expand Down
Loading