Completed
Push — master ( 66f018...e4c360 )
by Roman
22:35 queued 16:59
created
src/Controller/DataController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Mutator/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Mutator/Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
template_map.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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
 );
Please login to merge, or discard this patch.
src/Column/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/View/Helper/JqGrid/Column/Hidden.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $attributes = $column->getAttributes();
27 27
         $config = [
28 28
             'hidden' => true,
29
-            'hidedlg' => empty($attributes['hidedlg']) ? false: (bool)$attributes['hidedlg'],
29
+            'hidedlg' => empty($attributes['hidedlg']) ? false : (bool)$attributes['hidedlg'],
30 30
             'name' => $escape($column->getName())
31 31
         ];
32 32
         $config = array_merge($config, $column->getAttributes());
Please login to merge, or discard this patch.
src/Button/Factory.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * Создает экземпляр класса фабрики
53
-     * @param array|Traversable $spec
54 53
      * @throws InvalidButtonException
55 54
      * @throws InvalidNameException
56 55
      * @throws InValidSpecificationException
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/View/Helper/JqGrid/Grid.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     /**
118 118
      * @param string $key
119 119
      * @param array $options
120
-     * @param mixed $default
120
+     * @param string $default
121 121
      * @return null|string|array
122 122
      */
123 123
     protected function getConfigVal($key, array $options, $default = null)
Please login to merge, or discard this 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.
src/Button/ExpandAll.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  */
15 15
 class ExpandAll extends Simple
16 16
 {
17
-    protected $name ='expandall';
17
+    protected $name = 'expandall';
18 18
 
19 19
     protected $title = 'Развернуть все';
20 20
 
Please login to merge, or discard this patch.