@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | |
20 | 20 | public function addPlugin($class) |
21 | 21 | { |
22 | - if(!is_subclass_of($class, Plugin::class)) { |
|
23 | - throw new Exception("Plugin should extend " . Plugin::class . " class"); |
|
22 | + if (!is_subclass_of($class, Plugin::class)) { |
|
23 | + throw new Exception("Plugin should extend ".Plugin::class." class"); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | $plugin = new $class($this); |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | |
49 | 49 | public function findRepository(Entity $instance) |
50 | 50 | { |
51 | - foreach($this->getSchema()->getSpaces() as $space) { |
|
52 | - if($space->getRepository()->knows($instance)) { |
|
51 | + foreach ($this->getSchema()->getSpaces() as $space) { |
|
52 | + if ($space->getRepository()->knows($instance)) { |
|
53 | 53 | return $space->getRepository(); |
54 | 54 | } |
55 | 55 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | public function getBootstrap() |
61 | 61 | { |
62 | - if(!$this->bootstrap) { |
|
62 | + if (!$this->bootstrap) { |
|
63 | 63 | $this->bootstrap = new Bootstrap($this); |
64 | 64 | } |
65 | 65 |