Passed
Branch master (ae28f9)
by Alexey
03:06
created
src/Container/src/Exception/UnresolvableDependencyException.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * @inheritDoc
20 20
      * @param ArgumentResolverException $previous
21
+     * @param string $entryId
21 22
      */
22 23
     public function __construct($entryId, array $referenceChain, ArgumentResolverException $previous)
23 24
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
     private function formatFunction(ReflectionFunctionAbstract $function)
49 49
     {
50 50
         return $function instanceof ReflectionMethod ?
51
-            $function->getDeclaringClass()->getName() . '::' . $function->getName() :
52
-            $function->getName();
51
+            $function->getDeclaringClass()->getName() . '::' . $function->getName() : $function->getName();
53 52
     }
54 53
 
55 54
     /**
@@ -61,7 +60,6 @@  discard block
 block discarded – undo
61 60
     private function formatParameter(ReflectionParameter $parameter): string
62 61
     {
63 62
         return $parameter->hasType() ?
64
-            sprintf('%s $%s', $parameter->getType(), $parameter->getName()) :
65
-            sprintf('$%s', $parameter->getName());
63
+            sprintf('%s $%s', $parameter->getType(), $parameter->getName()) : sprintf('$%s', $parameter->getName());
66 64
     }
67 65
 }
68 66
\ No newline at end of file
Please login to merge, or discard this patch.
src/Contracts/src/Http/Cookie.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * Method that transforms Class to a plain text to include it in Response header
55 55
      *
56
-     * @return mixed
56
+     * @return string
57 57
      */
58 58
     public function asPlainText();
59 59
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function getName();
74 74
 
75 75
     /**
76
-     * @return string;
76
+     * @return string|null
77 77
      */
78 78
     public function getValue();
79 79
 
Please login to merge, or discard this patch.
src/Framework/ErrorHandler/ErrorHandlerLogger.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * ErrorHandlerLogger constructor.
27 27
      *
28
-     * @param LoggerInterface $logger
28
+     * @param \Psr\Log\LoggerInterface $logger
29 29
      */
30 30
     public function __construct(LoggerInterface $logger)
31 31
     {
Please login to merge, or discard this patch.
src/Mail/src/EventDispatcherAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * @param \Swift_Events_EventObject $evt
46
-     * @param $target
46
+     * @param string $target
47 47
      * @return string
48 48
      */
49 49
     protected function normalizeEventName(Swift_Events_EventObject $evt, $target)
Please login to merge, or discard this patch.
src/Mail/src/Mailer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
     /**
224 224
      * Returns proper transport closure factory
225 225
      *
226
-     * @param $transportName
226
+     * @param string $transportName
227 227
      * @return \Closure
228 228
      */
229 229
     protected function getTransport($transportName)
Please login to merge, or discard this patch.
src/Routing/src/Route.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     /**
79 79
      * Route constructor.
80 80
      *
81
-     * @param array $methods
81
+     * @param string[] $methods
82 82
      * @param string $path
83 83
      * @param string $responder
84 84
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -321,8 +321,7 @@
 block discarded – undo
321 321
     {
322 322
         $route = clone $this;
323 323
         $route->path = $prefix == '/' || $prefix == '' ?
324
-            $route->path :
325
-            sprintf('/%s/%s', trim($prefix, '/'), ltrim($route->path, '/'));
324
+            $route->path : sprintf('/%s/%s', trim($prefix, '/'), ltrim($route->path, '/'));
326 325
 
327 326
         return $route;
328 327
     }
Please login to merge, or discard this patch.
src/Container/src/Container.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     public function __construct()
95 95
     {
96 96
         $this->setArgumentResolver(new ArgumentResolver($this))
97
-             ->setObjectInflector(new ObjectInflector($this->argumentResolver));
97
+                ->setObjectInflector(new ObjectInflector($this->argumentResolver));
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,6 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
     /**
179 179
      * @inheritDoc
180
+     * @param string $id
180 181
      */
181 182
     public function get($id, array $arguments = [])
182 183
     {
@@ -397,7 +398,7 @@  discard block
 block discarded – undo
397 398
     /**
398 399
      * Verifies that provided callable can be called by service container.
399 400
      *
400
-     * @param $normalizedCallable
401
+     * @param callable $normalizedCallable
401 402
      * @return bool
402 403
      */
403 404
     private function isResolvableCallable($normalizedCallable): bool
Please login to merge, or discard this patch.
src/Console/src/Command.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * Helper method to get input argument
37 37
      *
38 38
      * @param string $name
39
-     * @return mixed
39
+     * @return string
40 40
      */
41 41
     public function arg(string $name)
42 42
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * Returns command arguments array
95 95
      * Values must be instances of InputArgument
96 96
      *
97
-     * @return array|InputArgument[]
97
+     * @return \Symfony\Component\Console\Input\InputArgument[]
98 98
      */
99 99
     public function returnArguments(): array
100 100
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * Returns command options array
106 106
      * Values must be instances of InputOption
107 107
      *
108
-     * @return array|InputOption[]
108
+     * @return \Symfony\Component\Console\Input\InputOption[]
109 109
      */
110 110
     public function returnOptions(): array
111 111
     {
Please login to merge, or discard this patch.
src/Contracts/src/Container/Container.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param string $id Contract (interface) name.
29 29
      * @param string $class Contract implementation class name.
30 30
      * @param bool $shared
31
+     * @return void
31 32
      */
32 33
     public function bindClass(string $id, string $class, $shared = false);
33 34
 
@@ -37,6 +38,7 @@  discard block
 block discarded – undo
37 38
      * @param string $id
38 39
      * @param callable $callable
39 40
      * @param bool $shared
41
+     * @return void
40 42
      */
41 43
     public function bindFactory(string $id, $callable, $shared = false);
42 44
 
@@ -45,6 +47,7 @@  discard block
 block discarded – undo
45 47
      *
46 48
      * @param string $id
47 49
      * @param object $instance
50
+     * @return void
48 51
      */
49 52
     public function bindInstance(string $id, $instance);
50 53
 
@@ -53,6 +56,7 @@  discard block
 block discarded – undo
53 56
      *
54 57
      * @param $callable
55 58
      * @param array $arguments
59
+     * @return \Venta\Contracts\Http\Request
56 60
      */
57 61
     public function call($callable, array $arguments = []);
58 62
 
@@ -61,6 +65,7 @@  discard block
 block discarded – undo
61 65
      *
62 66
      * @param $id
63 67
      * @param callable $callback
68
+     * @return void
64 69
      */
65 70
     public function decorate($id, callable $callback);
66 71
 
Please login to merge, or discard this patch.