Commit 0e1fd0a
committed
refactor: combine the code of the redundant
- Removed the redundant `COMPOSER_GLOBAL_PATH` constant because it's only used by one thing. So it doesn't need to exist.
- Changed the `Diagnose` command to get the contents of the global composer.json to use the code that was originally used to set the `COMPOSER_GLOBAL_PATH` constant. Ie. The command now directly uses the `Valet::getComposerGlobalPath` method to get the global composer path.
- Changed docblock of the `Valet::getComposerGlobalPath` method.COMPOSER_GLOBAL_PATH constant into the Diagnose command.1 parent 0f773b6 commit 0e1fd0a
3 files changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
0 commit comments