Skip to content

Commit

Permalink
Merge pull request #42 from janlam7/phpcs-tool-9
Browse files Browse the repository at this point in the history
Update phpcs-tool to 9.1.0 with Hostnet-Level-1
  • Loading branch information
janlam7 authored May 2, 2022
2 parents b4c1db9 + 1ebc328 commit 7aa712a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"require-dev": {
"hostnet/database-test-lib": "^2.0.2",
"hostnet/phpcs-tool": "^8.3",
"hostnet/phpcs-tool": "^9.1.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.4",
"symfony/cache": "^5.3"
Expand All @@ -26,5 +26,11 @@
"psr-4": {
"Hostnet\\Component\\EntityTracker\\": "test/"
}
},
"config": {
"allow-plugins": {
"hostnet/*": true,
"dealerdirect/phpcodesniffer-composer-installer": false
}
}
}
4 changes: 4 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<ruleset name="entity-tracker-component PHPCS">
<rule ref="Hostnet-Level-1"/>
</ruleset>
2 changes: 1 addition & 1 deletion src/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ final class Events
*
* @var string
*/
const ENTITY_CHANGED = 'entityChanged';
public const ENTITY_CHANGED = 'entityChanged';
}
2 changes: 0 additions & 2 deletions src/Provider/EntityAnnotationMetadataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

use Doctrine\Common\Annotations\Reader;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\UnitOfWork;
use Hostnet\Component\EntityTracker\Annotation\Tracked;

class EntityAnnotationMetadataProvider
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/EntityMutationMetadataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getMutatedFields(EntityManagerInterface $em, $entity, $original)
}

/**
* @param ClassMetaData $association_meta
* @param ClassMetadata $association_meta
* @param string $left
* @param string $right
* @return bool
Expand Down
1 change: 0 additions & 1 deletion test/Provider/Entity/C.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

namespace Hostnet\Component\EntityTracker\Provider\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;

/**
Expand Down
2 changes: 0 additions & 2 deletions test/Provider/Entity/Visit.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

namespace Hostnet\Component\EntityTracker\Provider\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;

/**
Expand Down

0 comments on commit 7aa712a

Please sign in to comment.