Completed
Push — master ( a7ae23...b30b3b )
by Thomas
09:53
created
src/model/User.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 		$obj->setVerb($options['verb']);
44 44
 		$obj->setObject($this->getActivityObject($options['object']));
45 45
 		if (isset($options['target'])) {
46
-		    $obj->setTarget($this->getActivityObject($options['target']));
46
+			$obj->setTarget($this->getActivityObject($options['target']));
47 47
 		}
48 48
 		$obj->save();
49 49
 	}
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 	private function findActivityObject(ActivityObject $ao) {
55 55
 		$q = ActivityObjectQuery::create()->filterByClassName($ao->getClassName())->filterByType($ao->getType())->filterByReferenceId($ao->getId());
56 56
 		if (method_exists($ao, 'getVersion')) {
57
-		    $version = $ao->getVersion();
58
-		    if (!empty($version)) {
59
-		        $q = $q->filterByVersion($version);
60
-		    }
57
+			$version = $ao->getVersion();
58
+			if (!empty($version)) {
59
+				$q = $q->filterByVersion($version);
60
+			}
61 61
 		}
62 62
 		$result = $q->findOne();
63 63
 		if ($result) {
64
-		    $result->setDisplayName($ao->getDisplayName());
65
-		    return $result;
64
+			$result->setDisplayName($ao->getDisplayName());
65
+			return $result;
66 66
 		}
67 67
 		return $ao;
68 68
 	}
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	private function getActivityObject($obj) {
74 74
 		if ($obj instanceof ActivityObject) {
75
-		    return $obj;
75
+			return $obj;
76 76
 		}
77 77
 		if ($obj instanceof ActivityObjectInterface) {
78
-		    return $this->findActivityObject($obj->toActivityObject());
78
+			return $this->findActivityObject($obj->toActivityObject());
79 79
 		}
80 80
 	}
81 81
 }
Please login to merge, or discard this patch.