Skip to content

Commit

Permalink
run cs update.....
Browse files Browse the repository at this point in the history
  • Loading branch information
kokspflanze committed Mar 29, 2016
1 parent 5f8451d commit cec8bcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
<?php


namespace ZfcDatagrid\Renderer\BootstrapTable\View\Helper;


use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class TableRowFactory implements FactoryInterface
{
/**
* @param ServiceLocatorInterface $serviceLocator
* @param ServiceLocatorInterface $serviceLocator
* @return TableRow
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
$tableRow = new TableRow();
if($serviceLocator->has('translator')){
if ($serviceLocator->has('translator')) {
/** @noinspection PhpParamsInspection */
$tableRow->setTranslator($serviceLocator->get('translator'));
}

return $tableRow;
}

}
}
10 changes: 3 additions & 7 deletions src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
<?php


namespace ZfcDatagrid\Renderer\JqGrid\View\Helper;


use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class ColumnsFactory implements FactoryInterface
{
/**
* @param ServiceLocatorInterface $serviceLocator
* @param ServiceLocatorInterface $serviceLocator
* @return Columns
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
$tableRow = new Columns();
if($serviceLocator->has('translator')){
if ($serviceLocator->has('translator')) {
/** @noinspection PhpParamsInspection */
$tableRow->setTranslator($serviceLocator->get('translator'));
}

return $tableRow;
}

}
}

0 comments on commit cec8bcb

Please sign in to comment.