Completed
Push — master ( 6988c6...8f7a41 )
by Dmitry
05:00
created
src/Schema.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -114,6 +114,9 @@
 block discarded – undo
114 114
         return $this->spaces[$id];
115 115
     }
116 116
 
117
+    /**
118
+     * @param string $name
119
+     */
117 120
     public function getSpaceId($name)
118 121
     {
119 122
         if (!$this->hasSpace($name)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 
138 138
     public function once($name, $callback)
139 139
     {
140
-        $key = 'mapper-once' . $name;
140
+        $key = 'mapper-once'.$name;
141 141
 
142 142
         $rows = $this->mapper->find('_schema', ['key' => $key]);
143 143
         if (!count($rows)) {
Please login to merge, or discard this patch.
src/Plugin/Procedure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
     private function initSchema()
56 56
     {
57
-        $this->mapper->getSchema()->once(__CLASS__, function ($mapper) {
57
+        $this->mapper->getSchema()->once(__CLASS__, function($mapper) {
58 58
             $mapper->getSchema()
59 59
                 ->createSpace('_procedure')
60 60
                 ->addProperties([
Please login to merge, or discard this patch.
src/Space.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
             if (!$this->getPropertyType($property)) {
146 146
                 throw new Exception("Unknown property $property", 1);
147 147
             }
148
-            $options['parts'][] = $this->getPropertyIndex($property)+1;
148
+            $options['parts'][] = $this->getPropertyIndex($property) + 1;
149 149
             $options['parts'][] = $this->getPropertyType($property);
150 150
             $this->setPropertyNullable($property, false);
151 151
         }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -274,6 +274,9 @@
 block discarded – undo
274 274
         return $this->formatNamesHash[$name];
275 275
     }
276 276
 
277
+    /**
278
+     * @param string $name
279
+     */
277 280
     public function getReference($name)
278 281
     {
279 282
         return $this->isReference($name) ? $this->formatReferences[$name] : null;
Please login to merge, or discard this patch.
src/Mapper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function getPlugin($mixed)
21 21
     {
22 22
         if (!is_subclass_of($mixed, 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($mixed) ? $mixed : new $mixed($this);
Please login to merge, or discard this patch.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
         return $this->plugins[$class];
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $space
43
+     */
41 44
     public function create($space, $data)
42 45
     {
43 46
         return $this->getRepository($space)->create($data)->save();
@@ -48,6 +51,9 @@  discard block
 block discarded – undo
48 51
         return $this->getRepository($space)->findOne($params);
49 52
     }
50 53
 
54
+    /**
55
+     * @param string $space
56
+     */
51 57
     public function findOrCreate($space, $params = [])
52 58
     {
53 59
         return $this->getRepository($space)->findOrCreate($params)->save();
@@ -58,6 +64,9 @@  discard block
 block discarded – undo
58 64
         return $this->getRepository($space)->findOrFail($params);
59 65
     }
60 66
 
67
+    /**
68
+     * @param string $space
69
+     */
61 70
     public function find($space, $params = [])
62 71
     {
63 72
         return $this->getRepository($space)->find($params);
Please login to merge, or discard this patch.