Passed
Pull Request — master (#24)
by Timothy
03:06
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 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
      * @param string $className
213 213
      * @param array  $arguments
214 214
      *
215
-     * @return object
215
+     * @return FormatterInterface
216 216
      * @throws \InvalidArgumentException If given arguments are not valid for provided className constructor.
217 217
      */
218 218
     private function createInstanceFromArguments($className, array $arguments)
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
      * @throws \Interop\Container\Exception\ContainerException
137 137
      * @throws RuntimeException
138 138
      */
139
-	public function createFormatter($container, $formatter)
140
-	{
141
-		if (is_string($formatter) && $container->has($formatter)) {
142
-			return $container->get($formatter);
143
-		}
139
+    public function createFormatter($container, $formatter)
140
+    {
141
+        if (is_string($formatter) && $container->has($formatter)) {
142
+            return $container->get($formatter);
143
+        }
144 144
 
145 145
         if (!isset($formatter['name'])) {
146 146
             throw new RuntimeException('Cannot create logger formatter');
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         }
170 170
 
171 171
         return $instance;
172
-	}
172
+    }
173 173
 
174 174
     /**
175 175
      * @param ServiceLocatorInterface|ContainerInterface $container
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
 
253 253
         $parameters = array();
254 254
 
255
-        foreach($constructor->getParameters() as $parameter) {
255
+        foreach ($constructor->getParameters() as $parameter) {
256 256
             $parameterName = $parameter->getName();
257 257
 
258 258
             if (array_key_exists($parameterName, $arguments)) {
Please login to merge, or discard this patch.