Skip to content

Commit e034612

Browse files
committed
Fix formatting and remove unused variable $env_path
1 parent 91f78dd commit e034612

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

core/class/script.class.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/* * ***************************Includes********************************* */
2020
require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php';
21-
if(file_exists(dirname(__FILE__) . '/../../vendor/autoload.php')){
21+
if (file_exists(dirname(__FILE__) . '/../../vendor/autoload.php')) {
2222
require_once dirname(__FILE__) . '/../../vendor/autoload.php';
2323
}
2424

@@ -125,7 +125,7 @@ public function postSave() {
125125
try {
126126
$this->refreshInfo();
127127
} catch (\Throwable $th) {
128-
log::add('script','error',$th->getMessage());
128+
log::add('script', 'error', $th->getMessage());
129129
}
130130
}
131131

@@ -239,7 +239,6 @@ public function execute($_options = null) {
239239
}
240240
}
241241
if (!$from_path && is_readable($first_element)) {
242-
$env_path = explode(PATH_SEPARATOR, getenv('PATH'));
243242
$shebang = file_get_contents($first_element, false, null, 0, 3);
244243
$use_shebang = $shebang == '#!/';
245244
if (!is_executable($first_element)) {

0 commit comments

Comments
 (0)