Please activate JavaScript in your browser.
?
?
Success
Success
The Travis CI build passed
Details
User tests:
Successful:
Unsuccessful:
This series of Pull Requests improve some basic code styles.
Mostly if/else syntax improvements, focussing on removing else statements which follow returns (or continues in loops).
Also de-nesting of if structures by adding early returns/elses.
Example:
function foobar($foo, $bar)
{
if($foo > $bar)
{
return $foo;
} else {
return $bar;
}
}
Can be changed to:
function foobar($foo, $bar)
{
if($foo > $bar)
{
return $foo;
}
return $bar;
}
PS: This only illustrates the 'issue' with the useless else statements.
Current PRs in this series:
nonumber
-
open
-
4 Mar 2015
joomla-cms-bot
-
change
-
4 Mar 2015
joomla-cms-bot
-
change
-
4 Mar 2015
joomla-cms-bot
-
change
-
6 Mar 2015
Title
Differences
…
Edit Edit Improved syntax: elses after returns/continues [com_checkin]
Edit Edit Improved syntax: elses after returns/continues [com_checkin]
nonumber
-
change
-
7 Mar 2015
Title
Differences
…
Edit Edit Improved syntax: elses after returns/continues [com_checkin]
Edit Edit Improved syntax: Reducing use of else statements, adding early return s [com_checkin]
nonumber
-
change
-
8 Mar 2015
Title
Differences
…
Edit Edit Improved syntax: Reducing use of else statements, adding early returns [com_checkin]
Improved syntax: Reducing use of else statements, adding early returns [com_checkin]
nonumber
-
change
-
8 Mar 2015
Title
Differences
…
Improved syntax: Reducing use of else statements, adding early returns [com_checkin]
[CODE SYNTAX] Reducing use of else statements, adding early returns [com_checkin]
nonumber
-
change
-
8 Mar 2015
Title
Differences
…
[CODE SYNTAX] Reducing use of else statements, adding early returns [com_checkin]
[CODE STYLE ] Reducing use of else statements, adding early returns [com_checkin]
nonumber
-
change
-
8 Mar 2015
Title
Differences
…
[CODE SYNTAX] Reducing use of else statements, adding early returns [com_checkin]
[CODE STYLE ] Reducing use of else statements, adding early returns [com_checkin]
yvesh
-
test_item
-
14 Mar 2015
-
Tested successfully
brianteeman
-
change
-
23 Jun 2015
Duke3D
-
test_item
-
24 Jul 2015
-
Not tested
nonumber
-
close
-
10 Aug 2015
nonumber
-
change
-
10 Aug 2015
Status
Pending
⇒
Closed
Closed_Date
0000-00-00 00:00:00
⇒
2015-08-10 18:22:33
Closed_By
⇒
nonumber
nonumber
-
close
-
10 Aug 2015
Add a Comment
Login with GitHub to post a comment
Haven't had any problems during testing and overlooking the code - you could do even some more cleanup though ;-)
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6305.