Skip to content

Commit

Permalink
Some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoaponte committed Jun 9, 2023
1 parent 2c6ddae commit 1c60693
Show file tree
Hide file tree
Showing 9 changed files with 714 additions and 2,863 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"doctrine/dbal": "^3.3"
},
"require-dev": {
"pestphp/pest": "^2.6"
"pestphp/pest": "^2.6",
"mockery/mockery": "^1.6"
},
"extra": {
"laravel": {
Expand Down
3,531 changes: 691 additions & 2,840 deletions composer.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/Model/MethodModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Ray\EloquentModelGenerator\Model;

use Ray\EloquentModelGenerator\Exception\ValidationException;
use Ray\EloquentModelGenerator\Model\Traits\AbstractModifierTrait;
use Ray\EloquentModelGenerator\Model\Traits\AbstractMethodModifierTrait;
use Ray\EloquentModelGenerator\Model\Traits\AccessModifierTrait;
use Ray\EloquentModelGenerator\Model\Traits\DocBlockTrait;
use Ray\EloquentModelGenerator\Model\Traits\FinalModifierTrait;
use Ray\EloquentModelGenerator\Model\Traits\FinalMethodModifierTrait;
use Ray\EloquentModelGenerator\Model\Traits\StaticModifierTrait;

/**
Expand All @@ -15,10 +15,10 @@
*/
class MethodModel extends BaseMethodModel
{
use AbstractModifierTrait;
use AbstractMethodModifierTrait;
use AccessModifierTrait;
use DocBlockTrait;
use FinalModifierTrait;
use FinalMethodModifierTrait;
use StaticModifierTrait;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Ray\EloquentModelGenerator\Model\Traits;

/**
* Trait AbstractModifierTrait
* Trait AbstractMethodModifierTrait
* @package App\CodeGenerator\Model\Traits
*/
trait AbstractModifierTrait
trait AbstractMethodModifierTrait
{
/**
* @var boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Traits/ClassTypeModifierTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Ray\EloquentModelGenerator\Model\Traits;

/**
* Trait AbstractModifierTrait
* Trait AbstractMethodModifierTrait
* @package App\CodeGenerator\Model\Traits
*/
trait ClassTypeModifierTrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Ray\EloquentModelGenerator\Model\Traits;

/**
* Trait FinalModifierTrait
* Trait FinalMethodModifierTrait
* @package App\CodeGenerator\Model\Traits
*/
trait FinalModifierTrait
trait FinalMethodModifierTrait
{
public function __construct()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|
*/

//uses(Tests\TestCase::class)->in('Feature');
uses(Tests\Unit\UnitTestsTest::class)->in('Feature');

/*
|--------------------------------------------------------------------------
Expand Down
12 changes: 0 additions & 12 deletions tests/TestCase.php

This file was deleted.

11 changes: 11 additions & 0 deletions tests/Unit/UnitTestsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Tests\Unit;

use PHPUnit\Framework\TestCase;
use Ray\EloquentModelGenerator\Command\GenerateCommandTrait;

class UnitTestsTest extends TestCase
{
use GenerateCommandTrait;
}

0 comments on commit 1c60693

Please sign in to comment.