Passed
Push — 4.x ( 17e0c5...e9b635 )
by Doug
07:44
created
src/EPSG/Import/AddNewConstantsVisitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                     $comment .= "/**\n";
49 49
                     $helpLines = explode("\n", trim(wordwrap($row['constant_help'], 112)));
50 50
                     foreach ($helpLines as $helpLine) {
51
-                        $comment .= '* ' . $helpLine . "\n";
51
+                        $comment .= '* '.$helpLine."\n";
52 52
                     }
53 53
                     if ($row['deprecated']) {
54 54
                         $comment .= "* @deprecated\n";
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     $comment .= " */\n";
57 57
                 }
58 58
 
59
-                $constName = strtoupper('EPSG_' . $name);
59
+                $constName = strtoupper('EPSG_'.$name);
60 60
                 $constValue = is_string($row['constant_value']) ? new Node\Scalar\String_($row['constant_value']) : new Node\Scalar\LNumber($row['constant_value']);
61 61
                 $constComment = new Doc($comment);
62 62
                 $const = new Node\Const_($constName, $constValue);
Please login to merge, or discard this patch.
src/EPSG/Import/ASTPrettyPrinter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@
 block discarded – undo
17 17
 {
18 18
     protected function pStmt_ClassConst(ClassConst $node): string
19 19
     {
20
-        return parent::pStmt_ClassConst($node) . "\n";
20
+        return parent::pStmt_ClassConst($node)."\n";
21 21
     }
22 22
 
23 23
     protected function pStmt_Property(Property $node): string
24 24
     {
25
-        return parent::pStmt_Property($node) . "\n";
25
+        return parent::pStmt_Property($node)."\n";
26 26
     }
27 27
 
28 28
     protected function pStmt_ClassMethod(ClassMethod $node): string
29 29
     {
30
-        return parent::pStmt_ClassMethod($node) . "\n";
30
+        return parent::pStmt_ClassMethod($node)."\n";
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/EPSG/Import/epsgImporter.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
 use PhpParser\NodeVisitor\CloningVisitor;
15 15
 use PhpParser\Parser\Php7;
16 16
 
17
-require __DIR__ . '/../../../vendor/autoload.php';
17
+require __DIR__.'/../../../vendor/autoload.php';
18 18
 
19 19
 /**
20 20
  * Imports raw EPSG Dataset from Postgres format.
21 21
  */
22
-$resDir = __DIR__ . '/../../../resources';
22
+$resDir = __DIR__.'/../../../resources';
23 23
 $srcDir = dirname(__DIR__, 2);
24 24
 
25 25
 createSQLiteDB($resDir);
@@ -29,21 +29,21 @@  discard block
 block discarded – undo
29 29
 function createSQLiteDB(string $resDir): void
30 30
 {
31 31
     //remove old file if any
32
-    if (file_exists($resDir . '/epsg/epsg.sqlite')) {
33
-        unlink($resDir . '/epsg/epsg.sqlite');
32
+    if (file_exists($resDir.'/epsg/epsg.sqlite')) {
33
+        unlink($resDir.'/epsg/epsg.sqlite');
34 34
     }
35 35
 
36 36
     $sqlite = new SQLite3(
37
-        $resDir . '/epsg/epsg.sqlite',
37
+        $resDir.'/epsg/epsg.sqlite',
38 38
         SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE
39 39
     );
40 40
     $sqlite->enableExceptions(true);
41 41
     $sqlite->exec('PRAGMA journal_mode=WAL'); //WAL is faster
42 42
 
43
-    $tableSchema = file_get_contents($resDir . '/epsg/PostgreSQL_Table_Script.sql');
43
+    $tableSchema = file_get_contents($resDir.'/epsg/PostgreSQL_Table_Script.sql');
44 44
     $sqlite->exec($tableSchema);
45 45
 
46
-    $tableData = file_get_contents($resDir . '/epsg/PostgreSQL_Data_Script.sql');
46
+    $tableData = file_get_contents($resDir.'/epsg/PostgreSQL_Data_Script.sql');
47 47
     $sqlite->exec($tableData);
48 48
 
49 49
     $sqlite->exec('VACUUM');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 function generateConstants(string $resDir, string $srcDir): void
55 55
 {
56 56
     $sqlite = new SQLite3(
57
-        $resDir . '/epsg/epsg.sqlite',
57
+        $resDir.'/epsg/epsg.sqlite',
58 58
         SQLITE3_OPEN_READONLY
59 59
     );
60 60
     $sqlite->enableExceptions(true);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     $result = $sqlite->query($sql);
78 78
 
79
-    updateFile($srcDir . '/UnitOfMeasure/UnitOfMeasure.php', $result);
79
+    updateFile($srcDir.'/UnitOfMeasure/UnitOfMeasure.php', $result);
80 80
 
81 81
     /*
82 82
      * Prime Meridians
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     $result = $sqlite->query($sql);
97 97
 
98
-    updateFile($srcDir . '/Datum/PrimeMeridian.php', $result);
98
+    updateFile($srcDir.'/Datum/PrimeMeridian.php', $result);
99 99
 
100 100
     /*
101 101
      * Ellipsoids
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             ";
116 116
     $result = $sqlite->query($sql);
117 117
 
118
-    updateFile($srcDir . '/Datum/Ellipsoid.php', $result);
118
+    updateFile($srcDir.'/Datum/Ellipsoid.php', $result);
119 119
 
120 120
     /*
121 121
      * Datums
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         ";
138 138
     $result = $sqlite->query($sql);
139 139
 
140
-    updateFile($srcDir . '/Datum/Datum.php', $result);
140
+    updateFile($srcDir.'/Datum/Datum.php', $result);
141 141
 
142 142
     /*
143 143
      * Coordinate systems
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         ";
158 158
     $result = $sqlite->query($sql);
159 159
 
160
-    updateFile($srcDir . '/CoordinateSystem/CoordinateSystem.php', $result);
160
+    updateFile($srcDir.'/CoordinateSystem/CoordinateSystem.php', $result);
161 161
 
162 162
     /*
163 163
      * Coordinate systems (cartesian)
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         ";
179 179
     $result = $sqlite->query($sql);
180 180
 
181
-    updateFile($srcDir . '/CoordinateSystem/Cartesian.php', $result);
181
+    updateFile($srcDir.'/CoordinateSystem/Cartesian.php', $result);
182 182
 
183 183
     /*
184 184
      * Coordinate systems (ellipsoidal)
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         ";
200 200
     $result = $sqlite->query($sql);
201 201
 
202
-    updateFile($srcDir . '/CoordinateSystem/Ellipsoidal.php', $result);
202
+    updateFile($srcDir.'/CoordinateSystem/Ellipsoidal.php', $result);
203 203
 
204 204
     /*
205 205
      * Coordinate systems (vertical)
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         ";
221 221
     $result = $sqlite->query($sql);
222 222
 
223
-    updateFile($srcDir . '/CoordinateSystem/Vertical.php', $result);
223
+    updateFile($srcDir.'/CoordinateSystem/Vertical.php', $result);
224 224
 
225 225
     /*
226 226
      * Coordinate systems (other)
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         ";
242 242
     $result = $sqlite->query($sql);
243 243
 
244
-    updateFile($srcDir . '/CoordinateSystem/CoordinateSystem.php', $result);
244
+    updateFile($srcDir.'/CoordinateSystem/CoordinateSystem.php', $result);
245 245
 
246 246
     /*
247 247
      * Coordinate reference systems (compound)
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
     $result = $sqlite->query($sql);
269 269
 
270
-    updateFile($srcDir . '/CoordinateReferenceSystem/Compound.php', $result);
270
+    updateFile($srcDir.'/CoordinateReferenceSystem/Compound.php', $result);
271 271
 
272 272
     /*
273 273
      * Coordinate reference systems (geocentric)
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 
294 294
     $result = $sqlite->query($sql);
295 295
 
296
-    updateFile($srcDir . '/CoordinateReferenceSystem/Geocentric.php', $result);
296
+    updateFile($srcDir.'/CoordinateReferenceSystem/Geocentric.php', $result);
297 297
 
298 298
     /*
299 299
      * Coordinate reference systems (geographic 2D)
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 
320 320
     $result = $sqlite->query($sql);
321 321
 
322
-    updateFile($srcDir . '/CoordinateReferenceSystem/Geographic2D.php', $result);
322
+    updateFile($srcDir.'/CoordinateReferenceSystem/Geographic2D.php', $result);
323 323
 
324 324
     /*
325 325
      * Coordinate reference systems (geographic 3D)
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 
346 346
     $result = $sqlite->query($sql);
347 347
 
348
-    updateFile($srcDir . '/CoordinateReferenceSystem/Geographic3D.php', $result);
348
+    updateFile($srcDir.'/CoordinateReferenceSystem/Geographic3D.php', $result);
349 349
 
350 350
     /*
351 351
      * Coordinate reference systems (projected)
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
     $result = $sqlite->query($sql);
373 373
 
374
-    updateFile($srcDir . '/CoordinateReferenceSystem/Projected.php', $result);
374
+    updateFile($srcDir.'/CoordinateReferenceSystem/Projected.php', $result);
375 375
 
376 376
     /*
377 377
      * Coordinate reference systems (vertical)
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
     $result = $sqlite->query($sql);
399 399
 
400
-    updateFile($srcDir . '/CoordinateReferenceSystem/Vertical.php', $result);
400
+    updateFile($srcDir.'/CoordinateReferenceSystem/Vertical.php', $result);
401 401
 
402 402
     /*
403 403
      * Coordinate reference systems (other)
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 
424 424
     $result = $sqlite->query($sql);
425 425
 
426
-    updateFile($srcDir . '/CoordinateReferenceSystem/CoordinateReferenceSystem.php', $result);
426
+    updateFile($srcDir.'/CoordinateReferenceSystem/CoordinateReferenceSystem.php', $result);
427 427
 
428 428
     /*
429 429
      * Coordinate operation methods
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 
448 448
     $result = $sqlite->query($sql);
449 449
 
450
-    updateFile($srcDir . '/CoordinateOperation/CoordinateOperationMethods.php', $result);
450
+    updateFile($srcDir.'/CoordinateOperation/CoordinateOperationMethods.php', $result);
451 451
 
452 452
     $sqlite->close();
453 453
 }
Please login to merge, or discard this patch.