phpcs:set Universal.WhiteSpace.PrecisionAlignment indent 3

<?php
/*
 * File with space based indentation.
 * Using an explicit custom indent value of 3 spaces.
 */
   function exampleFunctionA() {} // OK: [3 spaces].

/*
 * OK: sets of three spaces.
 */
      function exampleFunctionB() {}

/*
 * OK: sets of three spaces.
 */
         function exampleFunctionC() {}

   /**
    * OK: Doc comment is indented with 3 spaces + one space for the star alignment.
    *
    * @var string	<= Warning.
    * @access private
    */

   /*
      OK: Multi-line comment is indented with 3 spaces + 3 spaces for the text alignment.
   <= Warning, no star, but also not indented by multiples of 3 spaces.
      OK: Another line of text.
    */

   /*
    * OK: Multi-line comment is indented with 3 spaces + one space for the star alignment.
    *
    * <= Warning.
    */

   function exampleFunctionD() {}   // Warning: [3 spaces][extra space].
      function exampleFunctionE() {}  // Warning: [3 spaces][extra space][extra space].
      function exampleFunctionF() {} // Warning: [3 spaces][3 spaces][extra space].

   $object->functioncall()
      -> chained()
      -> anothermethod();

   $object->functioncall()
         -> chained()        // Warning: [3 spaces][3 spaces][extra space].
         -> anothermethod(); // Warning: [3 spaces][3 spaces][extra space].

   ?> <!-- Warning: two spaces. -->

   <p>
      Warning: Some inline HTML with precision alignment.
   </p>

<?php // Warning: one space.

// Testing empty line within a comment.
/*

*/

// Testing that incorrectly aligned docblocks and multi-line inline comments do not trigger errors.
// The incorrectly star alignment is not the concern of this sniff.
   /**
   * Provision some options
   */

   /*
   * Provision some options
   */

?>

<script type="text/javascript">
   /*
    * Multi-line javascript comment should not trigger this sniff.
    */
   alert('OK');
      alert('bad'); <!-- Warning. -->
</script>

<?php

// phpcs:set Universal.WhiteSpace.PrecisionAlignment indent
