@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | if (count($this->getConditions()) !== 0) { |
| 112 | 112 | foreach ($this->getConditions() as $condition) { |
| 113 | 113 | if ($i === 0) { |
| 114 | - $query->where($condition->getKey() . ' ' . $condition->getCriteria() . ' ?'); |
|
| 114 | + $query->where($condition->getKey().' '.$condition->getCriteria().' ?'); |
|
| 115 | 115 | } else { |
| 116 | - $query->andWhere($condition->getKey() . ' ' . $condition->getCriteria() . ' ?'); |
|
| 116 | + $query->andWhere($condition->getKey().' '.$condition->getCriteria().' ?'); |
|
| 117 | 117 | } |
| 118 | 118 | $query->setParameter($i, $condition->getValue()); |
| 119 | 119 | $i++; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | $query = clone $query; |
| 143 | 143 | $this->setCountQuery($query |
| 144 | - ->select('COUNT(DISTINCT ' . $this->getRootAlias() . '.id) AS total_results') |
|
| 144 | + ->select('COUNT(DISTINCT '.$this->getRootAlias().'.id) AS total_results') |
|
| 145 | 145 | ->resetQueryParts(['groupBy', 'orderBy']) |
| 146 | 146 | ->setMaxResults(1) |
| 147 | 147 | ); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | throw new Exception\InvalidGridNameException('Не задано имя таблицы для получения данных'); |
| 49 | 49 | } |
| 50 | 50 | /** @var GridInterface $grid */ |
| 51 | - $grid = $this->getServiceLocator()->get('GridManager')->get('grids.' . $gridName); |
|
| 51 | + $grid = $this->getServiceLocator()->get('GridManager')->get('grids.'.$gridName); |
|
| 52 | 52 | |
| 53 | 53 | $adapter = $grid->getAdapter(); |
| 54 | 54 | if ($adapter instanceof DoctrineDBAL) { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $view = $this->getView(); |
| 35 | 35 | /** @var EscapeHtml $escape */ |
| 36 | 36 | $escape = $view->plugin('escapeHtml'); |
| 37 | - $res = '<table id="grid-' . $escape($grid->getName()) . '"></table>'; |
|
| 37 | + $res = '<table id="grid-'.$escape($grid->getName()).'"></table>'; |
|
| 38 | 38 | /** @var PhpRenderer $view */ |
| 39 | 39 | $view = $this->getView(); |
| 40 | 40 | $config = $this->getGridConfig($grid); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $columnClass = get_class($column); |
| 43 | 43 | $columnPath = explode('\\', $columnClass); |
| 44 | 44 | $colName = array_pop($columnPath); |
| 45 | - $helperName = 'mteGridJqGrid' . $colName; |
|
| 45 | + $helperName = 'mteGridJqGrid'.$colName; |
|
| 46 | 46 | /** @var string $columnsJqOptions */ |
| 47 | 47 | $config['colModel'][] = $view->$helperName($column); |
| 48 | 48 | } |
@@ -52,17 +52,17 @@ discard block |
||
| 52 | 52 | foreach ($mutators as $mutator) { |
| 53 | 53 | if ($mutator instanceof HighlightMutatorInterface) { |
| 54 | 54 | $config['rowattr'] = '%rowAttrFunction%'; |
| 55 | - $rowAttr = 'function(rd) {' . |
|
| 56 | - 'if(rd.' . $mutator->getDataName() . ') {' |
|
| 57 | - . 'return {"class": rd.' . $mutator->getDataName() . '};' |
|
| 55 | + $rowAttr = 'function(rd) {'. |
|
| 56 | + 'if(rd.'.$mutator->getDataName().') {' |
|
| 57 | + . 'return {"class": rd.'.$mutator->getDataName().'};' |
|
| 58 | 58 | . '}' |
| 59 | 59 | . '}'; |
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | $view->headScript()->appendScript('$(function(){' |
| 64 | - . 'var grid = $("#grid-' . $grid->getName() . '").jqGrid(' |
|
| 65 | - . str_replace('"%rowAttrFunction%"', $rowAttr, json_encode((object)$config)) . ');});'); |
|
| 64 | + . 'var grid = $("#grid-'.$grid->getName().'").jqGrid(' |
|
| 65 | + . str_replace('"%rowAttrFunction%"', $rowAttr, json_encode((object)$config)).');});'); |
|
| 66 | 66 | return $res; |
| 67 | 67 | } |
| 68 | 68 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | if (array_key_exists('options', $spec) && $spec['options']) { |
| 58 | 58 | $options = $spec['options']; |
| 59 | 59 | } |
| 60 | - $className = __NAMESPACE__ . '\\' . ucfirst($spec['type']); |
|
| 60 | + $className = __NAMESPACE__.'\\'.ucfirst($spec['type']); |
|
| 61 | 61 | $reflectionClass = new ReflectionClass($className); |
| 62 | 62 | if (!$reflectionClass->isInstantiable()) { |
| 63 | 63 | throw new Exception\RuntimeException( |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $options = array_merge($this->getRouteOptions(), $this->getRowData()); |
| 69 | 69 | return '<a href="' |
| 70 | 70 | . $this->getUrl($urlHelper($this->getRouteName(), $this->getRouteParams(), $options)) |
| 71 | - . '">' . $value . '</a>'; |
|
| 71 | + . '">'.$value.'</a>'; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // Generated by ZF2's ./bin/templatemap_generator.php |
| 3 | 3 | return array( |
| 4 | - 'grid/data/get' => __DIR__ . '/view/grid/data/get.phtml', |
|
| 4 | + 'grid/data/get' => __DIR__.'/view/grid/data/get.phtml', |
|
| 5 | 5 | ); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | if (array_key_exists('options', $spec) && $spec['options']) { |
| 58 | 58 | $options = $spec['options']; |
| 59 | 59 | } |
| 60 | - $className = __NAMESPACE__ . '\\' . ucfirst($spec['type']); |
|
| 60 | + $className = __NAMESPACE__.'\\'.ucfirst($spec['type']); |
|
| 61 | 61 | $reflectionClass = new ReflectionClass($className); |
| 62 | 62 | if (!$reflectionClass->isInstantiable()) { |
| 63 | 63 | throw new Exception\RuntimeException( |