Skip to content

Commit

Permalink
order imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Yarysh committed Dec 1, 2023
1 parent 9f4b255 commit 3b3d4fb
Show file tree
Hide file tree
Showing 21 changed files with 51 additions and 51 deletions.
4 changes: 2 additions & 2 deletions src/BoundingBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace GeoJson;

use function count;

Check failure on line 7 in src/BoundingBox.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Header blocks must be separated by a single blank line
use GeoJson\Exception\UnserializationException;

Check failure on line 8 in src/BoundingBox.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

The class-based use imports must follow the namespace declaration in the file header

Check failure on line 8 in src/BoundingBox.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Use statements should be sorted alphabetically. The first wrong one is GeoJson\Exception\UnserializationException.
use InvalidArgumentException;
use JsonSerializable;

use function count;
use function is_array;

Check failure on line 11 in src/BoundingBox.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Similar statements must be grouped together inside header blocks; the first "use function" statement was found on line 7
use function is_float;
use function is_int;

Check failure on line 13 in src/BoundingBox.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Header blocks must be separated by a single blank line
use JsonSerializable;

Check failure on line 14 in src/BoundingBox.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Similar statements must be grouped together inside header blocks; the first "use" statement was found on line 8

/**
* BoundingBox object.
Expand Down
4 changes: 2 additions & 2 deletions src/CoordinateReferenceSystem/CoordinateReferenceSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use BadMethodCallException;
use GeoJson\Exception\UnserializationException;
use GeoJson\JsonUnserializable;
use JsonSerializable;

use function is_array;

use function is_object;
use JsonSerializable;
use function sprintf;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/UnserializationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace GeoJson\Exception;

use RuntimeException;

use function get_class;

use function get_debug_type;
use function gettype;
use function is_object;
use RuntimeException;
use function sprintf;

class UnserializationException extends RuntimeException implements Exception
Expand Down
10 changes: 5 additions & 5 deletions src/Feature/FeatureCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

namespace GeoJson\Feature;

use function array_map;
use function array_merge;
use function array_values;
use ArrayIterator;
use function count;
use Countable;
use GeoJson\BoundingBox;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

use GeoJson\GeoJson;
use InvalidArgumentException;
use IteratorAggregate;
use Traversable;

use function array_map;
use function array_merge;
use function array_values;
use function count;

/**
* Collection of Feature objects.
*
Expand Down
4 changes: 2 additions & 2 deletions src/GeoJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace GeoJson;

use function array_map;

Check failure on line 7 in src/GeoJson.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Header blocks must be separated by a single blank line
use ArrayObject;

Check failure on line 8 in src/GeoJson.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

The class-based use imports must follow the namespace declaration in the file header

Check failure on line 8 in src/GeoJson.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Use statements should be sorted alphabetically. The first wrong one is ArrayObject.
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use GeoJson\Exception\UnserializationException;
use JsonSerializable;

use function array_map;
use function is_array;

Check failure on line 12 in src/GeoJson.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Similar statements must be grouped together inside header blocks; the first "use function" statement was found on line 7
use function is_object;
use JsonSerializable;
use function sprintf;
use function strncmp;

Expand Down
10 changes: 5 additions & 5 deletions src/Geometry/GeometryCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

namespace GeoJson\Geometry;

use function array_map;
use function array_merge;
use function array_values;
use ArrayIterator;
use function count;
use Countable;
use GeoJson\BoundingBox;

use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use InvalidArgumentException;
use IteratorAggregate;
use Traversable;

use function array_map;
use function array_merge;
use function array_values;
use function count;

/**
* Collection of Geometry objects.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Geometry/LineString.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace GeoJson\Geometry;

use function count;
use GeoJson\BoundingBox;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use InvalidArgumentException;

use function count;
use InvalidArgumentException;

/**
* LineString geometry object.
Expand Down
6 changes: 3 additions & 3 deletions src/Geometry/LinearRing.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace GeoJson\Geometry;

use function count;
use function end;
use GeoJson\BoundingBox;

use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use InvalidArgumentException;

use function count;
use function end;
use function reset;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Geometry/MultiLineString.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace GeoJson\Geometry;

use function array_map;
use GeoJson\BoundingBox;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

use function array_map;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

/**
* MultiLineString geometry object.
Expand Down
4 changes: 2 additions & 2 deletions src/Geometry/MultiPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace GeoJson\Geometry;

use function array_map;
use GeoJson\BoundingBox;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

use function array_map;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

/**
* MultiPoint geometry object.
Expand Down
4 changes: 2 additions & 2 deletions src/Geometry/MultiPolygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace GeoJson\Geometry;

use function array_map;
use GeoJson\BoundingBox;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

use function array_map;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;

/**
* MultiPolygon geometry object.
Expand Down
4 changes: 2 additions & 2 deletions src/Geometry/Point.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace GeoJson\Geometry;

use function count;
use GeoJson\BoundingBox;
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use InvalidArgumentException;

use function count;
use InvalidArgumentException;
use function is_float;
use function is_int;

Expand Down
6 changes: 3 additions & 3 deletions tests/BoundingBoxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace GeoJson\Tests;

use function func_get_args;
use GeoJson\BoundingBox;
use GeoJson\Exception\UnserializationException;
use GeoJson\JsonUnserializable;
use InvalidArgumentException;
use function json_decode;

use PHPUnit\Framework\TestCase;
use stdClass;

use function func_get_args;
use function json_decode;

class BoundingBoxTest extends TestCase
{
public function testIsJsonSerializable(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/CoordinateReferenceSystem/LinkedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use GeoJson\CoordinateReferenceSystem\Linked;
use GeoJson\Exception\UnserializationException;
use PHPUnit\Framework\TestCase;

use function is_subclass_of;

use function json_decode;
use PHPUnit\Framework\TestCase;

class LinkedTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/CoordinateReferenceSystem/NamedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use GeoJson\CoordinateReferenceSystem\CoordinateReferenceSystem;
use GeoJson\CoordinateReferenceSystem\Named;
use GeoJson\Exception\UnserializationException;
use PHPUnit\Framework\TestCase;

use function is_subclass_of;

use function json_decode;
use PHPUnit\Framework\TestCase;

class NamedTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/FeatureCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
use GeoJson\Geometry\Point;
use GeoJson\Tests\BaseGeoJsonTest;
use InvalidArgumentException;
use stdClass;

use function is_subclass_of;

use function iterator_to_array;
use function json_decode;
use stdClass;

class FeatureCollectionTest extends BaseGeoJsonTest
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/FeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use GeoJson\GeoJson;
use GeoJson\Geometry\Point;
use GeoJson\Tests\BaseGeoJsonTest;
use stdClass;

use function is_subclass_of;

use function json_decode;
use stdClass;

class FeatureTest extends BaseGeoJsonTest
{
Expand Down
6 changes: 3 additions & 3 deletions tests/GeoJsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
use GeoJson\GeoJson;
use GeoJson\Geometry\Point;
use GeoJson\JsonUnserializable;
use JsonSerializable;
use PHPUnit\Framework\TestCase;

use function get_class;
use function gettype;

use function is_object;
use function json_decode;
use JsonSerializable;
use PHPUnit\Framework\TestCase;

class GeoJsonTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Geometry/GeometryCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
use GeoJson\Geometry\Point;
use GeoJson\Tests\BaseGeoJsonTest;
use InvalidArgumentException;
use stdClass;

use function is_subclass_of;

use function iterator_to_array;
use function json_decode;
use stdClass;

class GeometryCollectionTest extends BaseGeoJsonTest
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Geometry/GeometryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

use GeoJson\GeoJson;
use GeoJson\Geometry\Geometry;
use PHPUnit\Framework\TestCase;

use function is_subclass_of;

use PHPUnit\Framework\TestCase;

class GeometryTest extends TestCase
{
public function testIsSubclassOfGeoJson(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/Geometry/PointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace GeoJson\Tests\Geometry;

use function func_get_args;
use GeoJson\GeoJson;
use GeoJson\Geometry\Geometry;
use GeoJson\Geometry\Point;
use GeoJson\Tests\BaseGeoJsonTest;
use InvalidArgumentException;
use stdClass;

use function func_get_args;
use function is_subclass_of;
use function json_decode;
use stdClass;

class PointTest extends BaseGeoJsonTest
{
Expand Down

0 comments on commit 3b3d4fb

Please sign in to comment.