Skip to content

Commit de1eece

Browse files
authored
MAGETWO-75596: Simplify ternary operators #10969
2 parents 5806fcd + 0415356 commit de1eece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swagger/Block/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Index extends Template
1919
*/
2020
private function getParamStore()
2121
{
22-
return ($this->getRequest()->getParam('store')) ? $this->getRequest()->getParam('store') : 'all';
22+
return $this->getRequest()->getParam('store') ?: 'all';
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)