Completed
Pull Request — master (#23)
by Timothy
04:55
created
src/EnliteMonolog/Service/MonologServiceAbstractFactory.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@  discard block
 block discarded – undo
60 60
         return $this->createLogger($container, $requestedName);
61 61
     }
62 62
 
63
+    /**
64
+     * @param ContainerInterface $container
65
+     */
63 66
     private function createLogger($container, $requestedName)
64 67
     {
65 68
         $config = $this->getConfig($container);
@@ -70,7 +73,7 @@  discard block
 block discarded – undo
70 73
 
71 74
     /**
72 75
      * @param ServiceLocatorInterface|ContainerInterface $container
73
-     * @return array
76
+     * @return ContainerInterface
74 77
      */
75 78
     public function getConfig($container)
76 79
     {
Please login to merge, or discard this patch.
src/EnliteMonolog/Service/MonologServiceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
                     throw new RuntimeException(sprintf('Handler(%s) requires at least %d params. Only %d passed.', $handler['name'], $requiredArgsCount, count($handlerOptions)));
118 118
                 }
119 119
 
120
-                foreach($reflection->getConstructor()->getParameters() as $parameter) {
120
+                foreach ($reflection->getConstructor()->getParameters() as $parameter) {
121 121
                     if (!$parameter->isOptional() && !isset($handlerOptions[$parameter->getName()])) {
122 122
                         $argumentValue = array_shift($handlerOptions);
123 123
                     } elseif (isset($handlerOptions[$parameter->getName()])) {
Please login to merge, or discard this patch.