@@ -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) |
@@ -47,7 +47,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 */ |
@@ -31,9 +31,9 @@ |
||
| 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' |
@@ -10,7 +10,7 @@ |
||
| 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( |
@@ -74,7 +74,7 @@ |
||
| 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]); |
@@ -48,7 +48,7 @@ |
||
| 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) { |
@@ -57,7 +57,7 @@ |
||
| 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( |
@@ -68,7 +68,7 @@ |
||
| 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 | |