mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 13:08: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);
|
$this->password = \password_hash($password, \PASSWORD_DEFAULT);
|
||||||
|
|
||||||
if($this->password === false) {
|
if ($this->password === false) {
|
||||||
throw new \Exception();
|
throw new \Exception();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ class Grammar extends GrammarAbstract
|
||||||
{
|
{
|
||||||
$sql = [];
|
$sql = [];
|
||||||
|
|
||||||
if($query->getType() === QueryType::RAW) {
|
if ($query->getType() === QueryType::RAW) {
|
||||||
return [$query->raw];
|
return [$query->raw];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -388,7 +388,7 @@ class Polygon implements D2ShapeInterface
|
||||||
|
|
||||||
$count = count($this->coord);
|
$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']);
|
$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['x'] += ($this->coord[$i]['x'] + $this->coord[$i + 1]['x']) * $mult;
|
||||||
$this->barycenter['y'] += ($this->coord[$i]['y'] + $this->coord[$i + 1]['y']) * $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);
|
$result = self::copy($from, $to, $overwrite);
|
||||||
|
|
||||||
if(!$result) {
|
if (!$result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -745,11 +745,11 @@ class Repository
|
||||||
*/
|
*/
|
||||||
public function getAdditionsRemovalsByContributor(Author $author, \DateTime $start = null, \DateTime $end = null) : array
|
public function getAdditionsRemovalsByContributor(Author $author, \DateTime $start = null, \DateTime $end = null) : array
|
||||||
{
|
{
|
||||||
if(!isset($start)) {
|
if (!isset($start)) {
|
||||||
$start = new \DateTime('1900-01-01');
|
$start = new \DateTime('1900-01-01');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($end)) {
|
if (!isset($end)) {
|
||||||
$end = new \DateTime('now');
|
$end = new \DateTime('now');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user