diff --git a/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php b/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php index 00ea9c95..07b42255 100644 --- a/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php +++ b/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php @@ -1,27 +1,23 @@ has('translator')){ + if ($serviceLocator->has('translator')) { /** @noinspection PhpParamsInspection */ $tableRow->setTranslator($serviceLocator->get('translator')); } return $tableRow; } - -} \ No newline at end of file +} diff --git a/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php b/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php index b6e16dcd..7e728f54 100644 --- a/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php +++ b/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php @@ -1,27 +1,23 @@ has('translator')){ + if ($serviceLocator->has('translator')) { /** @noinspection PhpParamsInspection */ $tableRow->setTranslator($serviceLocator->get('translator')); } return $tableRow; } - -} \ No newline at end of file +}