|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`function.php 1`] = ` |
| 4 | +====================================options===================================== |
| 5 | +parsers: ["php"] |
| 6 | +phpVersion: "8.0" |
| 7 | +printWidth: 80 |
| 8 | +trailingComma: "all" |
| 9 | +trailingCommaPHP: false |
| 10 | + | printWidth |
| 11 | +=====================================input====================================== |
| 12 | +<?php |
| 13 | +
|
| 14 | +class f1 { |
| 15 | + function f2( |
| 16 | + int $classFunctionArgumentOne, |
| 17 | + ?float $classFunctionArgumentTwo, |
| 18 | + string $classFunctionArgumentThree, |
| 19 | + ) { |
| 20 | + return fn( |
| 21 | + $labdaFunctionArgumentOne, |
| 22 | + $labdaFunctionArgumentTwo, |
| 23 | + $labdaFunctionArgumentThree, |
| 24 | + $labdaFunctionArgumentFour, |
| 25 | + ) => true; |
| 26 | + } |
| 27 | +} |
| 28 | +
|
| 29 | +function f3( |
| 30 | + $standaloneFunctionArgumentOne, |
| 31 | + $standaloneFunctionArgumentTwo, |
| 32 | + $standaloneFunctionArgumentThree, |
| 33 | + $standaloneFunctionArgumentFour, |
| 34 | +) { |
| 35 | +} |
| 36 | +
|
| 37 | +f3( |
| 38 | + "abcdefghijklmnopqrstuvwxyz", |
| 39 | + "abcdefghijklmnopqrstuvwxyz", |
| 40 | + "abcdefghijklmnopqrstuvwxyz", |
| 41 | + "abcdefghijklmnopqrstuvwxyz", |
| 42 | +); |
| 43 | +
|
| 44 | +=====================================output===================================== |
| 45 | +<?php |
| 46 | +
|
| 47 | +class f1 |
| 48 | +{ |
| 49 | + function f2( |
| 50 | + int $classFunctionArgumentOne, |
| 51 | + ?float $classFunctionArgumentTwo, |
| 52 | + string $classFunctionArgumentThree |
| 53 | + ) { |
| 54 | + return fn( |
| 55 | + $labdaFunctionArgumentOne, |
| 56 | + $labdaFunctionArgumentTwo, |
| 57 | + $labdaFunctionArgumentThree, |
| 58 | + $labdaFunctionArgumentFour |
| 59 | + ) => true; |
| 60 | + } |
| 61 | +} |
| 62 | +
|
| 63 | +function f3( |
| 64 | + $standaloneFunctionArgumentOne, |
| 65 | + $standaloneFunctionArgumentTwo, |
| 66 | + $standaloneFunctionArgumentThree, |
| 67 | + $standaloneFunctionArgumentFour |
| 68 | +) { |
| 69 | +} |
| 70 | +
|
| 71 | +f3( |
| 72 | + "abcdefghijklmnopqrstuvwxyz", |
| 73 | + "abcdefghijklmnopqrstuvwxyz", |
| 74 | + "abcdefghijklmnopqrstuvwxyz", |
| 75 | + "abcdefghijklmnopqrstuvwxyz" |
| 76 | +); |
| 77 | +
|
| 78 | +================================================================================ |
| 79 | +`; |
| 80 | + |
| 81 | +exports[`function.php 2`] = ` |
| 82 | +====================================options===================================== |
| 83 | +parsers: ["php"] |
| 84 | +phpVersion: "8.0" |
| 85 | +printWidth: 80 |
| 86 | +trailingComma: "none" |
| 87 | +trailingCommaPHP: true |
| 88 | + | printWidth |
| 89 | +=====================================input====================================== |
| 90 | +<?php |
| 91 | +
|
| 92 | +class f1 { |
| 93 | + function f2( |
| 94 | + int $classFunctionArgumentOne, |
| 95 | + ?float $classFunctionArgumentTwo, |
| 96 | + string $classFunctionArgumentThree, |
| 97 | + ) { |
| 98 | + return fn( |
| 99 | + $labdaFunctionArgumentOne, |
| 100 | + $labdaFunctionArgumentTwo, |
| 101 | + $labdaFunctionArgumentThree, |
| 102 | + $labdaFunctionArgumentFour, |
| 103 | + ) => true; |
| 104 | + } |
| 105 | +} |
| 106 | +
|
| 107 | +function f3( |
| 108 | + $standaloneFunctionArgumentOne, |
| 109 | + $standaloneFunctionArgumentTwo, |
| 110 | + $standaloneFunctionArgumentThree, |
| 111 | + $standaloneFunctionArgumentFour, |
| 112 | +) { |
| 113 | +} |
| 114 | +
|
| 115 | +f3( |
| 116 | + "abcdefghijklmnopqrstuvwxyz", |
| 117 | + "abcdefghijklmnopqrstuvwxyz", |
| 118 | + "abcdefghijklmnopqrstuvwxyz", |
| 119 | + "abcdefghijklmnopqrstuvwxyz", |
| 120 | +); |
| 121 | +
|
| 122 | +=====================================output===================================== |
| 123 | +<?php |
| 124 | +
|
| 125 | +class f1 |
| 126 | +{ |
| 127 | + function f2( |
| 128 | + int $classFunctionArgumentOne, |
| 129 | + ?float $classFunctionArgumentTwo, |
| 130 | + string $classFunctionArgumentThree, |
| 131 | + ) { |
| 132 | + return fn( |
| 133 | + $labdaFunctionArgumentOne, |
| 134 | + $labdaFunctionArgumentTwo, |
| 135 | + $labdaFunctionArgumentThree, |
| 136 | + $labdaFunctionArgumentFour, |
| 137 | + ) => true; |
| 138 | + } |
| 139 | +} |
| 140 | +
|
| 141 | +function f3( |
| 142 | + $standaloneFunctionArgumentOne, |
| 143 | + $standaloneFunctionArgumentTwo, |
| 144 | + $standaloneFunctionArgumentThree, |
| 145 | + $standaloneFunctionArgumentFour, |
| 146 | +) { |
| 147 | +} |
| 148 | +
|
| 149 | +f3( |
| 150 | + "abcdefghijklmnopqrstuvwxyz", |
| 151 | + "abcdefghijklmnopqrstuvwxyz", |
| 152 | + "abcdefghijklmnopqrstuvwxyz", |
| 153 | + "abcdefghijklmnopqrstuvwxyz", |
| 154 | +); |
| 155 | +
|
| 156 | +================================================================================ |
| 157 | +`; |
0 commit comments