for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the WordPress Standard project.
*
* Copyright (c) 2015-present LIN3S <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Configuration;
use LIN3S\WPFoundation\Configuration\Menus\Menus as BaseMenus;
use LIN3S\WPFoundation\Configuration\Translations\Translations;
/**
* @author Gorka Laucirica <[email protected]>
* @author Beñat Espiña <[email protected]>
final class Menus extends BaseMenus
{
private const MAIN = 'main-menu';
public function menus() : void
__construct()
register_nav_menus([
self::MAIN => Translations::trans('Main menu'),
]);
}
This check marks files that end in a newline character, i.e. an empy line.