@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * This file contains only the UserRights class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Model; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * This file contains only the DisabledToolSubscriber class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\EventSubscriber; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | * This file contains only the TopEdits class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Model; |
| 9 | 9 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | { |
| 140 | 140 | $firstDateTime = $this->topEdits[0]->getTimestamp(); |
| 141 | 141 | $lastDateTime = end($this->topEdits)->getTimestamp(); |
| 142 | - $secs = $firstDateTime->getTimestamp() - $lastDateTime->getTimestamp(); |
|
| 142 | + $secs = $firstDateTime->getTimestamp()-$lastDateTime->getTimestamp(); |
|
| 143 | 143 | $days = $secs / (60 * 60 * 24); |
| 144 | 144 | return $days / count($this->topEdits); |
| 145 | 145 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * This file contains only the EditSummary class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Model; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | * This file contains only the AppExtension class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Twig; |
| 9 | 9 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function requestTime(): float |
| 111 | 111 | { |
| 112 | 112 | if (!isset($this->requestTime)) { |
| 113 | - $this->requestTime = microtime(true) - $this->getRequest()->server->get('REQUEST_TIME_FLOAT'); |
|
| 113 | + $this->requestTime = microtime(true)-$this->getRequest()->server->get('REQUEST_TIME_FLOAT'); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $this->requestTime; |
@@ -676,15 +676,15 @@ discard block |
||
| 676 | 676 | |
| 677 | 677 | if ($seconds >= 86400) { |
| 678 | 678 | // Over a day |
| 679 | - $val = (int) floor($seconds / 86400); |
|
| 679 | + $val = (int)floor($seconds / 86400); |
|
| 680 | 680 | $key = 'days'; |
| 681 | 681 | } elseif ($seconds >= 3600) { |
| 682 | 682 | // Over an hour, less than a day |
| 683 | - $val = (int) floor($seconds / 3600); |
|
| 683 | + $val = (int)floor($seconds / 3600); |
|
| 684 | 684 | $key = 'hours'; |
| 685 | 685 | } elseif ($seconds >= 60) { |
| 686 | 686 | // Over a minute, less than an hour |
| 687 | - $val = (int) floor($seconds / 60); |
|
| 687 | + $val = (int)floor($seconds / 60); |
|
| 688 | 688 | $key = 'minutes'; |
| 689 | 689 | } |
| 690 | 690 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $sections = is_array($sectionsQuery) ? $sectionsQuery : explode('|', $sectionsQuery); |
| 173 | 173 | |
| 174 | 174 | // Filter out any invalid section IDs. |
| 175 | - $sections = array_filter($sections, function ($section) { |
|
| 175 | + $sections = array_filter($sections, function($section) { |
|
| 176 | 176 | return in_array($section, $this->getSectionNames()); |
| 177 | 177 | }); |
| 178 | 178 | |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | $ret = [ |
| 245 | - 'xtTitle' => $this->user->getUsername() . ' - ' . $this->project->getTitle(), |
|
| 245 | + 'xtTitle' => $this->user->getUsername().' - '.$this->project->getTitle(), |
|
| 246 | 246 | 'xtPage' => 'EditCounter', |
| 247 | 247 | 'user' => $this->user, |
| 248 | 248 | 'project' => $this->project, |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * This file contains only the PagesRepository class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * This file contains only the WebProcessorMonolog class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Monolog; |
| 9 | 9 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | use Composer\Autoload\ClassLoader; |
| 5 | 5 | use Doctrine\Common\Annotations\AnnotationRegistry; |
@@ -9,6 +9,6 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | $loader = require __DIR__.'/../vendor/autoload.php'; |
| 11 | 11 | |
| 12 | -AnnotationRegistry::registerLoader([ $loader, 'loadClass' ]); |
|
| 12 | +AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
|
| 13 | 13 | |
| 14 | 14 | return $loader; |