Completed
Pull Request — master (#16)
by
unknown
12:38 queued 25s
created
src/Adapter/DoctrineDBAL.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
         $i = 0;
114 114
         if (count($this->getConditions()) !== 0) {
115 115
             foreach ($this->getConditions() as $condition) {
116
-                $conditionKey = 'NNXGridCondition_' . $i;
117
-                $query->andWhere($condition->getKey() . ' ' . $condition->getCriteria() . ' :' . $conditionKey);
116
+                $conditionKey = 'NNXGridCondition_'.$i;
117
+                $query->andWhere($condition->getKey().' '.$condition->getCriteria().' :'.$conditionKey);
118 118
                 $query->setParameter($conditionKey, $condition->getValue());
119 119
                 $i++;
120 120
             }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.
src/View/Helper/JqGrid/Grid.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
         $escape = $view->plugin('escapeHtml');
40 40
         $bottomNavigationBar = $this->renderNavigationBar($grid->getBottomNavigationBar());
41 41
         $topNavigationBar = $this->renderNavigationBar($grid->getTopNavigationBar());
42
-        $res = $topNavigationBar['html'] . '<table id="grid-' . $escape($grid->getName()) . '"></table>' . $bottomNavigationBar['html'];
43
-        $buttonsJs = $topNavigationBar['js'] . $bottomNavigationBar['js'];
42
+        $res = $topNavigationBar['html'].'<table id="grid-'.$escape($grid->getName()).'"></table>'.$bottomNavigationBar['html'];
43
+        $buttonsJs = $topNavigationBar['js'].$bottomNavigationBar['js'];
44 44
         /** @var PhpRenderer $view */
45 45
         $view = $this->getView();
46 46
         $config = $this->getGridConfig($grid);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $columnClass = get_class($column);
49 49
             $columnPath = explode('\\', $columnClass);
50 50
             $colName = array_pop($columnPath);
51
-            $helperName = 'nnxGridJqGrid' . $colName;
51
+            $helperName = 'nnxGridJqGrid'.$colName;
52 52
             /** @var string $columnsJqOptions */
53 53
             $config['colModel'][] = $view->$helperName($column);
54 54
         }
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
             foreach ($mutators as $mutator) {
59 59
                 if ($mutator instanceof HighlightMutatorInterface) {
60 60
                     $config['rowattr'] = '%rowAttrFunction%';
61
-                    $rowAttr = 'function(rd) {' .
62
-                        'if(rd.' . $mutator->getDataName() . ') {'
63
-                        . 'return {"class": rd.' . $mutator->getDataName() . '};'
61
+                    $rowAttr = 'function(rd) {'.
62
+                        'if(rd.'.$mutator->getDataName().') {'
63
+                        . 'return {"class": rd.'.$mutator->getDataName().'};'
64 64
                         . '}'
65 65
                         . '}';
66 66
                 }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if ($grid instanceof PaginatorGridInterface) {
72 72
             $config['rowNum'] = $grid->getPaginator()->getItemCountPerPage();
73 73
             $config['rowList'] = $grid->getPaginator()->getPossibleItemCountPerPage();
74
-            $config['pager'] = 'pager-grid-' . $gridName;
74
+            $config['pager'] = 'pager-grid-'.$gridName;
75 75
             $res .= "<div id='pager-grid-{$gridName}'>";
76 76
         }
77 77
 
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
         );
83 83
 
84 84
         $view->headScript()->appendScript('$(function(){'
85
-            . 'var grid = $("#grid-' . $grid->getName() . '").jqGrid('
86
-            . str_replace('"%rowAttrFunction%"', $rowAttr, $options) . ');'
87
-            . str_replace('%gridName%', $grid->getName(), $buttonsJs) . '});');
85
+            . 'var grid = $("#grid-'.$grid->getName().'").jqGrid('
86
+            . str_replace('"%rowAttrFunction%"', $rowAttr, $options).');'
87
+            . str_replace('%gridName%', $grid->getName(), $buttonsJs).'});');
88 88
         return $res;
89 89
     }
90 90
 
Please login to merge, or discard this patch.