PHP 8.2.31
Preview: DocCommentAlignmentUnitTest.inc Size: 2.29 KB
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc

<?php
/**
* Some info about the class here
 *
 */
class MyClass
{
    /**
     * Some info about the function here.
     *
     *@return void
     */
    function myFunction() {}
}

/**
  *  Some info about the class here
  *
  */
class MyClass
{
    /**
      *Some info about the function here.
      *
      *  @return void
      */
    function myFunction() {}
}

/**
 * Some info about the class here
  *
*/
readonly class MyClass
{
    /**
     * Some info about the function here.
      *
    * @return void
     */
    function myFunction() {}
}

/** @var Database $mockedDatabase */
/** @var Container $mockedContainer */

function myFunction()
{
    echo 'hi';
    /**
        Comment here.
        */
}

/**
 * Creates a map of tokens => line numbers for each token.
 *
 * Long description with some points:
 *   - one
 *   - two
 *   - three
 *
 * @param array  &$tokens   The array of tokens to process.
 * @param object $tokenizer The tokenizer being used to
 *                          process this file.
 * @param string $eolChar   The EOL character to use for splitting strings.
 *
 * @return void
 */
function myFunction() {}

class MyClass2
{
    /**
       * Some info about the variable here.
     */
    var $x;
}

abstract class MyClass
{
    /**
* Property comment
   */
    readonly public string $prop;
}

/**
 * Some info about the enum here
  *
*/
enum Suits: string
{
    /**
      * Some info about the case here.
       */
    case HEARTS;
}

/** ************************************************************************
 * Example with no errors.
 **************************************************************************/
function example() {}

/**
  *  Some info about the class here.
    */
final class FinalClassWithFinalProp
{
    /**
   *Some info about the property here.
    *
     *  @var int
      */
    final $property = 10;
}

class AsymVisibility {
    /**
    * Stars should be aligned.
   */
    public(set) int $prop = 1;

    /**
      * Stars should be aligned.
       */
    protected(set) int $prop = 1;

    /**
     * Stars should be aligned.
     */
    private(set) int $prop = 1;
}

/**
  *  Some info about the class here.
    */
abstract class AbstractClassWithAbstractProp
{
    /**
   *Some info about the property here.
    *
     *  @var int
      */
    abstract $property {get;}
}

Directory Contents

Dirs: 0 × Files: 60

Name Size Perms Modified Actions
4.93 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
4.92 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.53 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.85 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.92 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
176 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
178 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
216 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
247 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
396 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
441 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.29 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.29 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.22 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.22 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.46 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
865 B 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
982 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1022 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
970 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1010 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
204 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
199 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
192 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
36 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
37 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
267 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
279 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
193 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
265 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
276 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.09 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
10.87 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.63 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
19.92 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
19.98 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
5.07 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.98 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.96 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.96 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.94 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.42 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
17.25 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
17.42 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
7.00 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
7.05 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.76 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
579 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
582 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
53 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.35 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.36 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.99 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
7.57 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
7.59 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.05 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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