Completed
Push — develop ( d003f8...f19694 )
by Roman
03:41
created
Module.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
src/AbstractGridManagerFactory.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@
 block discarded – undo
100 100
                 sprintf('Таблица с именем %s не найдена в конфиге гридов.', $gridName)
101 101
             );
102 102
         }
103
-        $gridConfig =& $gridsConfig[$gridName];
103
+        $gridConfig = & $gridsConfig[$gridName];
104 104
 
105 105
         if (!array_key_exists('class', $gridConfig) || !$gridConfig['class']) {
106 106
             throw new Exception\RuntimeException('Необходимо задать класс таблицы в конфиге.');
107 107
         }
108
-        $gridClass =& $gridConfig['class'];
108
+        $gridClass = & $gridConfig['class'];
109 109
 
110 110
         $options = [];
111 111
         if (array_key_exists('options', $gridConfig) && $gridConfig['options']) {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      * @param GridPluginManager | ServiceLocatorInterface $serviceLocator
106 106
      * @param $name
107 107
      * @param $requestedName
108
-     * @return mixed
108
+     * @return GridInterface
109 109
      * @throws Exception\RuntimeException
110 110
      */
111 111
     public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
Please login to merge, or discard this patch.
src/Condition/AbstractCondition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      * @param null | string | array | \Traversable $value
34 34
      * @throws Exception\InvalidArgumentException
35 35
      */
36
-    public function __construct($key, $criteria, $value=null)
36
+    public function __construct($key, $criteria, $value = null)
37 37
     {
38 38
         if (!$key) {
39 39
             throw new Exception\InvalidArgumentException('Не задан ключ для создания Condition');
Please login to merge, or discard this patch.
src/Adapter/Factory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,14 +66,14 @@
 block discarded – undo
66 66
         if (!array_key_exists('class', $spec) || !$spec['class']) {
67 67
             throw new Exception\RuntimeException('Секция адаптера для таблицы существует, но не задан класс адаптера');
68 68
         }
69
-        $adapterClass =& $spec['class'];
69
+        $adapterClass = & $spec['class'];
70 70
         if (!class_exists($adapterClass)) {
71 71
             throw new Exception\AdapterNotFoundException(sprintf('Adapter %s не найден.', $adapterClass));
72 72
         }
73 73
 
74 74
         $adapter = $this->createAdapter($adapterClass, $spec);
75 75
         if (array_key_exists('options', $spec) && $spec['options']) {
76
-            $options =& $adapter['options'];
76
+            $options = & $adapter['options'];
77 77
             if (!$options instanceof ArrayAccess && !is_array($options)) {
78 78
                 throw new InvalidOptionsException(
79 79
                     sprintf('Опции для адаптера должны быть массивом или реализовывать %s', ArrayAccess::class)
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
src/Mutator/GridMutatorProviderInterface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
src/Mutator/Link.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
src/Mutator/Money.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
src/Mutator/GridMutatorPluginManagerFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.
src/Mutator/GridMutatorPluginManager.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @company MTE Telecom, Ltd.
4
- * @author Roman Malashin <[email protected]>
5
- */
3
+     * @company MTE Telecom, Ltd.
4
+     * @author Roman Malashin <[email protected]>
5
+     */
6 6
 
7 7
 namespace NNX\DataGrid\Exception;
8 8
 
Please login to merge, or discard this patch.