Completed
Push — master ( def081...d6ee9b )
by James Ekow Abaka
02:35
created
src/relationships/BelongsToRelationship.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@
 block discarded – undo
47 47
     {
48 48
         $model = InjectionContainer::resolve(Nibii::getClassName($this->options['model'], self::BELONGS_TO));
49 49
         $table = $model->getDBStoreInformation()['table'];
50
-        if($this->options['foreign_key'] == null) {
50
+        if ($this->options['foreign_key'] == null) {
51 51
             $this->options['foreign_key'] = $model->getDescription()->getPrimaryKey()[0];
52 52
         }
53
-        if($this->options['local_key'] == null) {
54
-            $this->options['local_key'] = Text::singularize($table) . '_id';
53
+        if ($this->options['local_key'] == null) {
54
+            $this->options['local_key'] = Text::singularize($table).'_id';
55 55
         }
56 56
     }
57 57
 }
Please login to merge, or discard this patch.