Completed
Push — master ( 0af06b...a63327 )
by Roman
04:47
created
Module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function getConfig()
49 49
     {
50
-        return require __DIR__ . '/config/module.config.php';
50
+        return require __DIR__.'/config/module.config.php';
51 51
     }
52 52
 
53 53
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function getAutoloaderConfig()
59 59
     {
60 60
         $config = [];
61
-        $autoloadFile = __DIR__ . '/autoload_classmap.php';
61
+        $autoloadFile = __DIR__.'/autoload_classmap.php';
62 62
         if (file_exists($autoloadFile)) {
63 63
             $config['Zend\Loader\ClassMapAutoloader'] = [
64 64
                 $autoloadFile
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
         $config['Zend\Loader\StandardAutoloader'] = [
68 68
             'namespaces' => [
69
-                __NAMESPACE__ => __DIR__ . '/src'
69
+                __NAMESPACE__ => __DIR__.'/src'
70 70
             ]
71 71
         ];
72 72
         return $config;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function init(ModuleManagerInterface $manager)
105 105
     {
106 106
         if (!$manager instanceof ModuleManager) {
107
-            $errMsg =sprintf('Менеджер модулей должен реализовывать %s', ModuleManager::class);
107
+            $errMsg = sprintf('Менеджер модулей должен реализовывать %s', ModuleManager::class);
108 108
             throw new Exception\RuntimeException($errMsg);
109 109
         }
110 110
         /** @var ModuleManager $manager */
Please login to merge, or discard this patch.
config/module.config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
             ),
32 32
         ),
33 33
         'view_manager' => [
34
-            'template_map' => include __DIR__ . '/../template_map.php',
34
+            'template_map' => include __DIR__.'/../template_map.php',
35 35
             'template_path_stack' => [
36
-                'mteGridGrid' => __DIR__ . '/../view',
36
+                'mteGridGrid' => __DIR__.'/../view',
37 37
             ],
38 38
             'strategies' => [
39 39
                 'ViewJsonStrategy'
Please login to merge, or discard this patch.
config/assetic.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     'assetic_configuration' => [
11 11
         'modules' => [
12 12
             'Nnx\DataGrid' => [
13
-                'root_path' => __DIR__ . '/../assets',
13
+                'root_path' => __DIR__.'/../assets',
14 14
                 'collections' => [
15 15
                     'mtegrid_grid_images' => array(
16 16
                         'assets' => array(
Please login to merge, or discard this patch.
src/Column/AbstractColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     protected function setProperty($key, &$options)
75 75
     {
76 76
         if (array_key_exists($key, $options)) {
77
-            $setter = 'set' . ucfirst($key);
77
+            $setter = 'set'.ucfirst($key);
78 78
             if (method_exists($this, $setter)) {
79 79
                 $this->$setter($options[$key]);
80 80
                 unset($options[$key]);
Please login to merge, or discard this patch.
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.
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/Adapter/DoctrineDBAL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         if (count($this->getConditions()) !== 0) {
112 112
             foreach ($this->getConditions() as $condition) {
113 113
                 $conditionKey = 'NNXGridCondition_'.$i;
114
-                $query->andWhere($condition->getKey() . ' ' . $condition->getCriteria() . ' :'.$conditionKey);
114
+                $query->andWhere($condition->getKey().' '.$condition->getCriteria().' :'.$conditionKey);
115 115
                 $query->setParameter($conditionKey, $condition->getValue());
116 116
                 $i++;
117 117
             }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                 }
139 139
                 $query = clone $query;
140 140
                 $this->setCountQuery($query
141
-                    ->select('COUNT(DISTINCT ' . $this->getRootAlias() . '.id) AS total_results')
141
+                    ->select('COUNT(DISTINCT '.$this->getRootAlias().'.id) AS total_results')
142 142
                     ->resetQueryParts(['groupBy', 'orderBy'])
143 143
                     ->setMaxResults(1)
144 144
                 );
Please login to merge, or discard this patch.