function setParameter( $subpage ) {
// parse $subpage to pull out the parts
$parts = explode( '/', $subpage, 2 );
- $this->mType = count( $parts ) > 0 ? $parts[0] : null;
- $this->mValue = count( $parts ) > 1 ? $parts[1] : null;
+ $this->mType = $parts[0];
+ $this->mValue = $parts[1] ?? null;
}
/**