Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dfc1c2

Browse files
Eloquent relations spaces to tabs
1 parent 5cb2d0d commit 0dfc1c2

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,9 @@ public function detach($ids = array(), $touch = true)
840840
*/
841841
public function touchIfTouching()
842842
{
843-
if ($this->touchingParent()) $this->getParent()->touch();
843+
if ($this->touchingParent()) $this->getParent()->touch();
844844

845-
if ($this->getParent()->touches($this->relationName)) $this->touch();
845+
if ($this->getParent()->touches($this->relationName)) $this->touch();
846846
}
847847

848848
/**

src/Illuminate/Database/Eloquent/Relations/MorphToMany.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,24 @@ public function newPivot(array $attributes = array(), $exists = false)
135135
return $pivot;
136136
}
137137

138-
/**
139-
* Get the foreign key "type" name.
140-
*
141-
* @return string
142-
*/
143-
public function getMorphType()
144-
{
145-
return $this->morphType;
146-
}
147-
148-
/**
149-
* Get the class name of the parent model.
150-
*
151-
* @return string
152-
*/
153-
public function getMorphClass()
154-
{
155-
return $this->morphClass;
156-
}
138+
/**
139+
* Get the foreign key "type" name.
140+
*
141+
* @return string
142+
*/
143+
public function getMorphType()
144+
{
145+
return $this->morphType;
146+
}
147+
148+
/**
149+
* Get the class name of the parent model.
150+
*
151+
* @return string
152+
*/
153+
public function getMorphClass()
154+
{
155+
return $this->morphClass;
156+
}
157157

158158
}

0 commit comments

Comments
 (0)