File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2929 "role" : " Developer"
3030 }
3131 ],
32- "version" : " 1.0.0 " ,
32+ "version" : " 1.0.1 " ,
3333 "require" : {
3434 "php" : " ^8.1" ,
3535 "omaralalwi/php-builders" : " ^1.0"
Original file line number Diff line number Diff line change @@ -37,12 +37,14 @@ class ConfigManager
3737 */
3838 public function __construct (array $ config = [])
3939 {
40- if (empty ($ config ['scripts_directory ' ])) {
41- throw new InvalidArgumentException ("Scripts directory is not configured. " );
40+ $ directory = $ config ['scripts_directory ' ];
41+
42+ if (empty ($ directory )) {
43+ throw new InvalidArgumentException ("Scripts directory {$ directory } is not configured. " );
4244 }
4345
44- if (!is_dir ($ config [ ' scripts_directory ' ] )) {
45- throw new InvalidArgumentException ("Scripts directory is invalid or does not exist. " );
46+ if (!is_dir ($ directory )) {
47+ throw new InvalidArgumentException ("Scripts directory { $ directory } is invalid or does not exist. " );
4648 }
4749
4850 if (empty ($ config ['python_executable ' ])) {
You can’t perform that action at this time.
0 commit comments