mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-07 08:54:36 +02:00
Fixed code style.
This commit is contained in:
parent
b6e88db35f
commit
3671c94844
19 changed files with 55 additions and 60 deletions
|
@ -64,9 +64,10 @@ class GitVersionInfo
|
|||
$git = file($this->project_dir.'/.git/HEAD');
|
||||
$head = explode('/', $git[0], 3);
|
||||
|
||||
if (!isset($head[2])) {
|
||||
if (! isset($head[2])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return trim($head[2]);
|
||||
}
|
||||
|
||||
|
@ -88,7 +89,7 @@ class GitVersionInfo
|
|||
if (file_exists($filename)) {
|
||||
$head = file($filename);
|
||||
|
||||
if (!isset($head[0])) {
|
||||
if (! isset($head[0])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue