From 2be03dbb3ef71b80bfe0960061943b72ac2df706 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 15 Nov 2017 23:01:30 +0100 Subject: [PATCH] Fix spacing --- Account/Account.php | 2 +- DataStorage/Database/Query/Grammar/Grammar.php | 2 +- Math/Geometry/Shape/D2/Polygon.php | 2 +- System/File/Local/File.php | 2 +- Utils/Git/Repository.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Account/Account.php b/Account/Account.php index 00a440020..a7826538d 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -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(); } } diff --git a/DataStorage/Database/Query/Grammar/Grammar.php b/DataStorage/Database/Query/Grammar/Grammar.php index 19484dbae..4f29e869b 100644 --- a/DataStorage/Database/Query/Grammar/Grammar.php +++ b/DataStorage/Database/Query/Grammar/Grammar.php @@ -115,7 +115,7 @@ class Grammar extends GrammarAbstract { $sql = []; - if($query->getType() === QueryType::RAW) { + if ($query->getType() === QueryType::RAW) { return [$query->raw]; } diff --git a/Math/Geometry/Shape/D2/Polygon.php b/Math/Geometry/Shape/D2/Polygon.php index e3a8ea864..12ef97e34 100644 --- a/Math/Geometry/Shape/D2/Polygon.php +++ b/Math/Geometry/Shape/D2/Polygon.php @@ -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; diff --git a/System/File/Local/File.php b/System/File/Local/File.php index 8f75b36c7..ab42ea946 100644 --- a/System/File/Local/File.php +++ b/System/File/Local/File.php @@ -289,7 +289,7 @@ class File extends FileAbstract implements FileInterface { $result = self::copy($from, $to, $overwrite); - if(!$result) { + if (!$result) { return false; } diff --git a/Utils/Git/Repository.php b/Utils/Git/Repository.php index 1de923cd2..a096f8fe2 100644 --- a/Utils/Git/Repository.php +++ b/Utils/Git/Repository.php @@ -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'); }