Skip to content

Commit 7aa712a

Browse files
authored
Merge pull request #42 from janlam7/phpcs-tool-9
Update phpcs-tool to 9.1.0 with Hostnet-Level-1
2 parents b4c1db9 + 1ebc328 commit 7aa712a

7 files changed

Lines changed: 13 additions & 8 deletions

File tree

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"require-dev": {
1414
"hostnet/database-test-lib": "^2.0.2",
15-
"hostnet/phpcs-tool": "^8.3",
15+
"hostnet/phpcs-tool": "^9.1.0",
1616
"phpspec/prophecy-phpunit": "^2.0",
1717
"phpunit/phpunit": "^9.4",
1818
"symfony/cache": "^5.3"
@@ -26,5 +26,11 @@
2626
"psr-4": {
2727
"Hostnet\\Component\\EntityTracker\\": "test/"
2828
}
29+
},
30+
"config": {
31+
"allow-plugins": {
32+
"hostnet/*": true,
33+
"dealerdirect/phpcodesniffer-composer-installer": false
34+
}
2935
}
3036
}

phpcs.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="entity-tracker-component PHPCS">
3+
<rule ref="Hostnet-Level-1"/>
4+
</ruleset>

src/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ final class Events
2020
*
2121
* @var string
2222
*/
23-
const ENTITY_CHANGED = 'entityChanged';
23+
public const ENTITY_CHANGED = 'entityChanged';
2424
}

src/Provider/EntityAnnotationMetadataProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
use Doctrine\Common\Annotations\Reader;
1010
use Doctrine\ORM\EntityManagerInterface;
11-
use Doctrine\ORM\Mapping\ClassMetadata;
12-
use Doctrine\ORM\UnitOfWork;
1311
use Hostnet\Component\EntityTracker\Annotation\Tracked;
1412

1513
class EntityAnnotationMetadataProvider

src/Provider/EntityMutationMetadataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getMutatedFields(EntityManagerInterface $em, $entity, $original)
135135
}
136136

137137
/**
138-
* @param ClassMetaData $association_meta
138+
* @param ClassMetadata $association_meta
139139
* @param string $left
140140
* @param string $right
141141
* @return bool

test/Provider/Entity/C.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Hostnet\Component\EntityTracker\Provider\Entity;
88

9-
use Doctrine\Common\Collections\ArrayCollection;
109
use Doctrine\ORM\Mapping as ORM;
1110

1211
/**

test/Provider/Entity/Visit.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
namespace Hostnet\Component\EntityTracker\Provider\Entity;
88

9-
use Doctrine\Common\Collections\ArrayCollection;
10-
use Doctrine\Common\Collections\Collection;
119
use Doctrine\ORM\Mapping as ORM;
1210

1311
/**

0 commit comments

Comments
 (0)