axelcostaspena / php-1up Goto Github PK
View Code? Open in Web Editor NEWPHP 1Up! is a plugin for IntelliJ based IDEs which provides a growing collection of inspections, intentions and other utils for PHP development.
License: Apache License 2.0
PHP 1Up! is a plugin for IntelliJ based IDEs which provides a growing collection of inspections, intentions and other utils for PHP development.
License: Apache License 2.0
Please make able to change Umlauts or specialchars (like üöäß..) to htmlentities (ü).
If HEREDOC contains embedded variables or expressions, warn the user about imminent data loss.
Have this:
$foo = 'foo \\\' bar';
Apply "Replace quotes with escaping"
Exepcted:
$foo = "foo \' bar";
Result:
$foo = "foo \\' bar";
Perform an analog conversion as current "Replace quotes".
Wait for decissions on https://youtrack.jetbrains.com/issue/WI-13801 and use the same message which JetBrains chooses for specifying the destructive character of the action.
Have this:
$foo = "foo \
$bar";
Apply "Replace quotes with escaping"
Exepcted:
$foo = 'foo \
' . $bar;
Result:
$foo = "foo \\
' . $bar;
Feature is described here: https://youtrack.jetbrains.com/issue/WI-16419
Step by step:
Illustrative description:
Have:
<?
foreach ($arr as $item) {
ec<caret>ho $item;
}
?>
Apply intention. Result:
<?
foreach ($arr as $item) {
?>
<?= $item; ?>
<?
}
?>
Inverse intention could be applied at:
<?
foreach ($arr as $item) {
?>
<?<caret>= $item; ?>
<?
}
?>
Have this:
$foo = "foo $bar[0] baz";
Apply "Replace quotes with escaping and variable concatenation"
Exepcted:
$foo = 'foo ' . $bar[0] . ' baz';
Result:
$foo = 'foo ' . $bar['0'] . ' baz';
NOTE: void-returning expressions may need special treatment.
Have this:
$foo = "foo $bar baz";
Apply "Replace quotes with escaping and variable concatenation". Have:
$foo = 'foo ' . $bar . ' baz';
Apply "Replace quotes with escaping" on 'foo '
.
User should be offered to choose between two targets:
Target 1: 'foo '
Result:
$foo = "foo " . $bar . ' baz';
Target 2: 'foo ' . $bar . ' baz'
. Result:
$foo = "foo $bar baz";
Any alternative way to make users able to report errors transparently will be accepted
Have:
<?
foreach ($arr as $item) {
echo "<div>";
ec<caret>ho $item;
echo "</div>";
}
?>
Apply intention #13. User should be offered to apply to echo $item;
or to echo "<div>"; echo $item; echo "</div>";
Results will be:
<?
foreach ($arr as $item) {
echo "<div>";
?>
<?= $item; ?>
<?
echo "</div>";
}
?>
and
<?
foreach ($arr as $item) {
echo "<div>" . $item . "</div>";
}
?>
Have this:
$foo = "fo\$o bar";
"Replace quotes with unescaping" should lead to:
$foo = 'fo$o bar';
But it leads to
$foo = 'fo\$o bar';
Have this:
$foo = "foo $bar[$baz] qux";
Apply "Replace quotes with escaping"
Exepcted:
$foo = 'foo ' . $bar[$baz] . ' qux';
Result:
$foo = 'foo ' . $bar['$baz'] . ' qux';
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.