Skip to content

Commit

Permalink
Merge branch 'netz98:develop' into phpstan-l1
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Jul 20, 2024
2 parents e953305 + 5236884 commit df4c893
Show file tree
Hide file tree
Showing 218 changed files with 1,266 additions and 351 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ act.secrets
# Local Magento src
/magento

# phpDocumentor
/docs/
20 changes: 20 additions & 0 deletions phpdoc.dist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpdocumentor
configVersion="3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://www.phpdoc.org"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd"
>
<setting name="template.color" value="blue"/>
<paths>
<output>docs/api</output>
<cache>docs/cache</cache>
</paths>
<version number="3.0.0">
<api>
<source dsn=".">
<path>src</path>
</source>
</api>
</version>
</phpdocumentor>
2 changes: 1 addition & 1 deletion readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The command should execute successfully and show you the version number of N98-M

.. code-block:: sh
n98-magerun version 1.97.0 by netz98 new media GmbH
n98-magerun version 2.3.0 by valantic CEC
You now have successfully installed Magerun! You can tailor the installation further like installing it system-wide and
enable autocomplete - read on for more information about these and other features.
Expand Down
7 changes: 6 additions & 1 deletion src/N98/Magento/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
use Symfony\Component\EventDispatcher\EventDispatcher;
use UnexpectedValueException;

/**
* Class Application
*
* @package N98\Magento
*/
class Application extends BaseApplication
{
/**
Expand Down Expand Up @@ -480,7 +485,7 @@ public function getHelp()

public function getLongVersion()
{
return parent::getLongVersion() . ' by <info>netz98 GmbH</info>';
return parent::getLongVersion() . ' by <info>valantic CEC</info>';
}

/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/AbstractMagentoStoreConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\Question;

/**
* Class AbstractMagentoStoreConfigCommand
*
* @package N98\Magento\Command
*/
abstract class AbstractMagentoStoreConfigCommand extends AbstractMagentoCommand
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/DisableNotificationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

use N98\Magento\Command\AbstractMagentoStoreConfigCommand;

/**
* Toggle admin notification command
*
* @package N98\Magento\Command\Admin
*/
class DisableNotificationsCommand extends AbstractMagentoStoreConfigCommand
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

use N98\Magento\Command\AbstractMagentoCommand;

/**
* Class AbstractAdminUserCommand
*
* @package N98\Magento\Command\Admin\User
*/
abstract class AbstractAdminUserCommand extends AbstractMagentoCommand
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/ChangePasswordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\Question;

/**
* Change admin user password command
*
* @package N98\Magento\Command\Admin\User
*/
class ChangePasswordCommand extends AbstractAdminUserCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/ChangeStatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Change admin user status command
*
* @package N98\Magento\Command\Admin\User
*/
class ChangeStatusCommand extends AbstractAdminUserCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/CreateUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\Question;

/**
* Create admin user command
*
* @package N98\Magento\Command\Admin\User
*/
class CreateUserCommand extends AbstractAdminUserCommand
{
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion src/N98/Magento/Command/Admin/User/DeleteUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
use Symfony\Component\Console\Question\ConfirmationQuestion;

/**
* Class DeleteUserCommand
* Delete admin user password command
*
* @package N98\Magento\Command\Admin\User
*/
class DeleteUserCommand extends AbstractAdminUserCommand
{
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* List admin user password command
*
* @package N98\Magento\Command\Admin\User
*/
class ListCommand extends AbstractAdminUserCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/LockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Lock admin user password command
*
* @package N98\Magento\Command\Admin\User
*/
class LockCommand extends AbstractAdminUserCommand
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/LockdownCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;

/**
* Lockdown admin user password command
*
* @package N98\Magento\Command\Admin\User
*/
class LockdownCommand extends LockCommand
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Admin/User/UnlockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;

/**
* Unlock admin user password command
*
* @package N98\Magento\Command\Admin\User
*/
class UnlockCommand extends AbstractAdminUserCommand
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Cache/AbstractCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
use N98\Magento\Command\AbstractMagentoCommand;
use RuntimeException;

/**
* Class AbstractCacheCommand
*
* @package N98\Magento\Command\Cache
*/
class AbstractCacheCommand extends AbstractMagentoCommand
{
/**
Expand Down
14 changes: 12 additions & 2 deletions src/N98/Magento/Command/Cache/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Clean cache command
*
* @package N98\Magento\Command\Cache
*/
class CleanCommand extends AbstractCacheCommand
{
protected function configure()
Expand All @@ -30,8 +35,14 @@ protected function configure()
)
->setDescription('Clean magento cache')
;
}

$help = <<<HELP
/**
* {@inheritdoc}
*/
public function getHelp(): string
{
return <<<HELP
Cleans expired cache entries.
If you would like to clean only one cache type use like:
Expand All @@ -48,7 +59,6 @@ protected function configure()
--reinit Reinitialise the config cache after cleaning (Default)
--no-reinit Don't reinitialise the config cache after cleaning
HELP;
$this->setHelp($help);
}

/**
Expand Down
11 changes: 4 additions & 7 deletions src/N98/Magento/Command/Cache/Dir/FlushCommand.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<?php
/**
* this file is part of magerun
*
* @author Tom Klingenberg <https://github.com/ktomk>
*/

namespace N98\Magento\Command\Cache\Dir;

Expand All @@ -15,9 +10,11 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* Class FlushCommand
* Flush cache directory command
*
* @package N98\Magento\Command\Cache\Dir
*
* @package N98\Magento\Command\Cache
* @author Tom Klingenberg (https://github.com/ktomk)
*/
class FlushCommand extends AbstractMagentoCommand
{
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Cache/DisableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Disable cache command
*
* @package N98\Magento\Command\Cache
*/
class DisableCommand extends AbstractCacheCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Cache/EnableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Enable cache command
*
* @package N98\Magento\Command\Cache
*/
class EnableCommand extends AbstractCacheCommand
{
protected function configure()
Expand Down
14 changes: 12 additions & 2 deletions src/N98/Magento/Command/Cache/FlushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Flush cache command
*
* @package N98\Magento\Command\Cache
*/
class FlushCommand extends AbstractCacheCommand
{
protected function configure()
Expand All @@ -29,8 +34,14 @@ protected function configure()
)
->setDescription('Flush magento cache storage')
;
}

$help = <<<HELP
/**
* {@inheritdoc}
*/
public function getHelp(): string
{
return <<<HELP
Flush the entire cache.
$ n98-magerun.phar cache:flush [--reinit --no-reinit]
Expand All @@ -39,7 +50,6 @@ protected function configure()
--reinit Reinitialise the config cache after flushing (Default)
--no-reinit Don't reinitialise the config cache after flushing
HELP;
$this->setHelp($help);
}

/**
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Cache/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* List cache command
*
* @package N98\Magento\Command\Cache
*/
class ListCommand extends AbstractCacheCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Cache/ReportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Report cache command
*
* @package N98\Magento\Command\Cache
*/
class ReportCommand extends AbstractCacheCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Cache/ViewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Validator\Exception\RuntimeException;

/**
* View cache command
*
* @package N98\Magento\Command\Cache
*/
class ViewCommand extends AbstractCacheCommand
{
protected function configure()
Expand Down
5 changes: 5 additions & 0 deletions src/N98/Magento/Command/Category/Create/DummyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\Question;

/**
* Create category dummy command
*
* @package N98\Magento\Command\Category\Create
*/
class DummyCommand extends AbstractMagentoCommand
{
public const DEFAULT_CATEGORY_NAME = "My Awesome Category";
Expand Down
2 changes: 1 addition & 1 deletion src/N98/Magento/Command/Cms/Banner/ToggleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* Class ToggleCommand
* Toggle CMS banner command
*
* Only testable with closed source enterprise edition
*
Expand Down
2 changes: 1 addition & 1 deletion src/N98/Magento/Command/Cms/Block/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* CMS Block ListCommand
* List CMS block command
*
* @package N98\Magento\Command\Cms\Block
*/
Expand Down
2 changes: 1 addition & 1 deletion src/N98/Magento/Command/Cms/Block/ToggleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* CMS Block ToggleCommand
* Toggle CMS block command
*
* @package N98\Magento\Command\Cms\Block
*/
Expand Down
Loading

0 comments on commit df4c893

Please sign in to comment.