Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Optimized all the stubs and docblocks #35

Merged

Conversation

maxvrdev
Copy link
Contributor

  • Branched from DEV
  • Updated all Stubs & Docblocks

@andreacivita andreacivita marked this pull request as draft October 18, 2021 10:50
@andreacivita
Copy link
Owner

Hi, i've marked this PR as draft, cause it doesn't fix issue #32. Issue is related to all stub file (located under src/stubs).

All of this file should be checked and, eventually, fixed.

Please, remember that you should check files in dev branch, not master, because it is not updated. Furthermore, master should have only stable code, so all the new features must be merged only in dev.

Please, add fix to all these file so we can close this feature and thank you very much for your support :)

src/stubs/Controller.stub
src/stubs/Factory.stub
src/stubs/Model.stub
src/stubs/Request-.stub
src/stubs/Resource.stub
src/stubs/Test.stub

Please remember you have to add all dependencies with use statement

@andreacivita andreacivita marked this pull request as ready for review October 19, 2021 09:59
@andreacivita andreacivita self-requested a review October 19, 2021 09:59
Copy link
Owner

@andreacivita andreacivita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace \App\Http\Requests\{{modelName}}Request with {{modelName}}Request

Copy link
Owner

@andreacivita andreacivita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Controller.stub

in Controller.stub, update function, please replace in dockblock

\App\Http\Requests\{{modelName}}Request $request

with => {{modelName}}Request $request

Model.stub

There is no sense of use App\Models\{{modelName}};, as model class is self-importing itself. Please remove it

@andreacivita andreacivita marked this pull request as draft October 19, 2021 10:23
Clean up the imports on the Controller Stub
@maxvrdev maxvrdev marked this pull request as ready for review October 19, 2021 15:49
@andreacivita andreacivita self-requested a review October 20, 2021 13:45
@andreacivita andreacivita merged commit d51e8a5 into andreacivita:dev Oct 20, 2021
andreacivita added a commit that referenced this pull request Oct 20, 2021
@andreacivita
Copy link
Owner

Fix #32

andreacivita pushed a commit that referenced this pull request Oct 23, 2021
* - Optimized all the stubs and docblocks

* Add Import to Model Stub

* Remove the import from the Model Stub
Clean up the imports on the Controller Stub

Related to issue #32 

Co-authored-by: [email protected] <[email protected]>
andreacivita added a commit that referenced this pull request Oct 23, 2021
* Update .travis.yml

* Revert "Update .travis.yml"

This reverts commit 6c54da4.

* Update GeneratorTest.php

* feat: Hard Refactor (#29)

* Updated stub-test

* New Generators

* Added dependency Support

* Removed unused param & added setData

* commands depends on new generators

Old generator has been deprecated

* Updated PHPUnit test suite

* ControllerGenerator + tests

* FactoryGenerator + test

* ModelGenerator + test

* RequestGenerator + test

* ResourceGenerator + test

* RouteGenerator + tests

* fix: typo in ModelGenerator

* TestGenerator + test

* Stub + test

* updated .gitignore

* Php-cs-fixer

Co-authored-by: Andrea Civita <[email protected]>

* Namespace Added to Factory Stub (#33) (#36)

Co-authored-by: Max VanRay <[email protected]>

* - Optimized all the stubs and docblocks (#35)

* - Optimized all the stubs and docblocks

* Add Import to Model Stub

* Remove the import from the Model Stub
Clean up the imports on the Controller Stub

Related to issue #32 

Co-authored-by: [email protected] <[email protected]>

Co-authored-by: Andrea Civita <[email protected]>
Co-authored-by: Max VanRay <[email protected]>
Co-authored-by: Max VanReynegom <[email protected]>
@andreacivita andreacivita added the invalid This doesn't seem right label Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants