Skip to content

Commit

Permalink
Update README and fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Dec 2, 2023
1 parent d40992c commit 09b3ba7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
11 changes: 5 additions & 6 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
[![Latest Stable Version](https://poser.pugx.org/platine-php/orm/v)](https://packagist.org/packages/platine-php/orm)
[![Latest Unstable Version](https://poser.pugx.org/platine-php/orm/v/unstable)](https://packagist.org/packages/platine-php/orm)
[![Total Downloads](https://poser.pugx.org/platine-php/orm/downloads)](https://packagist.org/packages/platine-php/orm)
[![License](https://poser.pugx.org/platine-php/orm/license)](https://packagist.org/packages/platine-php/orm)
[![Build Status](https://img.shields.io/travis/com/platine-php/orm?style=flat-square)](https://travis-ci.com/platine-php/orm)
[![License](https://poser.pugx.org/platine-php/orm/license)](https://packagist.org/packages/platine-php/orm)
[![Quality Score](https://img.shields.io/scrutinizer/g/platine-php/orm.svg?style=flat-square)](https://scrutinizer-ci.com/g/platine-php/orm)
[![Maintainability](https://api.codeclimate.com/v1/badges/5722b474126d86d58e57/maintainability)](https://codeclimate.com/github/platine-php/orm/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/5722b474126d86d58e57/test_coverage)](https://codeclimate.com/github/platine-php/orm/test_coverage)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/852e352455644c8abd8209f2036eaab2)](https://app.codacy.com/gh/platine-php/orm/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/852e352455644c8abd8209f2036eaab2)](https://app.codacy.com/gh/platine-php/orm/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

### Requirements
- **PHP >= 7.4**, **PHP 8**
Expand All @@ -23,8 +22,8 @@ composer require platine-php/orm
### License
MIT License See [LICENSE.MD](LICENSE.MD)

### Documentation
Coming soon, be patient
### Resources
- [Documentation](https://docs.platine-php.com/packages/orm)

### Change make to opis/orm version 1.0.x-dev
**Platine ORM** get inspiration from **opis/orm**.
Expand Down
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
"sort-packages": true
},



"scripts": {
"test": "phpunit --colors=always",
"static": "phpstan analyze",
Expand Down
2 changes: 1 addition & 1 deletion src/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function jsonSerialize()
foreach ($rawColumns as $name => $value) {
if ($this->mapper()->hasRelation($name)) {
$relation = $this->mapper()->getRelated($name);
if($relation instanceof self){
if ($relation instanceof self) {
$data[$name] = $relation->jsonSerialize();
} else {
$data[$name] = $relation;
Expand Down
2 changes: 1 addition & 1 deletion src/Mapper/DataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class DataMapper implements DataMapperInterface
* @var array<string, RelationLoader<TEntity>>
*/
protected array $loaders = [];

/**
* The Entity manager instance
* @var EntityManager<TEntity>
Expand Down
2 changes: 1 addition & 1 deletion src/Relation/ShareRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function getLoader(EntityManager $manager, EntityMapper $owner, array $op
}

$queryStatement = new QueryStatement();

$select = new class ($manager, $related, $queryStatement, $junctionTable) extends EntityQuery
{
/**
Expand Down
4 changes: 2 additions & 2 deletions src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ public function delete(Entity $entity, bool $force = false): bool

return true;
}
/**

/**
* Set the filters
* @param EntityQuery<TEntity> $query
* @return $this
Expand Down

0 comments on commit 09b3ba7

Please sign in to comment.