| @@ 110-118 (lines=9) @@ | ||
| 107 | ||
| 108 | protected function buildObserverReplacements() |
|
| 109 | { |
|
| 110 | if (! ($observer = $this->option('observer'))) { |
|
| 111 | $observer = $this->anticipate( |
|
| 112 | 'What is the observer class name?', |
|
| 113 | [ |
|
| 114 | $class = $this->parseObserver($this->getNameInput()) |
|
| 115 | ], |
|
| 116 | $class |
|
| 117 | ); |
|
| 118 | } |
|
| 119 | $observerClass = $this->parseObserver($observer); |
|
| 120 | ||
| 121 | if (! class_exists($observerClass)) { |
|
| @@ 167-175 (lines=9) @@ | ||
| 164 | ||
| 165 | protected function buildModelReplacements() |
|
| 166 | { |
|
| 167 | if (! ($model = $this->option('model'))) { |
|
| 168 | $model = $this->anticipate( |
|
| 169 | 'What is the model class name?', |
|
| 170 | [ |
|
| 171 | $class = $this->parseModel($this->getNameInput()) |
|
| 172 | ], |
|
| 173 | $class |
|
| 174 | ); |
|
| 175 | } |
|
| 176 | ||
| 177 | $modelClass = $this->parseModel($model); |
|
| 178 | ||