@@ -59,95 +59,95 @@ |
||
59 | 59 | */ |
60 | 60 | public function register() |
61 | 61 | { |
62 | - $this->app->singleton('artomator.publish', function ($app) { |
|
62 | + $this->app->singleton('artomator.publish', function($app) { |
|
63 | 63 | return new GeneratorPublishCommand(); |
64 | 64 | }); |
65 | 65 | |
66 | - $this->app->singleton('artomator.api', function ($app) { |
|
66 | + $this->app->singleton('artomator.api', function($app) { |
|
67 | 67 | return new APIGeneratorCommand(); |
68 | 68 | }); |
69 | 69 | |
70 | - $this->app->singleton('artomator.scaffold', function ($app) { |
|
70 | + $this->app->singleton('artomator.scaffold', function($app) { |
|
71 | 71 | return new ScaffoldGeneratorCommand(); |
72 | 72 | }); |
73 | 73 | |
74 | - $this->app->singleton('artomator.publish.layout', function ($app) { |
|
74 | + $this->app->singleton('artomator.publish.layout', function($app) { |
|
75 | 75 | return new LayoutPublishCommand(); |
76 | 76 | }); |
77 | 77 | |
78 | - $this->app->singleton('artomator.publish.templates', function ($app) { |
|
78 | + $this->app->singleton('artomator.publish.templates', function($app) { |
|
79 | 79 | return new PublishTemplateCommand(); |
80 | 80 | }); |
81 | 81 | |
82 | - $this->app->singleton('artomator.api_scaffold', function ($app) { |
|
82 | + $this->app->singleton('artomator.api_scaffold', function($app) { |
|
83 | 83 | return new APIScaffoldGeneratorCommand(); |
84 | 84 | }); |
85 | 85 | |
86 | - $this->app->singleton('artomator.migration', function ($app) { |
|
86 | + $this->app->singleton('artomator.migration', function($app) { |
|
87 | 87 | return new MigrationGeneratorCommand(); |
88 | 88 | }); |
89 | 89 | |
90 | - $this->app->singleton('artomator.model', function ($app) { |
|
90 | + $this->app->singleton('artomator.model', function($app) { |
|
91 | 91 | return new ModelGeneratorCommand(); |
92 | 92 | }); |
93 | 93 | |
94 | - $this->app->singleton('artomator.repository', function ($app) { |
|
94 | + $this->app->singleton('artomator.repository', function($app) { |
|
95 | 95 | return new RepositoryGeneratorCommand(); |
96 | 96 | }); |
97 | 97 | |
98 | - $this->app->singleton('artomator.api.controller', function ($app) { |
|
98 | + $this->app->singleton('artomator.api.controller', function($app) { |
|
99 | 99 | return new APIControllerGeneratorCommand(); |
100 | 100 | }); |
101 | 101 | |
102 | - $this->app->singleton('artomator.api.requests', function ($app) { |
|
102 | + $this->app->singleton('artomator.api.requests', function($app) { |
|
103 | 103 | return new APIRequestsGeneratorCommand(); |
104 | 104 | }); |
105 | 105 | |
106 | - $this->app->singleton('artomator.api.tests', function ($app) { |
|
106 | + $this->app->singleton('artomator.api.tests', function($app) { |
|
107 | 107 | return new TestsGeneratorCommand(); |
108 | 108 | }); |
109 | 109 | |
110 | - $this->app->singleton('artomator.scaffold.controller', function ($app) { |
|
110 | + $this->app->singleton('artomator.scaffold.controller', function($app) { |
|
111 | 111 | return new ControllerGeneratorCommand(); |
112 | 112 | }); |
113 | 113 | |
114 | - $this->app->singleton('artomator.scaffold.requests', function ($app) { |
|
114 | + $this->app->singleton('artomator.scaffold.requests', function($app) { |
|
115 | 115 | return new RequestsGeneratorCommand(); |
116 | 116 | }); |
117 | 117 | |
118 | - $this->app->singleton('artomator.scaffold.views', function ($app) { |
|
118 | + $this->app->singleton('artomator.scaffold.views', function($app) { |
|
119 | 119 | return new ViewsGeneratorCommand(); |
120 | 120 | }); |
121 | 121 | |
122 | - $this->app->singleton('artomator.rollback', function ($app) { |
|
122 | + $this->app->singleton('artomator.rollback', function($app) { |
|
123 | 123 | return new RollbackGeneratorCommand(); |
124 | 124 | }); |
125 | 125 | |
126 | - $this->app->singleton('artomator.publish.user', function ($app) { |
|
126 | + $this->app->singleton('artomator.publish.user', function($app) { |
|
127 | 127 | return new PublishUserCommand(); |
128 | 128 | }); |
129 | 129 | |
130 | - $this->app->singleton('artomator.graphql', function ($app) { |
|
130 | + $this->app->singleton('artomator.graphql', function($app) { |
|
131 | 131 | return new GraphQLGeneratorCommand(); |
132 | 132 | }); |
133 | 133 | |
134 | - $this->app->singleton('artomator.graphql_scaffold', function ($app) { |
|
134 | + $this->app->singleton('artomator.graphql_scaffold', function($app) { |
|
135 | 135 | return new GraphQLScaffoldGeneratorCommand(); |
136 | 136 | }); |
137 | 137 | |
138 | - $this->app->singleton('artomator.graphql.query', function ($app) { |
|
138 | + $this->app->singleton('artomator.graphql.query', function($app) { |
|
139 | 139 | return new GraphQLQueryGeneratorCommand(); |
140 | 140 | }); |
141 | 141 | |
142 | - $this->app->singleton('artomator.graphql.mutations', function ($app) { |
|
142 | + $this->app->singleton('artomator.graphql.mutations', function($app) { |
|
143 | 143 | return new GraphQLMutationsGeneratorCommand(); |
144 | 144 | }); |
145 | 145 | |
146 | - $this->app->singleton('artomator.graphql.type', function ($app) { |
|
146 | + $this->app->singleton('artomator.graphql.type', function($app) { |
|
147 | 147 | return new GraphQLTypeGeneratorCommand(); |
148 | 148 | }); |
149 | 149 | |
150 | - $this->app->singleton('artomator.graphql.subscription', function ($app) { |
|
150 | + $this->app->singleton('artomator.graphql.subscription', function($app) { |
|
151 | 151 | return new GraphQLSubscriptionGeneratorCommand(); |
152 | 152 | }); |
153 | 153 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | $this->info('ApiTestTrait created'); |
117 | 117 | |
118 | 118 | $testAPIsPath = config('infyom.laravel_generator.path.api_test', base_path('tests/APIs/')); |
119 | - if (! file_exists($testAPIsPath)) { |
|
119 | + if (!file_exists($testAPIsPath)) { |
|
120 | 120 | FileUtil::createDirectoryIfNotExist($testAPIsPath); |
121 | 121 | $this->info('APIs Tests directory created'); |
122 | 122 | } |
@@ -119,7 +119,7 @@ |
||
119 | 119 | |
120 | 120 | $fileName = 'UserController.php'; |
121 | 121 | |
122 | - if (file_exists($controllerPath.$fileName) && ! $this->confirmOverwrite($fileName)) { |
|
122 | + if (file_exists($controllerPath.$fileName) && !$this->confirmOverwrite($fileName)) { |
|
123 | 123 | return; |
124 | 124 | } |
125 | 125 |