Completed
Push — master ( ab4a80...f7d512 )
by Maurício
16s queued 14s
created
tests/ShapeFileTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @dataProvider provideFiles
45 45
      */
46
-    public function testLoad(string $filename, int $records, int|null $parts): void
46
+    public function testLoad(string $filename, int $records, int | null $parts): void
47 47
     {
48 48
         $shp = new ShapeFile(ShapeType::POINT);
49 49
         $shp->loadFromFile($filename);
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function testCreate(): void
223 223
     {
224
-        if (! ShapeFile::supportsDbase()) {
224
+        if (!ShapeFile::supportsDbase()) {
225 225
             $this->markTestSkipped('dbase extension missing');
226 226
         }
227 227
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function testDelete(): void
239 239
     {
240
-        if (! ShapeFile::supportsDbase()) {
240
+        if (!ShapeFile::supportsDbase()) {
241 241
             $this->markTestSkipped('dbase extension missing');
242 242
         }
243 243
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public function testAdd(): void
261 261
     {
262
-        if (! ShapeFile::supportsDbase()) {
262
+        if (!ShapeFile::supportsDbase()) {
263 263
             $this->markTestSkipped('dbase extension missing');
264 264
         }
265 265
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 
341 341
         $items = ['numparts', 'numpoints'];
342 342
         foreach ($items as $item) {
343
-            if (! isset($record->shpData[$item])) {
343
+            if (!isset($record->shpData[$item])) {
344 344
                 continue;
345 345
             }
346 346
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
             -1,
408 408
             $shp->getIndexFromDBFData('CNTRY_NAME', 'nonexisting'),
409 409
         );
410
-        if (! ShapeFile::supportsDbase()) {
410
+        if (!ShapeFile::supportsDbase()) {
411 411
             return;
412 412
         }
413 413
 
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 class Util
34 34
 {
35
-    private static bool|null $littleEndian = null;
35
+    private static bool | null $littleEndian = null;
36 36
 
37 37
     /**
38 38
      * Reads data.
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @param string       $type type for unpack()
41 41
      * @param string|false $data Data to process
42 42
      */
43
-    public static function loadData(string $type, string|false $data): mixed
43
+    public static function loadData(string $type, string | false $data): mixed
44 44
     {
45 45
         if ($data === false || $data === '') {
46 46
             return false;
Please login to merge, or discard this patch.