Code Duplication    Length = 18-18 lines in 2 locations

app/Console/Commands/MakeJsonApiDemo.php 1 location

@@ 131-148 (lines=18) @@
128
    /**
129
     *
130
     */
131
    protected function setupTest()
132
    {
133
        foreach ($this->migrations as $key => $value) {
134
            $this->migrations[$key] = $value . $this->testPostfix;
135
        }
136
        foreach ($this->seeds as $key => $value) {
137
            $this->seeds[$key] = $value . $this->testPostfix;
138
        }
139
        foreach ($this->controllers as $key => $value) {
140
            $this->controllers[$key] = $value . $this->testPostfix;
141
        }
142
        foreach ($this->models as $key => $value) {
143
            $this->models[$key] = $value . $this->testPostfix;
144
        }
145
        foreach ($this->jsonapiEntities as $key => $value) {
146
            $this->jsonapiEntities[$key] = $value . $this->testPostfix;
147
        }
148
    }
149
150
    /**
151
     *  use fake file system for tests

app/Console/Commands/MakeJsonApiDemoRemove.php 1 location

@@ 122-139 (lines=18) @@
119
    /**
120
     *
121
     */
122
    protected function setupTest()
123
    {
124
        foreach ($this->migrations as $key => $value) {
125
            $this->migrations[$key] = $value . $this->testPostfix;
126
        }
127
        foreach ($this->seeds as $key => $value) {
128
            $this->seeds[$key] = $value . $this->testPostfix;
129
        }
130
        foreach ($this->controllers as $key => $value) {
131
            $this->controllers[$key] = $value . $this->testPostfix;
132
        }
133
        foreach ($this->models as $key => $value) {
134
            $this->models[$key] = $value . $this->testPostfix;
135
        }
136
        foreach ($this->jsonapiEntities as $key => $value) {
137
            $this->jsonapiEntities[$key] = $value . $this->testPostfix;
138
        }
139
    }
140
141
    /**
142
     *