Code Duplication    Length = 9-9 lines in 2 locations

src/Console/Commands/Cray.php 1 location

@@ 94-102 (lines=9) @@
91
     *
92
     * @return void
93
     */
94
    protected function createFactory()
95
    {
96
        $factory = Str::studly(class_basename($this->argument('name')));
97
98
        $this->call('cray:factory', [
99
            'name' => "{$factory}Factory",
100
            '--model' => $this->argument('name'),
101
        ]);
102
    }
103
104
    /**
105
     * Create a migration file for the model.

src/Console/Commands/ModelMakeCommand.php 1 location

@@ 68-76 (lines=9) @@
65
     *
66
     * @return void
67
     */
68
    protected function createFactory()
69
    {
70
        $factory = Str::studly(class_basename($this->argument('name')));
71
72
        $this->call('cray:factory', [
73
            'name' => "{$factory}Factory",
74
            '--model' => $this->argument('name'),
75
        ]);
76
    }
77
78
    /**
79
     * Create a migration file for the model.