mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix spacing
This commit is contained in:
parent
e0e511adde
commit
2be03dbb3e
|
|
@ -564,7 +564,7 @@ class Account implements ArrayableInterface, \JsonSerializable
|
|||
{
|
||||
$this->password = \password_hash($password, \PASSWORD_DEFAULT);
|
||||
|
||||
if($this->password === false) {
|
||||
if ($this->password === false) {
|
||||
throw new \Exception();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class Grammar extends GrammarAbstract
|
|||
{
|
||||
$sql = [];
|
||||
|
||||
if($query->getType() === QueryType::RAW) {
|
||||
if ($query->getType() === QueryType::RAW) {
|
||||
return [$query->raw];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ class Polygon implements D2ShapeInterface
|
|||
|
||||
$count = count($this->coord);
|
||||
|
||||
for($i = 0; $i < $count - 1; $i++) {
|
||||
for ($i = 0; $i < $count - 1; $i++) {
|
||||
$mult = ($this->coord[$i]['x'] * $this->coord[$i + 1]['y'] - $this->coord[$i + 1]['x'] * $this->coord[$i]['y']);
|
||||
$this->barycenter['x'] += ($this->coord[$i]['x'] + $this->coord[$i + 1]['x']) * $mult;
|
||||
$this->barycenter['y'] += ($this->coord[$i]['y'] + $this->coord[$i + 1]['y']) * $mult;
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ class File extends FileAbstract implements FileInterface
|
|||
{
|
||||
$result = self::copy($from, $to, $overwrite);
|
||||
|
||||
if(!$result) {
|
||||
if (!$result) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -745,11 +745,11 @@ class Repository
|
|||
*/
|
||||
public function getAdditionsRemovalsByContributor(Author $author, \DateTime $start = null, \DateTime $end = null) : array
|
||||
{
|
||||
if(!isset($start)) {
|
||||
if (!isset($start)) {
|
||||
$start = new \DateTime('1900-01-01');
|
||||
}
|
||||
|
||||
if(!isset($end)) {
|
||||
if (!isset($end)) {
|
||||
$end = new \DateTime('now');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user