Skip to content

Commit f2d32fb

Browse files
authored
Merge pull request #506: Update metadata
2 parents bde8ea3 + ae2f06f commit f2d32fb

File tree

17 files changed

+246
-48
lines changed

17 files changed

+246
-48
lines changed

.github/workflows/cs-fix.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- '*'
7+
8+
name: Fix Code Style
9+
10+
jobs:
11+
cs-fix:
12+
permissions:
13+
contents: write
14+
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master
15+
16+
...

.github/workflows/psalm.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
pull_request: null
3+
push:
4+
branches:
5+
- master
6+
- '*.*'
7+
8+
name: static analysis
9+
10+
jobs:
11+
psalm:
12+
uses: spiral/gh-actions/.github/workflows/psalm.yml@master
13+
with:
14+
os: >-
15+
['ubuntu-latest']

.idea/icon.svg

Lines changed: 15 additions & 0 deletions
Loading

README.md

Lines changed: 17 additions & 15 deletions
Large diffs are not rendered by default.

psalm-baseline.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@
229229
</file>
230230
<file src="src/Config/RelationConfig.php">
231231
<TooManyArguments>
232-
<code><![CDATA[new Autowire($this->config[$type][self::LOADER])]]></code>
233-
<code><![CDATA[new Autowire($this->config[$type][self::RELATION])]]></code>
232+
<code>new Autowire($loader)</code>
233+
<code>new Autowire($relation)</code>
234234
</TooManyArguments>
235235
</file>
236236
<file src="src/EntityManager.php">

psalm.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,4 @@
2626
</errorLevel>
2727
</UndefinedClass>
2828
</issueHandlers>
29-
<projectFiles>
30-
<directory name="src" />
31-
<ignoreFiles>
32-
<directory name="vendor" />
33-
</ignoreFiles>
34-
</projectFiles>
3529
</psalm>

.phpstorm.meta.php renamed to resources/.phpstorm.meta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
// .phpstorm.meta.php
33

44
namespace PHPSTORM_META {
5-
65
override(\Cycle\ORM\ORMInterface::make(0), map(['' => '@']));
6+
override(\Cycle\ORM\ORMInterface::get(0), map(['' => '@']));
77
}

resources/factory.meta-storm.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<meta-storm xmlns="meta-storm">
3+
<definitions>
4+
<classMethod class="\Cycle\ORM\FactoryInterface" method="mapper" argument="1">
5+
<collection name="cycle/orm:entity-class" argument="0" />
6+
<collection name="cycle/orm:entity-role" argument="0" />
7+
</classMethod>
8+
9+
<classMethod class="\Cycle\ORM\FactoryInterface" method="loader" argument="2">
10+
<collection name="cycle/orm:entity-class" argument="0" />
11+
<collection name="cycle/orm:entity-role" argument="0" />
12+
</classMethod>
13+
14+
<classMethod class="\Cycle\ORM\FactoryInterface" method="repository" argument="2">
15+
<collection name="cycle/orm:entity-class" argument="0" />
16+
<collection name="cycle/orm:entity-role" argument="0" />
17+
</classMethod>
18+
19+
<classMethod class="\Cycle\ORM\FactoryInterface" method="typecast" argument="2">
20+
<collection name="cycle/orm:entity-class" argument="0" />
21+
<collection name="cycle/orm:entity-role" argument="0" />
22+
</classMethod>
23+
24+
<classMethod class="\Cycle\ORM\FactoryInterface" method="source" argument="1">
25+
<collection name="cycle/orm:entity-class" argument="0" />
26+
<collection name="cycle/orm:entity-role" argument="0" />
27+
</classMethod>
28+
29+
<classMethod class="\Cycle\ORM\FactoryInterface" method="relation" argument="2">
30+
<collection name="cycle/orm:entity-class" argument="0" />
31+
<collection name="cycle/orm:entity-role" argument="0" />
32+
</classMethod>
33+
</definitions>
34+
</meta-storm>

resources/iterator.meta-storm.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<meta-storm xmlns="meta-storm">
3+
<definitions>
4+
<classMethod class="\Cycle\ORM\Iterator" method="createWithOrm" argument="1">
5+
<collection name="cycle/orm:entity-class" argument="0" />
6+
<collection name="cycle/orm:entity-role" argument="0" />
7+
</classMethod>
8+
9+
<classMethod class="\Cycle\ORM\Iterator" method="createWithServices" argument="3">
10+
<collection name="cycle/orm:entity-class" argument="0" />
11+
<collection name="cycle/orm:entity-role" argument="0" />
12+
</classMethod>
13+
</definitions>
14+
</meta-storm>

resources/orm.meta-storm.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<meta-storm xmlns="meta-storm">
3+
<definitions>
4+
<classMethod class="\Cycle\ORM\ORMInterface" method="resolveRole" argument="0">
5+
<collection name="cycle/orm:entity-class" argument="0" />
6+
<collection name="cycle/orm:entity-role" argument="0" />
7+
</classMethod>
8+
9+
<classMethod class="\Cycle\ORM\MapperInterface" method="init" argument="1">
10+
<collection name="cycle/orm:entity-class" argument="0" />
11+
<collection name="cycle/orm:entity-role" argument="0" />
12+
</classMethod>
13+
14+
<classMethod class="\Cycle\ORM\Heap\HeapInterface" method="find" argument="0">
15+
<collection name="cycle/orm:entity-class" argument="0" />
16+
<collection name="cycle/orm:entity-role" argument="0" />
17+
</classMethod>
18+
</definitions>
19+
</meta-storm>

0 commit comments

Comments
 (0)