@@ -33,8 +33,9 @@ |
||
33 | 33 | |
34 | 34 | public function with($data = []) |
35 | 35 | { |
36 | - if($data) |
|
37 | - $this->dirty = true; |
|
36 | + if($data) { |
|
37 | + $this->dirty = true; |
|
38 | + } |
|
38 | 39 | foreach ($data as $key => $value) { |
39 | 40 | $this->data[$key] = $value; |
40 | 41 | } |
@@ -14,8 +14,9 @@ |
||
14 | 14 | $resource = $this->argument('resource'); |
15 | 15 | |
16 | 16 | $routesPath = './routes/web.php'; |
17 | - if (! $this->fs->exists($routesPath)) |
|
18 | - $routesPath = './app/Http/routes.php'; |
|
17 | + if (! $this->fs->exists($routesPath)) { |
|
18 | + $routesPath = './app/Http/routes.php'; |
|
19 | + } |
|
19 | 20 | |
20 | 21 | $content = $this->fs->get($routesPath); |
21 | 22 |