File tree Expand file tree Collapse file tree 16 files changed +26
-30
lines changed
tests/Feature/Translators Expand file tree Collapse file tree 16 files changed +26
-30
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Blueprint \Generators ;
4
4
5
- use Blueprint \Column ;
6
5
use Blueprint \Contracts \Generator ;
7
- use Blueprint \Controller ;
6
+ use Blueprint \Models \ Controller ;
8
7
use Illuminate \Support \Str ;
9
8
10
9
class ControllerGenerator implements Generator
@@ -23,7 +22,7 @@ public function output(array $tree): array
23
22
24
23
$ stub = $ this ->files ->get (STUBS_PATH . '/controller/class.stub ' );
25
24
26
- /** @var \Blueprint\Controller $controller */
25
+ /** @var \Blueprint\Models\ Controller $controller */
27
26
foreach ($ tree ['controllers ' ] as $ controller ) {
28
27
$ path = $ this ->getPath ($ controller );
29
28
$ this ->files ->put (
Original file line number Diff line number Diff line change 3
3
namespace Blueprint \Generators ;
4
4
5
5
use Blueprint \Contracts \Generator ;
6
- use Blueprint \Model ;
6
+ use Blueprint \Models \ Model ;
7
7
8
8
class FactoryGenerator implements Generator
9
9
{
@@ -23,7 +23,7 @@ public function output(array $tree): array
23
23
24
24
$ stub = $ this ->files ->get (STUBS_PATH . '/factory.stub ' );
25
25
26
- /** @var \Blueprint\Model $model */
26
+ /** @var \Blueprint\Models\ Model $model */
27
27
foreach ($ tree ['models ' ] as $ model ) {
28
28
$ path = $ this ->getPath ($ model );
29
29
$ this ->files ->put (
@@ -55,7 +55,7 @@ protected function buildDefinition(Model $model)
55
55
{
56
56
$ definition = '' ;
57
57
58
- /** @var \Blueprint\Column $column */
58
+ /** @var \Blueprint\Models\ Column $column */
59
59
foreach ($ model ->columns () as $ column ) {
60
60
if ($ column ->name () === 'id ' ) {
61
61
continue ;
Original file line number Diff line number Diff line change 3
3
namespace Blueprint \Generators ;
4
4
5
5
use Blueprint \Contracts \Generator ;
6
- use Blueprint \Model ;
6
+ use Blueprint \Models \ Model ;
7
7
use Illuminate \Support \Str ;
8
8
9
9
class MigrationGenerator implements Generator
@@ -24,7 +24,7 @@ public function output(array $tree): array
24
24
25
25
$ stub = $ this ->files ->get (STUBS_PATH . '/migration.stub ' );
26
26
27
- /** @var \Blueprint\Model $model */
27
+ /** @var \Blueprint\Models\ Model $model */
28
28
foreach ($ tree ['models ' ] as $ model ) {
29
29
$ path = $ this ->getPath ($ model );
30
30
$ this ->files ->put (
@@ -51,7 +51,7 @@ protected function buildDefinition(Model $model)
51
51
{
52
52
$ definition = '' ;
53
53
54
- /** @var \Blueprint\Column $column */
54
+ /** @var \Blueprint\Models\ Column $column */
55
55
foreach ($ model ->columns () as $ column ) {
56
56
$ dataType = $ column ->dataType ();
57
57
if ($ column ->name () === 'id ' ) {
Original file line number Diff line number Diff line change 2
2
3
3
namespace Blueprint \Generators ;
4
4
5
- use Blueprint \Column ;
6
5
use Blueprint \Contracts \Generator ;
7
- use Blueprint \Model ;
6
+ use Blueprint \Models \Column ;
7
+ use Blueprint \Models \Model ;
8
8
9
9
class ModelGenerator implements Generator
10
10
{
@@ -22,7 +22,7 @@ public function output(array $tree): array
22
22
23
23
$ stub = $ this ->files ->get (STUBS_PATH . '/model/class.stub ' );
24
24
25
- /** @var \Blueprint\Model $model */
25
+ /** @var \Blueprint\Models\ Model $model */
26
26
foreach ($ tree ['models ' ] as $ model ) {
27
27
$ path = $ this ->getPath ($ model );
28
28
$ this ->files ->put (
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function output(array $tree): array
23
23
24
24
$ stub = $ this ->files ->get (STUBS_PATH . '/event.stub ' );
25
25
26
- /** @var \Blueprint\Controller $controller */
26
+ /** @var \Blueprint\Models\ Controller $controller */
27
27
foreach ($ tree ['controllers ' ] as $ controller ) {
28
28
foreach ($ controller ->methods () as $ method => $ statements ) {
29
29
foreach ($ statements as $ statement ) {
Original file line number Diff line number Diff line change 2
2
3
3
namespace Blueprint \Generators \Statements ;
4
4
5
- use Blueprint \Column ;
6
5
use Blueprint \Contracts \Generator ;
7
- use Blueprint \Model ;
6
+ use Blueprint \Models \ Model ;
8
7
use Blueprint \Models \Statements \ValidateStatement ;
9
8
use Blueprint \Translators \Rules ;
10
9
use Illuminate \Support \Str ;
@@ -33,7 +32,7 @@ public function output(array $tree): array
33
32
34
33
$ this ->registerModels ($ tree ['models ' ]);
35
34
36
- /** @var \Blueprint\Controller $controller */
35
+ /** @var \Blueprint\Models\ Controller $controller */
37
36
foreach ($ tree ['controllers ' ] as $ controller ) {
38
37
foreach ($ controller ->methods () as $ method => $ statements ) {
39
38
foreach ($ statements as $ statement ) {
@@ -124,7 +123,7 @@ private function splitField($field)
124
123
125
124
private function validationRules (string $ qualifier , string $ column )
126
125
{
127
- /** @var Model $model */
126
+ /** @var \Blueprint\Models\ Model $model */
128
127
$ model = $ this ->modelForContext ($ qualifier );
129
128
130
129
if (!is_null ($ model ) && $ model ->hasColumn ($ column )) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function output(array $tree): array
23
23
24
24
$ stub = $ this ->files ->get (STUBS_PATH . '/job.stub ' );
25
25
26
- /** @var \Blueprint\Controller $controller */
26
+ /** @var \Blueprint\Models\ Controller $controller */
27
27
foreach ($ tree ['controllers ' ] as $ controller ) {
28
28
foreach ($ controller ->methods () as $ method => $ statements ) {
29
29
foreach ($ statements as $ statement ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function output(array $tree): array
23
23
24
24
$ stub = $ this ->files ->get (STUBS_PATH . '/mail.stub ' );
25
25
26
- /** @var \Blueprint\Controller $controller */
26
+ /** @var \Blueprint\Models\ Controller $controller */
27
27
foreach ($ tree ['controllers ' ] as $ controller ) {
28
28
foreach ($ controller ->methods () as $ method => $ statements ) {
29
29
foreach ($ statements as $ statement ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function output(array $tree): array
23
23
24
24
$ stub = $ this ->files ->get (STUBS_PATH . '/view.stub ' );
25
25
26
- /** @var \Blueprint\Controller $controller */
26
+ /** @var \Blueprint\Models\ Controller $controller */
27
27
foreach ($ tree ['controllers ' ] as $ controller ) {
28
28
foreach ($ controller ->methods () as $ method => $ statements ) {
29
29
foreach ($ statements as $ statement ) {
Original file line number Diff line number Diff line change 3
3
namespace Blueprint \Lexers ;
4
4
5
5
use Blueprint \Contracts \Lexer ;
6
- use Blueprint \Controller ;
7
- use Blueprint \Models \Statements \QueryStatement ;
8
- use Blueprint \Models \Statements \RenderStatement ;
6
+ use Blueprint \Models \Controller ;
9
7
10
8
class ControllerLexer implements Lexer
11
9
{
You can’t perform that action at this time.
0 commit comments