Fix whitespaces and add strict return code checking
parent
8ab60b7030
commit
ebbc807de0
|
@ -181,6 +181,6 @@ class HgDriver implements VcsDriverInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
exec(sprintf('hg identify %s', escapeshellarg($url)), $ignored, $exit);
|
exec(sprintf('hg identify %s', escapeshellarg($url)), $ignored, $exit);
|
||||||
return $exit == 0;
|
return $exit === 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,6 +179,6 @@ class SvnDriver implements VcsDriverInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
exec(sprintf('svn info --non-interactive %s 2>/dev/null', escapeshellarg($url)), $ignored, $exit);
|
exec(sprintf('svn info --non-interactive %s 2>/dev/null', escapeshellarg($url)), $ignored, $exit);
|
||||||
return $exit == 0;
|
return $exit === 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue