PHP 8.2.31
Preview: ArbitraryParenthesesSpacingUnitTest.php Size: 2.74 KB
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php

<?php
/**
 * Unit test class for the ArbitraryParenthesesSpacing sniff.
 *
 * @author    Greg Sherwood <gsherwood@squiz.net>
 * @copyright 2006-2017 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
 */

namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace;

use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;

/**
 * Unit test class for the ArbitraryParenthesesSpacing sniff.
 *
 * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ArbitraryParenthesesSpacingSniff
 */
final class ArbitraryParenthesesSpacingUnitTest extends AbstractSniffUnitTest
{


    /**
     * Returns the lines where errors should occur.
     *
     * The key of the array should represent the line number and the value
     * should represent the number of errors that should occur on that line.
     *
     * @param string $testFile The name of the file being tested.
     *
     * @return array<int, int>
     */
    public function getErrorList($testFile='')
    {
        switch ($testFile) {
        case 'ArbitraryParenthesesSpacingUnitTest.1.inc':
            return [
                64  => 4,
                66  => 1,
                68  => 1,
                69  => 1,
                72  => 2,
                73  => 2,
                77  => 2,
                81  => 4,
                90  => 4,
                94  => 1,
                95  => 1,
                97  => 1,
                100 => 2,
                101 => 2,
                104 => 2,
                107 => 2,
                109 => 4,
                111 => 4,
                113 => 2,
                115 => 2,
                123 => 1,
                125 => 2,
                127 => 1,
                131 => 1,
                133 => 1,
                137 => 1,
                139 => 2,
                141 => 1,
                144 => 1,
                146 => 1,
                163 => 1,
                164 => 1,
                165 => 1,
            ];

        default:
            return [];
        }//end switch

    }//end getErrorList()


    /**
     * Returns the lines where warnings should occur.
     *
     * The key of the array should represent the line number and the value
     * should represent the number of warnings that should occur on that line.
     *
     * @param string $testFile The name of the file being tested.
     *
     * @return array<int, int>
     */
    public function getWarningList($testFile='')
    {
        switch ($testFile) {
        case 'ArbitraryParenthesesSpacingUnitTest.1.inc':
            return [
                55 => 1,
                56 => 1,
            ];

        default:
            return [];
        }//end switch

    }//end getWarningList()


}//end class

Directory Contents

Dirs: 0 × Files: 52

Name Size Perms Modified Actions
4.52 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
4.44 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
122 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.74 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.32 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.20 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.32 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.20 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
202 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
175 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
125 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
61 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
58 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
72 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
69 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.72 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.70 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.86 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
202 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
253 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
83 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
62 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
68 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
74 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
79 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.84 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
233 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
215 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.46 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
548 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
523 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
141 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
127 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.17 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.81 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.75 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
98 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.61 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
26.40 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
26.52 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.84 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.88 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
19.64 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
19.62 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
563 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
556 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
27 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
5.32 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.45 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.42 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
109 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.87 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).