@@ -1,243 +1,243 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$basedir = __DIR__ . '/'; |
|
3 | +$basedir = __DIR__.'/'; |
|
4 | 4 | |
5 | 5 | $return = [ |
6 | 6 | 'parameters' => [ |
7 | 7 | 'ignoreErrors' => [ |
8 | 8 | ['message' => '#^Call to function is_resource\(\) with string will always evaluate to false\.$#', |
9 | 9 | 'count' => 2, |
10 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AwsS3.php', |
|
10 | + 'path' => $basedir.'src/Gaufrette/Adapter/AwsS3.php', |
|
11 | 11 | |
12 | 12 | ], |
13 | 13 | ['message' => '#^Method Gaufrette\\\Adapter\\\AwsS3\\:\\:write\(\) should return bool\|int but returns string\.$#', |
14 | 14 | 'count' => 1, |
15 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AwsS3.php', |
|
15 | + 'path' => $basedir.'src/Gaufrette/Adapter/AwsS3.php', |
|
16 | 16 | |
17 | 17 | ], |
18 | 18 | ['message' => '#^Method Gaufrette\\\Adapter\\\AwsS3\\:\\:size\(\) should return int but returns false\.$#', |
19 | 19 | 'count' => 1, |
20 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AwsS3.php', |
|
20 | + 'path' => $basedir.'src/Gaufrette/Adapter/AwsS3.php', |
|
21 | 21 | |
22 | 22 | ], |
23 | 23 | ['message' => '#^Method Gaufrette\\\Adapter\\\AwsS3\\:\\:mimeType\(\) should return string but returns false\.$#', |
24 | 24 | 'count' => 1, |
25 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AwsS3.php', |
|
25 | + 'path' => $basedir.'src/Gaufrette/Adapter/AwsS3.php', |
|
26 | 26 | |
27 | 27 | ], |
28 | 28 | ['message' => '#^Parameter \\$options of method Gaufrette\\\Adapter\\\AzureBlobStorage\\:\\:deleteContainer\(\) has invalid typehint type MicrosoftAzure\\\Storage\\\Blob\\\Models\\\DeleteContainerOptions\.$#', |
29 | 29 | 'count' => 2, |
30 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
30 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
31 | 31 | |
32 | 32 | ], |
33 | 33 | ['message' => '#^Parameter \#2 \\$options of method MicrosoftAzure\\\Storage\\\Blob\\\Internal\\\IBlob\\:\\:deleteContainer\(\) expects MicrosoftAzure\\\Storage\\\Blob\\\Models\\\BlobServiceOptions\|null, MicrosoftAzure\\\Storage\\\Blob\\\Models\\\DeleteContainerOptions\|null given\.$#', |
34 | 34 | 'count' => 1, |
35 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
35 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
36 | 36 | |
37 | 37 | ], |
38 | 38 | ['message' => '#^Parameter \#4 \\$options of method MicrosoftAzure\\\Storage\\\Blob\\\Internal\\\IBlob\\:\\:createBlockBlob\(\) expects MicrosoftAzure\\\Storage\\\Blob\\\Models\\\CreateBlockBlobOptions\|null, MicrosoftAzure\\\Storage\\\Blob\\\Models\\\CreateBlobOptions given\.$#', |
39 | 39 | 'count' => 1, |
40 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
40 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
41 | 41 | |
42 | 42 | ], |
43 | 43 | ['message' => '#^Call to function is_resource\(\) with string will always evaluate to false\.$#', |
44 | 44 | 'count' => 1, |
45 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
45 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
46 | 46 | |
47 | 47 | ], |
48 | 48 | ['message' => '#^Method Gaufrette\\\Adapter\\\AzureBlobStorage\\:\\:write\(\) should return bool\|int but returns string\.$#', |
49 | 49 | 'count' => 1, |
50 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
50 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
51 | 51 | |
52 | 52 | ], |
53 | 53 | ['message' => '#^Parameter \#2 \\$prefix of method Gaufrette\\\Adapter\\\AzureBlobStorage\\:\\:fetchBlobs\(\) expects null, string given\.$#', |
54 | 54 | 'count' => 1, |
55 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
55 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
56 | 56 | |
57 | 57 | ], |
58 | 58 | ['message' => '#^Method Gaufrette\\\Adapter\\\AzureBlobStorage\\:\\:size\(\) should return int but returns false\.$#', |
59 | 59 | 'count' => 1, |
60 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
60 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
61 | 61 | |
62 | 62 | ], |
63 | 63 | ['message' => '#^Method Gaufrette\\\Adapter\\\AzureBlobStorage\\:\\:mimeType\(\) should return string but returns false\.$#', |
64 | 64 | 'count' => 1, |
65 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
65 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
66 | 66 | |
67 | 67 | ], |
68 | 68 | ['message' => '#^Method Gaufrette\\\Adapter\\\AzureBlobStorage\\:\\:checksum\(\) should return string but returns false\.$#', |
69 | 69 | 'count' => 1, |
70 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
70 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
71 | 71 | |
72 | 72 | ], |
73 | 73 | ['message' => '#^Cannot call method getBody\(\) on string\.$#', |
74 | 74 | 'count' => 1, |
75 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
75 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
76 | 76 | |
77 | 77 | ], |
78 | 78 | ['message' => '#^Strict comparison using \\!\\=\\= between null and null will always evaluate to false\.$#', |
79 | 79 | 'count' => 1, |
80 | - 'path' => $basedir . 'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
80 | + 'path' => $basedir.'src/Gaufrette/Adapter/AzureBlobStorage.php', |
|
81 | 81 | |
82 | 82 | ], |
83 | 83 | ['message' => '#^PHPDoc tag @throws with type Gaufrette\\\Adapter\\\RuntimeException is not subtype of Throwable$#', |
84 | 84 | 'count' => 3, |
85 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Ftp.php', |
|
85 | + 'path' => $basedir.'src/Gaufrette/Adapter/Ftp.php', |
|
86 | 86 | |
87 | 87 | ], |
88 | 88 | ['message' => '#^Call to function is_resource\(\) with string will always evaluate to false\.$#', |
89 | 89 | 'count' => 1, |
90 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GoogleCloudStorage.php', |
|
90 | + 'path' => $basedir.'src/Gaufrette/Adapter/GoogleCloudStorage.php', |
|
91 | 91 | |
92 | 92 | ], |
93 | 93 | ['message' => '#^Property Gaufrette\\\Adapter\\\GridFS\\:\\:\\$bucket has unknown class MongoDB\\\GridFS\\\Bucket as its type\.$#', |
94 | 94 | 'count' => 1, |
95 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
95 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
96 | 96 | |
97 | 97 | ], |
98 | 98 | ['message' => '#^Parameter $bucket of method Gaufrette\\\Adapter\\\GridFS\\:\\:__construct\(\) has invalid typehint type MongoDB\\\GridFS\\\Bucket\.$#', |
99 | 99 | 'count' => 2, |
100 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
100 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
101 | 101 | |
102 | 102 | ], |
103 | 103 | ['message' => '#^Call to method openDownloadStreamByName\(\) on an unknown class MongoDB\\\GridFS\\\Bucket\.$#', |
104 | 104 | 'count' => 1, |
105 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
105 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
106 | 106 | |
107 | 107 | ], |
108 | 108 | ['message' => '#^Caught class MongoDB\\\GridFS\\\Exception\\\FileNotFoundException not found\.$#', |
109 | 109 | 'count' => 2, |
110 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
110 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
111 | 111 | |
112 | 112 | ], |
113 | 113 | ['message' => '#^Call to method openUploadStream\(\) on an unknown class MongoDB\\\GridFS\\\Bucket\.$#', |
114 | 114 | 'count' => 2, |
115 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
115 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
116 | 116 | |
117 | 117 | ], |
118 | 118 | ['message' => '#^Unreachable statement - code above always terminates\.$#', |
119 | 119 | 'count' => 1, |
120 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
120 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
121 | 121 | |
122 | 122 | ], |
123 | 123 | ['message' => '#^Call to method downloadToStreamByName\(\) on an unknown class MongoDB\\\GridFS\\\Bucket\.$#', |
124 | 124 | 'count' => 1, |
125 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
125 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
126 | 126 | |
127 | 127 | ], |
128 | 128 | ['message' => '#^Call to method findOne\(\) on an unknown class MongoDB\\\GridFS\\\Bucket\.$#', |
129 | 129 | 'count' => 6, |
130 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
130 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
131 | 131 | |
132 | 132 | ], |
133 | 133 | ['message' => '#^Call to method find\(\) on an unknown class MongoDB\\\GridFS\\\Bucket\.$#', |
134 | 134 | 'count' => 2, |
135 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
135 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
136 | 136 | |
137 | 137 | ], |
138 | 138 | ['message' => '#^Call to method delete\(\) on an unknown class MongoDB\\\GridFS\\\Bucket\.$#', |
139 | 139 | 'count' => 1, |
140 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
140 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
141 | 141 | |
142 | 142 | ], |
143 | 143 | ['message' => '#^Method Gaufrette\\\Adapter\\\GridFS\\:\\:size\(\) should return int but returns false\.$#', |
144 | 144 | 'count' => 2, |
145 | - 'path' => $basedir . 'src/Gaufrette/Adapter/GridFS.php', |
|
145 | + 'path' => $basedir.'src/Gaufrette/Adapter/GridFS.php', |
|
146 | 146 | |
147 | 147 | ], |
148 | 148 | ['message' => '#^PHPDoc tag @param has invalid value \(\\$path\)\\: Unexpected token "\\$path", expected type at offset 74$#', |
149 | 149 | 'count' => 1, |
150 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Local.php', |
|
150 | + 'path' => $basedir.'src/Gaufrette/Adapter/Local.php', |
|
151 | 151 | |
152 | 152 | ], |
153 | 153 | ['message' => '#^PHPDoc tag @param has invalid value \(string The directory\'s path to delete\)\\: Unexpected token "The", expected variable at offset 25$#', |
154 | 154 | 'count' => 1, |
155 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Local.php', |
|
155 | + 'path' => $basedir.'src/Gaufrette/Adapter/Local.php', |
|
156 | 156 | |
157 | 157 | ], |
158 | 158 | ['message' => '#^If condition is always true\.$#', |
159 | 159 | 'count' => 1, |
160 | - 'path' => $basedir . 'src/Gaufrette/Adapter/OpenCloud.php', |
|
160 | + 'path' => $basedir.'src/Gaufrette/Adapter/OpenCloud.php', |
|
161 | 161 | |
162 | 162 | ], |
163 | 163 | ['message' => '#^Unreachable statement \\\- code above always terminates\.$#', |
164 | 164 | 'count' => 2, |
165 | - 'path' => $basedir . 'src/Gaufrette/Adapter/OpenCloud.php', |
|
165 | + 'path' => $basedir.'src/Gaufrette/Adapter/OpenCloud.php', |
|
166 | 166 | |
167 | 167 | ], |
168 | 168 | ['message' => '#^Call to an undefined method OpenCloud\\\Common\\\Base\\:\\:getName\(\)\.$#', |
169 | 169 | 'count' => 1, |
170 | - 'path' => $basedir . 'src/Gaufrette/Adapter/OpenCloud.php', |
|
170 | + 'path' => $basedir.'src/Gaufrette/Adapter/OpenCloud.php', |
|
171 | 171 | |
172 | 172 | ], |
173 | 173 | ['message' => '#^Method Gaufrette\\\Adapter\\\OpenCloud\\:\\:mtime\(\) should return bool\|int but returns string\.$#', |
174 | 174 | 'count' => 1, |
175 | - 'path' => $basedir . 'src/Gaufrette/Adapter/OpenCloud.php', |
|
175 | + 'path' => $basedir.'src/Gaufrette/Adapter/OpenCloud.php', |
|
176 | 176 | |
177 | 177 | ], |
178 | 178 | ['message' => '#^Method Gaufrette\\\Adapter\\\OpenCloud\\:\\:checksum\(\) should return string but returns false\.$#', |
179 | 179 | 'count' => 1, |
180 | - 'path' => $basedir . 'src/Gaufrette/Adapter/OpenCloud.php', |
|
180 | + 'path' => $basedir.'src/Gaufrette/Adapter/OpenCloud.php', |
|
181 | 181 | |
182 | 182 | ], |
183 | 183 | ['message' => '#^Constant NET_SFTP_TYPE_DIRECTORY not found\.$#', |
184 | 184 | 'count' => 1, |
185 | - 'path' => $basedir . 'src/Gaufrette/Adapter/PhpseclibSftp.php', |
|
185 | + 'path' => $basedir.'src/Gaufrette/Adapter/PhpseclibSftp.php', |
|
186 | 186 | |
187 | 187 | ], |
188 | 188 | ['message' => '#^PHPDoc tag @param has invalid value \(\\$key\)\\: Unexpected token "\\$key", expected type at offset 161$#', |
189 | 189 | 'count' => 1, |
190 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Zip.php', |
|
190 | + 'path' => $basedir.'src/Gaufrette/Adapter/Zip.php', |
|
191 | 191 | |
192 | 192 | ], |
193 | 193 | ['message' => '#^If condition is always true\.$#', |
194 | 194 | 'count' => 1, |
195 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Zip.php', |
|
195 | + 'path' => $basedir.'src/Gaufrette/Adapter/Zip.php', |
|
196 | 196 | |
197 | 197 | ], |
198 | 198 | ['message' => '#^PHPDoc tag @param has invalid value \(\\$key\)\\: Unexpected token "\\$key", expected type at offset 82$#', |
199 | 199 | 'count' => 1, |
200 | - 'path' => $basedir . 'src/Gaufrette/FilesystemInterface.php', |
|
200 | + 'path' => $basedir.'src/Gaufrette/FilesystemInterface.php', |
|
201 | 201 | |
202 | 202 | ], |
203 | 203 | ['message' => '#^PHPDoc tag @param has invalid value \(\\$key\)\\: Unexpected token "\\$key", expected type at offset 68$#', |
204 | 204 | 'count' => 1, |
205 | - 'path' => $basedir . 'src/Gaufrette/FilesystemInterface.php', |
|
205 | + 'path' => $basedir.'src/Gaufrette/FilesystemInterface.php', |
|
206 | 206 | |
207 | 207 | ], |
208 | 208 | ['message' => '#^Method Gaufrette\\\Stream\\\InMemoryBuffer\\:\\:stat\(\) should return array but returns false\.$#', |
209 | 209 | 'count' => 1, |
210 | - 'path' => $basedir . 'src/Gaufrette/Stream/InMemoryBuffer.php', |
|
210 | + 'path' => $basedir.'src/Gaufrette/Stream/InMemoryBuffer.php', |
|
211 | 211 | |
212 | 212 | ], |
213 | 213 | ['message' => '#^Method Gaufrette\\\Stream\\\Local\\:\\:read\(\) should return string but returns false\.$#', |
214 | 214 | 'count' => 1, |
215 | - 'path' => $basedir . 'src/Gaufrette/Stream/Local.php', |
|
215 | + 'path' => $basedir.'src/Gaufrette/Stream/Local.php', |
|
216 | 216 | |
217 | 217 | ], |
218 | 218 | ['message' => '#^Method Gaufrette\\\Stream\\\Local\\:\\:write\(\) should return int but returns false\.$#', |
219 | 219 | 'count' => 1, |
220 | - 'path' => $basedir . 'src/Gaufrette/Stream/Local.php', |
|
220 | + 'path' => $basedir.'src/Gaufrette/Stream/Local.php', |
|
221 | 221 | |
222 | 222 | ], |
223 | 223 | ['message' => '#^Method Gaufrette\\\Stream\\\Local\\:\\:tell\(\) should return int but returns false\.$#', |
224 | 224 | 'count' => 1, |
225 | - 'path' => $basedir . 'src/Gaufrette/Stream/Local.php', |
|
225 | + 'path' => $basedir.'src/Gaufrette/Stream/Local.php', |
|
226 | 226 | |
227 | 227 | ], |
228 | 228 | ['message' => '#^Method Gaufrette\\\Stream\\\Local\\:\\:stat\(\) should return array but returns false\.$#', |
229 | 229 | 'count' => 1, |
230 | - 'path' => $basedir . 'src/Gaufrette/Stream/Local.php', |
|
230 | + 'path' => $basedir.'src/Gaufrette/Stream/Local.php', |
|
231 | 231 | |
232 | 232 | ], |
233 | 233 | ['message' => '#^Parameter \#2 \\\$callback of function array_filter expects callable\(mixed, mixed\)\\: bool, \'strlen\' given\.$#', |
234 | 234 | 'count' => 1, |
235 | - 'path' => $basedir . 'src/Gaufrette/Util/Path.php', |
|
235 | + 'path' => $basedir.'src/Gaufrette/Util/Path.php', |
|
236 | 236 | |
237 | 237 | ], |
238 | 238 | ['message' => '#^Method Gaufrette\\\Util\\\Size\\:\\:fromResource\(\) should return string but returns int\.$#', |
239 | 239 | 'count' => 1, |
240 | - 'path' => $basedir . 'src/Gaufrette/Util/Size.php', |
|
240 | + 'path' => $basedir.'src/Gaufrette/Util/Size.php', |
|
241 | 241 | |
242 | 242 | ], |
243 | 243 | ], |
@@ -249,32 +249,32 @@ discard block |
||
249 | 249 | $return['parameters']['ignoreErrors'] = array_merge($return['parameters']['ignoreErrors'], [ |
250 | 250 | ['message' => '#^Property Gaufrette\\\Adapter\\\Flysystem\\:\\:\\$config has unknown class Gaufrette\\\Adapter\\\Config as its type\.$#', |
251 | 251 | 'count' => 1, |
252 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Flysystem.php', |
|
252 | + 'path' => $basedir.'src/Gaufrette/Adapter/Flysystem.php', |
|
253 | 253 | |
254 | 254 | ], |
255 | 255 | ['message' => '#^Parameter $config of method Gaufrette\\\Adapter\\\Flysystem\\:\\:__construct\(\) has invalid typehint type Gaufrette\\\Adapter\\\Config\.$#', |
256 | 256 | 'count' => 1, |
257 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Flysystem.php', |
|
257 | + 'path' => $basedir.'src/Gaufrette/Adapter/Flysystem.php', |
|
258 | 258 | |
259 | 259 | ], |
260 | 260 | ['message' => '#^Property Gaufrette\\\Adapter\\\Flysystem\\:\\:\\$config \(Gaufrette\\\Adapter\\\Config\) does not accept League\\\Flysystem\\\Config\.$#', |
261 | 261 | 'count' => 1, |
262 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Flysystem.php', |
|
262 | + 'path' => $basedir.'src/Gaufrette/Adapter/Flysystem.php', |
|
263 | 263 | |
264 | 264 | ], |
265 | 265 | ['message' => '#^Parameter \#3 \\$config of method League\\\Flysystem\\\AdapterInterface\\:\\:write\(\) expects League\\\Flysystem\\\Config, Gaufrette\\\Adapter\\\Config given\.$#', |
266 | 266 | 'count' => 1, |
267 | - 'path' => $basedir . 'src/Gaufrette/Adapter/Flysystem.php', |
|
267 | + 'path' => $basedir.'src/Gaufrette/Adapter/Flysystem.php', |
|
268 | 268 | |
269 | 269 | ], |
270 | 270 | ]); |
271 | 271 | |
272 | 272 | $return['parameters']['excludePaths']['analyse'] = [ |
273 | - $basedir . 'src/Gaufrette/Adapter/FlysystemV2V3.php', |
|
273 | + $basedir.'src/Gaufrette/Adapter/FlysystemV2V3.php', |
|
274 | 274 | ]; |
275 | 275 | } else { |
276 | 276 | $return['parameters']['excludePaths'] = [ |
277 | - $basedir . 'src/Gaufrette/Adapter/Flysystem.php', |
|
277 | + $basedir.'src/Gaufrette/Adapter/Flysystem.php', |
|
278 | 278 | ]; |
279 | 279 | } |
280 | 280 |