Commit cdbc4f2 MateuszKolankowski
committed
1 parent b78038b commit cdbc4f2 Copy full SHA for cdbc4f2
File tree 9 files changed +277
-0
lines changed
tests/lib/Sets/Ibexa50/Fixture
9 files changed +277
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Contracts \Core \Repository \Values \ContentType \ContentType ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function foo (ContentType $ contentType ): array
10
+ {
11
+ return [$ contentType ->isContainer ];
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Contracts \Core \Repository \Values \ContentType \ContentType ;
22
+
23
+ readonly class Foo
24
+ {
25
+ public function foo (ContentType $ contentType ): array
26
+ {
27
+ return [$ contentType ->isContainer ()];
28
+ }
29
+ }
30
+
31
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Core \Repository \Values \ContentType \ContentTypeDraft ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function foo (ContentTypeDraft $ contentTypeDraft ): array
10
+ {
11
+ return [$ contentTypeDraft ->isContainer ];
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Core \Repository \Values \ContentType \ContentTypeDraft ;
22
+
23
+ readonly class Foo
24
+ {
25
+ public function foo (ContentTypeDraft $ contentTypeDraft ): array
26
+ {
27
+ return [$ contentTypeDraft ->isContainer ()];
28
+ }
29
+ }
30
+
31
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Contracts \Core \Repository \Values \ContentType \ContentTypeDraft ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function foo (ContentTypeDraft $ contentTypeDraft ): array
10
+ {
11
+ return [$ contentTypeDraft ->isContainer ];
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Contracts \Core \Repository \Values \ContentType \ContentTypeDraft ;
22
+
23
+ readonly class Foo
24
+ {
25
+ public function foo (ContentTypeDraft $ contentTypeDraft ): array
26
+ {
27
+ return [$ contentTypeDraft ->isContainer ()];
28
+ }
29
+ }
30
+
31
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Solr \Query \Content \CriterionVisitor \Field ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function __construct (Field $ field )
10
+ {
11
+ }
12
+ }
13
+
14
+ ?>
15
+ -----
16
+ <?php
17
+
18
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
19
+
20
+ use Ibexa \Solr \Query \Common \CriterionVisitor \Field ;
21
+
22
+ readonly class Foo
23
+ {
24
+ public function __construct (Field $ field )
25
+ {
26
+ }
27
+ }
28
+
29
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Solr \Gateway \UpdateSerializer ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function __construct (UpdateSerializer $ updateSerializer )
10
+ {
11
+ }
12
+ }
13
+
14
+ ?>
15
+ -----
16
+ <?php
17
+
18
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
19
+
20
+ use Ibexa \Solr \Gateway \UpdateSerializer \XmlUpdateSerializer ;
21
+
22
+ readonly class Foo
23
+ {
24
+ public function __construct (XmlUpdateSerializer $ updateSerializer )
25
+ {
26
+ }
27
+ }
28
+
29
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Migration \ValueObject \ContentType \Matcher ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function fooBar (): string
10
+ {
11
+ return Matcher::CONTENT_TYPE_IDENTIFIER ;
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Migration \StepExecutor \ContentType \IdentifierFinder ;
22
+ use Ibexa \Migration \ValueObject \ContentType \Matcher ;
23
+
24
+ readonly class Foo
25
+ {
26
+ public function fooBar (): string
27
+ {
28
+ return IdentifierFinder::CONTENT_TYPE_IDENTIFIER ;
29
+ }
30
+ }
31
+
32
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Bundle \FormBuilder \DependencyInjection \Configuration ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function fooBar (): string
10
+ {
11
+ return Configuration::TREE_ROOT ;
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Bundle \FormBuilder \DependencyInjection \IbexaFormBuilderExtension ;
22
+ use Ibexa \Bundle \FormBuilder \DependencyInjection \Configuration ;
23
+
24
+ readonly class Foo
25
+ {
26
+ public function fooBar (): string
27
+ {
28
+ return IbexaFormBuilderExtension::EXTENSION_NAME ;
29
+ }
30
+ }
31
+
32
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Contracts \Core \Repository \Values \Content \Trash \SearchResult ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function foo (SearchResult $ searchResult ): string
10
+ {
11
+ return $ searchResult ->count ;
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Contracts \Core \Repository \Values \Content \Trash \SearchResult ;
22
+
23
+ readonly class Foo
24
+ {
25
+ public function foo (SearchResult $ searchResult ): string
26
+ {
27
+ return $ searchResult ->totalCount ;
28
+ }
29
+ }
30
+
31
+ ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
4
+
5
+ use Ibexa \Contracts \Core \Repository \Values \Content \Search \SearchResult ;
6
+
7
+ readonly class Foo
8
+ {
9
+ public function foo (SearchResult $ searchResult ): array
10
+ {
11
+ return [$ searchResult ->spellSuggestion ];
12
+ }
13
+ }
14
+
15
+ ?>
16
+ -----
17
+ <?php
18
+
19
+ namespace Rector \Tests \TypeDeclaration \Rector \ReplaceCartMoneyFactoryRector \Fixture ;
20
+
21
+ use Ibexa \Contracts \Core \Repository \Values \Content \Search \SearchResult ;
22
+
23
+ readonly class Foo
24
+ {
25
+ public function foo (SearchResult $ searchResult ): array
26
+ {
27
+ return [$ searchResult ->spellcheck ];
28
+ }
29
+ }
30
+
31
+ ?>
You can’t perform that action at this time.
0 commit comments