-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Only migrate the simple cases by the 'strict' pattern * Print warning about left over cases
- Loading branch information
1 parent
df2eba0
commit fb46b9d
Showing
3 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
tests/FileProcessor/Fluid/Rector/vhs/ReplaceUriImageFluidRector/Fixture/fixture.html.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
{v:uri.image(src:image.uid, treatIdAsReference: 1)} | ||
{v:uri.image(src:image.uid, treatIdAsReference: 1, relative: 1)} | ||
{v:uri.image(src:image.uid, treatIdAsReference: 1, relative: 0)} | ||
{v:uri.image(src:image.uid, treatIdAsReference: 1, maxW: 250, maxH: 250)} | ||
----- | ||
{f:uri.image(src:image.uid, treatIdAsReference: 1)} | ||
{f:uri.image(src:image.uid, treatIdAsReference: 1)} | ||
{f:uri.image(src:image.uid, treatIdAsReference: 1, absolute: 1)} | ||
{f:uri.image(src:image.uid, treatIdAsReference: 1, maxWidth: 250, maxHeight: 250)} |
14 changes: 12 additions & 2 deletions
14
tests/FileProcessor/Fluid/Rector/vhs/ReplaceVariableSetFluidRector/Fixture/fixture.html.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
<v:variable.set name="myvariable" value="a string value" /> | ||
Simple (and easily migratable) cases: | ||
{myvariable -> v:variable.set(name:'othervariable')} | ||
<v:variable.set name="myvariable" value="a string value" /> | ||
|
||
More complex cases (and unmigratable) cases: | ||
<v:variable.set name="myarray.property" value="a string value" /> | ||
<v:variable.set value="a string value" name="myvariable" /> | ||
----- | ||
<f:variable name="myvariable" value="a string value" /> | ||
Simple (and easily migratable) cases: | ||
{myvariable -> f:variable(name:'othervariable')} | ||
<f:variable name="myvariable" value="a string value" /> | ||
|
||
More complex cases (and unmigratable) cases: | ||
<v:variable.set name="myarray.property" value="a string value" /> | ||
<v:variable.set value="a string value" name="myvariable" /> |