@@ -104,7 +104,7 @@ |
||
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 */ |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -100,12 +100,12 @@ |
||
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']) { |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -105,7 +105,7 @@ |
||
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) |
@@ -33,7 +33,7 @@ |
||
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'); |
@@ -66,14 +66,14 @@ |
||
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) |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -1,8 +1,8 @@ |
||
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 |
@@ -1,8 +1,8 @@ |
||
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 |