Fix spacing

This commit is contained in:
Dennis Eichhorn 2017-11-15 23:01:30 +01:00
parent e0e511adde
commit 2be03dbb3e
5 changed files with 6 additions and 6 deletions

View File

@ -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();
}
}

View File

@ -115,7 +115,7 @@ class Grammar extends GrammarAbstract
{
$sql = [];
if($query->getType() === QueryType::RAW) {
if ($query->getType() === QueryType::RAW) {
return [$query->raw];
}

View File

@ -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;

View File

@ -289,7 +289,7 @@ class File extends FileAbstract implements FileInterface
{
$result = self::copy($from, $to, $overwrite);
if(!$result) {
if (!$result) {
return false;
}

View File

@ -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');
}