Skip to content

Commit 48abb03

Browse files
committed
change folder design
1 parent 5c43044 commit 48abb03

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

phpinsights.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,18 @@
9797
UnusedParameterSniff::class => [
9898
'exclude' => [
9999
'src/Objects/Geometry.php',
100-
'src/Objects/GeometryCast.php',
100+
'src/GeometryCast.php',
101101
],
102102
],
103103
MethodPerClassLimitSniff::class => [
104104
'exclude' => [
105-
'src/Builders/SpatialBuilder.php',
105+
'src/SpatialBuilder.php',
106106
'src/Objects/Geometry.php',
107107
],
108108
],
109109
ClassTraitAndInterfaceLengthSniff::class => [
110110
'exclude' => [
111-
'src/Builders/SpatialBuilder.php',
111+
'src/SpatialBuilder.php',
112112
],
113113
],
114114
FunctionLengthSniff::class => [

src/Objects/GeometryCast.php renamed to src/GeometryCast.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
declare(strict_types=1);
44

5-
namespace MatanYadaev\EloquentSpatial\Objects;
5+
namespace MatanYadaev\EloquentSpatial;
66

77
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
88
use Illuminate\Database\Eloquent\Model;
99
use Illuminate\Database\Query\Expression;
1010
use MatanYadaev\EloquentSpatial\Exceptions\InvalidTypeException;
11+
use MatanYadaev\EloquentSpatial\Objects\Geometry;
1112

1213
class GeometryCast implements CastsAttributes
1314
{

src/Objects/Geometry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use JsonSerializable;
1313
use MatanYadaev\EloquentSpatial\Exceptions\InvalidTypeException;
1414
use MatanYadaev\EloquentSpatial\Factory;
15+
use MatanYadaev\EloquentSpatial\GeometryCast;
1516

1617
abstract class Geometry implements Castable, Arrayable, Jsonable, JsonSerializable
1718
{

src/Builders/SpatialBuilder.php renamed to src/SpatialBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace MatanYadaev\EloquentSpatial\Builders;
5+
namespace MatanYadaev\EloquentSpatial;
66

77
use Illuminate\Database\Eloquent\Builder;
88
use Illuminate\Database\Query\Expression;

tests/Builders/SpatialBuilderTest.php renamed to tests/SpatialBuilderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

3-
namespace MatanYadaev\EloquentSpatial\Tests\Builders;
3+
namespace MatanYadaev\EloquentSpatial\Tests;
44

55
use Illuminate\Foundation\Testing\DatabaseMigrations;
66
use MatanYadaev\EloquentSpatial\Objects\LineString;
77
use MatanYadaev\EloquentSpatial\Objects\Point;
88
use MatanYadaev\EloquentSpatial\Objects\Polygon;
9-
use MatanYadaev\EloquentSpatial\Tests\TestCase;
109
use MatanYadaev\EloquentSpatial\Tests\TestModels\TestPlace;
1110

1211
class SpatialBuilderTest extends TestCase

tests/TestModels/TestPlace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
use Illuminate\Database\Eloquent\Factories\HasFactory;
66
use Illuminate\Database\Eloquent\Model;
7-
use MatanYadaev\EloquentSpatial\Builders\SpatialBuilder;
87
use MatanYadaev\EloquentSpatial\Objects\GeometryCollection;
98
use MatanYadaev\EloquentSpatial\Objects\LineString;
109
use MatanYadaev\EloquentSpatial\Objects\MultiLineString;
1110
use MatanYadaev\EloquentSpatial\Objects\MultiPoint;
1211
use MatanYadaev\EloquentSpatial\Objects\MultiPolygon;
1312
use MatanYadaev\EloquentSpatial\Objects\Point;
1413
use MatanYadaev\EloquentSpatial\Objects\Polygon;
14+
use MatanYadaev\EloquentSpatial\SpatialBuilder;
1515
use MatanYadaev\EloquentSpatial\Tests\TestFactories\TestPlaceFactory;
1616

1717
/**

0 commit comments

Comments
 (0)