Skip to content

Instantly share code, notes, and snippets.

@Shaked
Created October 21, 2015 22:21
Show Gist options
  • Select an option

  • Save Shaked/74e85a3150f3932433a1 to your computer and use it in GitHub Desktop.

Select an option

Save Shaked/74e85a3150f3932433a1 to your computer and use it in GitHub Desktop.
<?php
//passes: Reindent
$string = 'a'.
'b'.
'c'.
'd';
$x = 1;
$string = [
"x" => [
"t" => "1" . $x
],
];
if ($x == 1) {
$string = 'a'.
'b'.
'c'.
'd';
if ($x = 1) {
doSomething();
}
doSomething($a = 1);
}
while ($row = $percent->fetchObject()) {
$answers[] = $row;
}
class Test {
public function abc($x) {
if (1 == $x) {
echo "${abc}";
}
}
}
@Shaked
Copy link
Author

Shaked commented Oct 21, 2015

$string =
    'a' .
    'b' .
    'c' .
    'd';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment