Completed
Push — master ( 4aff6e...f50da1 )
by Dmitry
02:26
created
src/Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
     public function once($name, $callback)
92 92
     {
93
-        $key = 'once' . $name;
93
+        $key = 'once'.$name;
94 94
 
95 95
         $rows = $this->mapper->find('_schema', ['key' => $key]);
96 96
         if (!count($rows)) {
Please login to merge, or discard this patch.
src/Space.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
             if (!$this->getPropertyType($property)) {
114 114
                 throw new Exception("Unknown property $property", 1);
115 115
             }
116
-            $options['parts'][] = $this->getPropertyIndex($property)+1;
116
+            $options['parts'][] = $this->getPropertyIndex($property) + 1;
117 117
             $options['parts'][] = $this->getPropertyType($property);
118 118
         }
119 119
 
Please login to merge, or discard this patch.
src/Mapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function addPlugin($class)
21 21
     {
22 22
         if (!is_subclass_of($class, Plugin::class)) {
23
-            throw new Exception("Plugin should extend " . Plugin::class . " class");
23
+            throw new Exception("Plugin should extend ".Plugin::class." class");
24 24
         }
25 25
 
26 26
         $plugin = is_object($class) ? $class : new $class($this);
Please login to merge, or discard this patch.
src/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             if (!is_object($migration)) {
25 25
                 $migration = new $migration;
26 26
             }
27
-            $schema->once(get_class($migration), function () use ($migration) {
27
+            $schema->once(get_class($migration), function() use ($migration) {
28 28
                 $migration->migrate($this->mapper);
29 29
             });
30 30
         }
Please login to merge, or discard this patch.
src/Plugin/UserClasses.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         }
37 37
 
38 38
         if (!is_subclass_of($class, Entity::class)) {
39
-            throw new Exception("Entity should extend " . Entity::class . " class");
39
+            throw new Exception("Entity should extend ".Entity::class." class");
40 40
         }
41 41
 
42 42
         $this->entityMapping[$space] = $class;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         if (!is_subclass_of($class, Repository::class)) {
54
-            throw new Exception("Repository should extend " . Repository::class . " class");
54
+            throw new Exception("Repository should extend ".Repository::class." class");
55 55
         }
56 56
 
57 57
         $this->repositoryMapping[$space] = $class;
Please login to merge, or discard this patch.
src/Plugin/Annotation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function validateSpace($space)
56 56
     {
57
-        foreach($this->entityClasses as $class) {
58
-            if($this->getSpaceName($class) == $space) {
57
+        foreach ($this->entityClasses as $class) {
58
+            if ($this->getSpaceName($class) == $space) {
59 59
                 return true;
60 60
             }
61 61
         }
62 62
 
63
-        foreach($this->repositoryClasses as $class) {
64
-            if($this->getSpaceName($class) == $space) {
63
+        foreach ($this->repositoryClasses as $class) {
64
+            if ($this->getSpaceName($class) == $space) {
65 65
                 return true;
66 66
             }
67 67
         }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         foreach ($schema->getSpaces() as $space) {
137 137
             if (!count($space->getIndexes())) {
138 138
                 if (!$space->hasProperty('id')) {
139
-                    throw new Exception("No primary index on ". $space->getName());
139
+                    throw new Exception("No primary index on ".$space->getName());
140 140
                 }
141 141
                 $space->addIndex(['id']);
142 142
             }
Please login to merge, or discard this patch.