Completed
Push — master ( e4c360...61fa71 )
by Roman
44s
created
src/Adapter/Factory.php 1 patch
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 =& $spec['options'];
76
+            $options = & $spec['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.