Completed
Push — master ( c83e64...747ac2 )
by Dmitry
03:33
created
src/Schema/Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $properties = (array) $properties;
51 51
         foreach ($properties as $property) {
52 52
             if (!$this->hasProperty($property)) {
53
-                throw new LogicException("Unknown property $property for " . $this->name);
53
+                throw new LogicException("Unknown property $property for ".$this->name);
54 54
             }
55 55
         }
56 56
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         if ($schema->hasIndex($this->getName(), $indexName)) {
63 63
             throw new LogicException("Index $indexName already exists!");
64 64
         }
65
-        if(!$arguments) {
65
+        if (!$arguments) {
66 66
             $arguments = [];
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function find($params = [], $oneItem = false)
45 45
     {
46
-        if(is_int($params)) {
46
+        if (is_int($params)) {
47 47
             $params = [
48 48
                 'id' => $params
49 49
             ];
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
         $values = [];
55 55
 
56 56
         sort($fields);
57
-        foreach($fields as $field) {
57
+        foreach ($fields as $field) {
58 58
             $values[] = $params[$field];
59 59
         }
60 60
 
61 61
         $index = implode('_', $fields);
62 62
 
63
-        if(!$index) {
63
+        if (!$index) {
64 64
             $index = 'id';
65 65
         }
66 66
 
Please login to merge, or discard this patch.