Skip to content

Commit 0415356

Browse files
committed
MAGETWO-75596: Simplify ternary operators #10969
- Merge Pull Request #10969 from ihor-sviziev/magento2:patch-7 - Merged commits: 1. b6bb2ed
2 parents ecefd85 + b6bb2ed commit 0415356

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)