@@ -6,12 +6,12 @@ |
||
6 | 6 | |
7 | 7 | $pool = new ObjectPool(); |
8 | 8 | |
9 | -try{ |
|
9 | +try { |
|
10 | 10 | $pool->setObject(new SomeObject("First")); |
11 | 11 | $pool->setObject(new SomeObject("Second")); |
12 | 12 | |
13 | 13 | printf("Your object is %s \n", $pool->getObject("First")->getName()); |
14 | 14 | printf("Your object is %s \n", $pool->getObject("Second")->getName()); |
15 | 15 | } catch (\Exception $e) { |
16 | - echo "Caught exception: ", $e->getMessage(), "\n"; |
|
16 | + echo "Caught exception: ", $e->getMessage(), "\n"; |
|
17 | 17 | } |