@@ -130,15 +130,15 @@ public function refactor(Node $node): ?array
130130 * Remove the right-side-most params by reference or empty from `list()`,
131131 * since they are not needed anymore.
132132 */
133- private function removeStaleParams (List_ | Array_ $ node , int $ rightSideRemovableParamsCount ): void
133+ private function removeStaleParams (List_ | Array_ $ node , int $ rightSideRemovableParamsCount ): void
134134 {
135135 $ nodeItemsCount = count ($ node ->items );
136136 if ($ rightSideRemovableParamsCount > 0 ) {
137137 array_splice ($ node ->items , $ nodeItemsCount - $ rightSideRemovableParamsCount );
138138 }
139139 }
140140
141- private function shouldSkipAssign (Assign $ assign , List_ | Array_ $ arrayOrList ): bool
141+ private function shouldSkipAssign (Assign $ assign , List_ | Array_ $ arrayOrList ): bool
142142 {
143143 if (! $ assign ->expr instanceof Variable) {
144144 return true ;
@@ -264,7 +264,7 @@ private function hasAllItemsByRef(array $items): bool
264264 /**
265265 * Return the key inside the ArrayItem, if provided, or the position otherwise
266266 */
267- private function getArrayItemKey (ArrayItem $ arrayItem , int | string $ position ): int | string
267+ private function getArrayItemKey (ArrayItem $ arrayItem , int | string $ position ): int | string
268268 {
269269 if ($ arrayItem ->key instanceof String_) {
270270 return $ arrayItem ->key ->value ;
@@ -285,7 +285,7 @@ private function createAssignRefWithArrayDimFetch(
285285 Variable $ assignVariable ,
286286 Variable $ exprVariable ,
287287 array $ nestedArrayIndexes ,
288- string | int $ arrayIndex
288+ string | int $ arrayIndex
289289 ): Expression {
290290 $ nestedExprVariable = $ exprVariable ;
291291 foreach ($ nestedArrayIndexes as $ nestedArrayIndex ) {
@@ -301,7 +301,7 @@ private function createAssignRefWithArrayDimFetch(
301301 }
302302
303303 /**
304- * @param array<(ArrayItem | null)> $arrayItems
304+ * @param array<(ArrayItem| null)> $arrayItems
305305 * @return ArrayItem[]
306306 */
307307 private function getItemsByRef (array $ arrayItems , int $ condition ): array
0 commit comments