wiki.techinc.nl/includes/context
Derick Alangi 5479c37368 context: Cleanup is_null() checks and irrelevant else code paths
This class specifically has these 2 things in many cases and converts
into the use of a tenary operations.

Quoting @Thiemo_WMDE from Gerrit comment: "The ?: operator will skip
empty arrays, empty strings, as well as the string "0". But this is
not a problem here because the properties under test are all objects.
Objects are always considered true in PHP."

Sample change can be seen below as, from;
```
if ( !is_null( $this->skin )) {
    return $this->skin;
} else {
    return $this->getContext()->getSkin();
}

```

to

```
return $this->skin ?: $this->getContext()->getSkin();
```

Change-Id: I377b118d86a24c7bcb15512f6714e6201a3e36ee
2019-03-20 20:51:58 +01:00
..
ContextSource.php Replace call_user_func_array(), part 1 2018-06-04 23:39:04 -07:00
DerivativeContext.php context: Cleanup is_null() checks and irrelevant else code paths 2019-03-20 20:51:58 +01:00
IContextSource.php Improve 1-letter variable names in MutableContext and implementations 2018-01-07 15:53:55 +01:00
MutableContext.php Improve 1-letter variable names in MutableContext and implementations 2018-01-07 15:53:55 +01:00
RequestContext.php specialpage: Fix login crash caused by unknown language via ?uselang 2019-01-29 16:16:02 +00:00