@@ -674,9 +674,9 @@ public function addError(
674674 string $ error ,
675675 ?int $ stackPtr ,
676676 string $ code ,
677- array $ data= [],
678- int $ severity= 0 ,
679- bool $ fixable= false
677+ array $ data = [],
678+ int $ severity = 0 ,
679+ bool $ fixable = false
680680 ) {
681681 if ($ stackPtr === null ) {
682682 $ line = 1 ;
@@ -708,9 +708,9 @@ public function addWarning(
708708 string $ warning ,
709709 ?int $ stackPtr ,
710710 string $ code ,
711- array $ data= [],
712- int $ severity= 0 ,
713- bool $ fixable= false
711+ array $ data = [],
712+ int $ severity = 0 ,
713+ bool $ fixable = false
714714 ) {
715715 if ($ stackPtr === null ) {
716716 $ line = 1 ;
@@ -741,8 +741,8 @@ public function addErrorOnLine(
741741 string $ error ,
742742 int $ line ,
743743 string $ code ,
744- array $ data= [],
745- int $ severity= 0
744+ array $ data = [],
745+ int $ severity = 0
746746 ) {
747747 return $ this ->addMessage (true , $ error , $ line , 1 , $ code , $ data , $ severity , false );
748748
@@ -765,8 +765,8 @@ public function addWarningOnLine(
765765 string $ warning ,
766766 int $ line ,
767767 string $ code ,
768- array $ data= [],
769- int $ severity= 0
768+ array $ data = [],
769+ int $ severity = 0
770770 ) {
771771 return $ this ->addMessage (false , $ warning , $ line , 1 , $ code , $ data , $ severity , false );
772772
@@ -791,8 +791,8 @@ public function addFixableError(
791791 string $ error ,
792792 int $ stackPtr ,
793793 string $ code ,
794- array $ data= [],
795- int $ severity= 0
794+ array $ data = [],
795+ int $ severity = 0
796796 ) {
797797 $ recorded = $ this ->addError ($ error , $ stackPtr , $ code , $ data , $ severity , true );
798798 if ($ recorded === true && $ this ->fixer ->enabled === true ) {
@@ -822,8 +822,8 @@ public function addFixableWarning(
822822 string $ warning ,
823823 int $ stackPtr ,
824824 string $ code ,
825- array $ data= [],
826- int $ severity= 0
825+ array $ data = [],
826+ int $ severity = 0
827827 ) {
828828 $ recorded = $ this ->addWarning ($ warning , $ stackPtr , $ code , $ data , $ severity , true );
829829 if ($ recorded === true && $ this ->fixer ->enabled === true ) {
@@ -2264,7 +2264,7 @@ public function isReference(int $stackPtr)
22642264 * @return string The token contents.
22652265 * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified position does not exist.
22662266 */
2267- public function getTokensAsString ($ start , $ length , bool $ origContent= false )
2267+ public function getTokensAsString ($ start , $ length , bool $ origContent = false )
22682268 {
22692269 if (is_int ($ start ) === false || isset ($ this ->tokens [$ start ]) === false ) {
22702270 throw new RuntimeException ('The $start position for getTokensAsString() must exist in the token stack ' );
@@ -2324,10 +2324,10 @@ public function getTokensAsString($start, $length, bool $origContent=false)
23242324 public function findPrevious (
23252325 $ types ,
23262326 int $ start ,
2327- ?int $ end= null ,
2328- bool $ exclude= false ,
2329- ?string $ value= null ,
2330- bool $ local= false
2327+ ?int $ end = null ,
2328+ bool $ exclude = false ,
2329+ ?string $ value = null ,
2330+ bool $ local = false
23312331 ) {
23322332 $ types = (array ) $ types ;
23332333
@@ -2405,10 +2405,10 @@ public function findPrevious(
24052405 public function findNext (
24062406 $ types ,
24072407 int $ start ,
2408- ?int $ end= null ,
2409- bool $ exclude= false ,
2410- ?string $ value= null ,
2411- bool $ local= false
2408+ ?int $ end = null ,
2409+ bool $ exclude = false ,
2410+ ?string $ value = null ,
2411+ bool $ local = false
24122412 ) {
24132413 $ types = (array ) $ types ;
24142414
@@ -2451,7 +2451,7 @@ public function findNext(
24512451 *
24522452 * @return int
24532453 */
2454- public function findStartOfStatement (int $ start , $ ignore= null )
2454+ public function findStartOfStatement (int $ start , $ ignore = null )
24552455 {
24562456 $ startTokens = Tokens::BLOCK_OPENERS ;
24572457 $ startTokens [T_OPEN_SHORT_ARRAY ] = true ;
@@ -2642,7 +2642,7 @@ public function findStartOfStatement(int $start, $ignore=null)
26422642 *
26432643 * @return int
26442644 */
2645- public function findEndOfStatement (int $ start , $ ignore= null )
2645+ public function findEndOfStatement (int $ start , $ ignore = null )
26462646 {
26472647 $ endTokens = [
26482648 T_COLON => true ,
@@ -2769,7 +2769,7 @@ public function findEndOfStatement(int $start, $ignore=null)
27692769 * FALSE when no matching token could be found between the start of
27702770 * the line and the start token.
27712771 */
2772- public function findFirstOnLine ($ types , int $ start , bool $ exclude= false , ?string $ value= null )
2772+ public function findFirstOnLine ($ types , int $ start , bool $ exclude = false , ?string $ value = null )
27732773 {
27742774 if (is_array ($ types ) === false ) {
27752775 $ types = [$ types ];
@@ -2860,7 +2860,7 @@ public function hasCondition(int $stackPtr, $types)
28602860 *
28612861 * @return int|false
28622862 */
2863- public function getCondition (int $ stackPtr , $ type , bool $ first= true )
2863+ public function getCondition (int $ stackPtr , $ type , bool $ first = true )
28642864 {
28652865 // Check for the existence of the token.
28662866 if (isset ($ this ->tokens [$ stackPtr ]) === false ) {
0 commit comments