Completed
Push — master ( a2a057...a8d92e )
by Roman
04:13
created
src/Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function get($id, array $parameters = [])
189 189
     {
190
-        if($this->level++ > static::MAX_DEPENDENCY_LEVEL){
190
+        if ($this->level++ > static::MAX_DEPENDENCY_LEVEL) {
191 191
             throw new ContainerException('Circular dependency.');
192 192
         }
193 193
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
             } else if ($parameter->isDefaultValueAvailable()) {
311 311
                 $resolved[] = $parameter->getDefaultValue();
312 312
             } else {
313
-                throw new ContainerException('Parameter "'.$parameter->name.'" not passed.');
313
+                throw new ContainerException('Parameter "' . $parameter->name . '" not passed.');
314 314
             }
315 315
         }
316 316
 
Please login to merge, or discard this patch.
src/TestService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     use InjectableTrait;
17 17
 
18
-    public function testCall(TestServiceProvider $param1){
18
+    public function testCall(TestServiceProvider $param1) {
19 19
         return $param1;
20 20
     }
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
src/TestService2.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: mindkicker
5
- * Date: 16.02.16
6
- * Time: 16:10
7
- */
3
+     * Created by PhpStorm.
4
+     * User: mindkicker
5
+     * Date: 16.02.16
6
+     * Time: 16:10
7
+     */
8 8
 
9 9
 namespace Lebran;
10 10
 
Please login to merge, or discard this patch.
src/TestServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: mindkicker
5
- * Date: 16.02.16
6
- * Time: 16:03
7
- */
3
+     * Created by PhpStorm.
4
+     * User: mindkicker
5
+     * Date: 16.02.16
6
+     * Time: 16:03
7
+     */
8 8
 
9 9
 namespace Lebran;
10 10
 
Please login to merge, or discard this patch.
tests/ContainerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         return [
131 131
             ['Lebran\TestService'],
132 132
             [new TestService()],
133
-            [function(){
133
+            [function() {
134 134
                 return new TestService();
135 135
             }]
136 136
         ];
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     public function testClosureThisMustBeContainer()
262 262
     {
263 263
         $di = new Container();
264
-        $di->set('test', function(){
264
+        $di->set('test', function() {
265 265
             return $this;
266 266
         });
267 267
 
@@ -282,9 +282,9 @@  discard block
 block discarded – undo
282 282
     public function providerCall()
283 283
     {
284 284
         return [
285
-            [['Lebran\TestService','testCall']],
285
+            [['Lebran\TestService', 'testCall']],
286 286
             [
287
-                function(TestServiceProvider $test){
287
+                function(TestServiceProvider $test) {
288 288
                     return $test;
289 289
                 }
290 290
             ]
Please login to merge, or discard this patch.