Completed
Push — master ( c6c7be...0e91e4 )
by Maxim
03:22
created
src/Weew/Container/Registry.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     }
83 83
 
84 84
     /**
85
-     * @param $id
85
+     * @param string $id
86 86
      *
87 87
      * @return bool
88 88
      */
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-     * @param $id
94
+     * @param string $id
95 95
      */
96 96
     public function removeDefinition($id) {
97 97
         $index = $this->getDefinitionIndex($id);
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * @param $id
178 178
      *
179
-     * @return int|null|string
179
+     * @return integer|null
180 180
      */
181 181
     public function getDefinitionIndex($id) {
182 182
         $definition = $this->getDefinition($id);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
     /**
212 212
      * @param $string
213
-     * @param $pattern
213
+     * @param string $pattern
214 214
      *
215 215
      * @return bool
216 216
      */
Please login to merge, or discard this patch.
src/Weew/Container/Exceptions/UnresolveableArgumentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         $functionName = $this->getFunctionName();
13 13
 
14 14
         if ($className !== null && $methodName !== null) {
15
-            $callable = $className . '::' . $methodName;;
15
+            $callable = $className . '::' . $methodName; ;
16 16
         } else {
17 17
             $callable = $functionName;
18 18
         }
Please login to merge, or discard this patch.
src/Weew/Container/Container.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
      * @throws ValueNotFoundException
54 54
      */
55 55
     public function get($id, array $args = []) {
56
-        return $this->rethrowExceptions(function () use ($id, $args) {
56
+        return $this->rethrowExceptions(function() use ($id, $args) {
57 57
             $value = null;
58
-            $definition =  $this->registry->getDefinition($id);
58
+            $definition = $this->registry->getDefinition($id);
59 59
 
60 60
             if ($definition instanceof IDefinition) {
61 61
                 $value = $this->resolver->resolveDefinition($definition, $id, $args);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      * @return mixed
129 129
      */
130 130
     public function call($callable, array $args = []) {
131
-        return $this->rethrowExceptions(function () use ($callable, $args) {
131
+        return $this->rethrowExceptions(function() use ($callable, $args) {
132 132
             return $this->reflector
133 133
                 ->resolveCallable($this, $callable, $args);
134 134
         });
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @throws ValueNotFoundException
146 146
      */
147 147
     public function callFunction($function, array $args = []) {
148
-        return $this->rethrowExceptions(function () use ($function, $args) {
148
+        return $this->rethrowExceptions(function() use ($function, $args) {
149 149
             return $this->reflector
150 150
                 ->resolveFunction($this, $function, $args);
151 151
         });
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * @return mixed
160 160
      */
161 161
     public function callMethod($instance, $method, array $args = []) {
162
-        return $this->rethrowExceptions(function () use ($instance, $method, $args) {
162
+        return $this->rethrowExceptions(function() use ($instance, $method, $args) {
163 163
             return $this->reflector
164 164
                 ->resolveMethod($this, $instance, $method, $args);
165 165
         });
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @return mixed
174 174
      */
175 175
     public function callStaticMethod($class, $method, array $args = []) {
176
-        return $this->rethrowExceptions(function () use ($class, $method, $args) {
176
+        return $this->rethrowExceptions(function() use ($class, $method, $args) {
177 177
             return $this->reflector
178 178
                 ->resolveMethod($this, $class, $method, $args);
179 179
         });
Please login to merge, or discard this patch.