Skip to content

Commit 43b86b7

Browse files
committed
Apply php-cs-fixer
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent ec6191f commit 43b86b7

File tree

10 files changed

+361
-326
lines changed

10 files changed

+361
-326
lines changed

examples/create_shapefile.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* phpMyAdmin ShapeFile library
4-
* <https://github.com/phpmyadmin/shapefile/>
4+
* <https://github.com/phpmyadmin/shapefile/>.
55
*
66
* Copyright 2006-2007 Ovidio <ovidio AT users.sourceforge.net>
77
* Copyright 2016 Michal Čihař <michal@cihar.com>
@@ -24,16 +24,16 @@
2424

2525
require_once '../vendor/autoload.php';
2626

27-
$shp = new ShapeFile(1, array("xmin" => 464079.002268, "ymin" => 2120153.74792, "xmax" => 505213.52849, "ymax" => 2163205.70036));
27+
$shp = new ShapeFile(1, array('xmin' => 464079.002268, 'ymin' => 2120153.74792, 'xmax' => 505213.52849, 'ymax' => 2163205.70036));
2828

2929
$record0 = new ShapeRecord(1);
30-
$record0->addPoint(array("x" => 482131.764567, "y" => 2143634.39608));
30+
$record0->addPoint(array('x' => 482131.764567, 'y' => 2143634.39608));
3131

3232
$record1 = new ShapeRecord(1);
33-
$record1->addPoint(array("x" => 472131.764567, "y" => 2143634.39608));
33+
$record1->addPoint(array('x' => 472131.764567, 'y' => 2143634.39608));
3434

3535
$record2 = new ShapeRecord(1);
36-
$record2->addPoint(array("x" => 492131.764567, "y" => 2143634.39608));
36+
$record2->addPoint(array('x' => 492131.764567, 'y' => 2143634.39608));
3737

3838
$shp->addRecord($record0);
3939
$shp->addRecord($record1);
@@ -42,7 +42,7 @@
4242
$shp->setDBFHeader(
4343
array(
4444
array('ID', 'N', 8, 0),
45-
array('DESC', 'C', 50, 0)
45+
array('DESC', 'C', 50, 0),
4646
)
4747
);
4848

examples/read.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* phpMyAdmin ShapeFile library
4-
* <https://github.com/phpmyadmin/shapefile/>
4+
* <https://github.com/phpmyadmin/shapefile/>.
55
*
66
* Copyright 2006-2007 Ovidio <ovidio AT users.sourceforge.net>
77
* Copyright 2016 Michal Čihař <michal@cihar.com>
@@ -22,7 +22,7 @@
2222
use ShapeFile\ShapeFile;
2323

2424
/**
25-
* Displays content of given file
25+
* Displays content of given file.
2626
*
2727
* @param string $filename File to open
2828
*/
@@ -33,17 +33,17 @@ function display_file($filename)
3333

3434
$i = 1;
3535
foreach ($shp->records as $i => $record) {
36-
echo "<pre>";
36+
echo '<pre>';
3737
echo "Record No. $i:\n\n\n";
3838
// All the data related to the record
39-
echo "SHP Data = ";
39+
echo 'SHP Data = ';
4040
print_r($record->SHPData);
4141
print_r("\n\n\n");
4242
// All the information related to each record
43-
echo "DBF Data = ";
43+
echo 'DBF Data = ';
4444
print_r($record->DBFData);
4545
print_r("\n\n\n");
46-
echo "</pre>";
46+
echo '</pre>';
4747
}
4848

4949
echo "The ShapeFile was completely readed.<br />\n";

examples/read_point.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* phpMyAdmin ShapeFile library
4-
* <https://github.com/phpmyadmin/shapefile/>
4+
* <https://github.com/phpmyadmin/shapefile/>.
55
*
66
* Copyright 2006-2007 Ovidio <ovidio AT users.sourceforge.net>
77
* Copyright 2016 Michal Čihař <michal@cihar.com>

examples/read_polygon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* phpMyAdmin ShapeFile library
4-
* <https://github.com/phpmyadmin/shapefile/>
4+
* <https://github.com/phpmyadmin/shapefile/>.
55
*
66
* Copyright 2006-2007 Ovidio <ovidio AT users.sourceforge.net>
77
* Copyright 2016 Michal Čihař <michal@cihar.com>

0 commit comments

Comments
 (0)