* Remove construct from interface. * Fix wrong type hints. * Keep naming of variable in sync. * Also keep conditions format in sync. Relates: #71
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
|
namespace Typo3Update\Feature;
|
|
|
|
/*
|
|
* Copyright (C) 2017 Daniel Siepmann <coding@daniel-siepmann.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301, USA.
|
|
*/
|
|
|
|
use PHP_CodeSniffer_File as PhpCsFile;
|
|
use PHP_CodeSniffer_Sniff as PhpCsSniff;
|
|
|
|
/**
|
|
* See "Features" in documentation.
|
|
*/
|
|
interface FeatureInterface
|
|
{
|
|
/**
|
|
* Process like a PHPCS Sniff.
|
|
*
|
|
* @param PhpCsFile $phpcsFile The current PhpCsFile working with.
|
|
* @param int $stackPtr The current stack pointer.
|
|
* @param string $content The content detected to work with.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function process(PhpCsFile $phpcsFile, $stackPtr, $content);
|
|
}
|