Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 8f34923

Browse files
Apply PHP-CS-Fixer changes
1 parent 239eb38 commit 8f34923

7 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/Entity/Device.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Gedmo\Mapping\Annotation as Gedmo;
99

1010
/**
11-
* @ORM\Entity()
11+
* @ORM\Entity
1212
*/
1313
class Device
1414
{

src/Entity/Lifetime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Gedmo\Mapping\Annotation as Gedmo;
1111

1212
/**
13-
* @ORM\Entity()
13+
* @ORM\Entity
1414
*/
1515
class Lifetime
1616
{

src/Entity/PageView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Gedmo\Mapping\Annotation as Gedmo;
99

1010
/**
11-
* @ORM\Entity()
11+
* @ORM\Entity
1212
*/
1313
class PageView
1414
{
@@ -36,7 +36,7 @@ class PageView
3636
protected $created;
3737

3838
/**
39-
* @return integer
39+
* @return int
4040
*/
4141
public function getId()
4242
{

src/Entity/Seed.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
/**
10-
* @ORM\Entity()
10+
* @ORM\Entity
1111
*/
1212
class Seed
1313
{
@@ -117,7 +117,6 @@ private function setValue(int $numberOfValues, ?array $weights = null): void
117117
foreach ($weights as $seed => $weight) {
118118
$total += $weight;
119119
if ($random <= $total) {
120-
121120
if (!\is_string($seed)) {
122121
$seed = (string) $seed;
123122
}

src/Entity/Session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Gedmo\Mapping\Annotation as Gedmo;
1111

1212
/**
13-
* @ORM\Entity()
14-
* @ORM\Table(name="session",indexes={@ORM\Index(name="session_created_index", columns={"created"})})
13+
* @ORM\Entity
14+
* @ORM\Table(name="session", indexes={@ORM\Index(name="session_created_index", columns={"created"})})
1515
*/
1616
class Session
1717
{

src/Features/Context/DeviceContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function theCookieHasTheValue()
4141
$session->setLoanTerm('');
4242
$session->setRepApr('');
4343
foreach ($this->utmCodes as $code) {
44-
$method = 'set'. Inflector::classify($code);
44+
$method = 'set'.Inflector::classify($code);
4545
$session->$method('');
4646
}
4747

tests/Manager/DeviceFingerprintManagerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class DeviceFingerprintManagerTest extends \PHPUnit_Framework_TestCase
99
{
10-
1110
/** @test */
1211
public function noHashesAreGeneratedIfFingerprintIsEmpty()
1312
{
@@ -79,4 +78,4 @@ public function hashesAreGeneratedForExistingKeys()
7978
$this->assertNull($device->getStoredIds());
8079
$this->assertNull($device->getSystemColors());
8180
}
82-
}
81+
}

0 commit comments

Comments
 (0)