Passed
Push — master ( 023a58...c85858 )
by Mike
06:09 queued 03:34
created
src/CachedBuilder.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -166,24 +166,24 @@
 block discarded – undo
166 166
         return $this->cachedValue(func_get_args(), $cacheKey);
167 167
     }
168 168
 
169
-	/**
170
-	 * Get the relation instance for the given relation name.
171
-	 * This is overloaded so we can disable model cache on
172
-	 * relations if parent has disabled model caching.
173
-	 *
174
-	 * @param  string  $name
175
-	 * @return \Illuminate\Database\Eloquent\Relations\Relation
176
-	 */
177
-	public function getRelation($name)
178
-	{
179
-		$relation = parent::getRelation($name);
180
-
181
-		if(!$this->isCachable() && is_a($relation->getQuery(), self::class)){
182
-			$relation->getQuery()->disableModelCaching();
183
-		}
184
-
185
-		return $relation;
186
-	}
169
+    /**
170
+     * Get the relation instance for the given relation name.
171
+     * This is overloaded so we can disable model cache on
172
+     * relations if parent has disabled model caching.
173
+     *
174
+     * @param  string  $name
175
+     * @return \Illuminate\Database\Eloquent\Relations\Relation
176
+     */
177
+    public function getRelation($name)
178
+    {
179
+        $relation = parent::getRelation($name);
180
+
181
+        if(!$this->isCachable() && is_a($relation->getQuery(), self::class)){
182
+            $relation->getQuery()->disableModelCaching();
183
+        }
184
+
185
+        return $relation;
186
+    }
187 187
 
188 188
     protected function recursiveImplodeWithKey(array $items, string $glue = "_") : string
189 189
     {
Please login to merge, or discard this patch.