Completed
Push — master ( 1a1676...f7e1a1 )
by Thomas
04:58
created
src/model/User.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$obj->setVerb($options['verb']);
56 56
 		$obj->setObject($this->getActivityObject($options['object'], true));
57 57
 		if (isset($options['target'])) {
58
-		    $obj->setTarget($this->getActivityObject($options['target']));
58
+			$obj->setTarget($this->getActivityObject($options['target']));
59 59
 		}
60 60
 		$obj->save();
61 61
 	}
@@ -71,15 +71,15 @@  discard block
 block discarded – undo
71 71
 			->filterByReferenceId($ao->getReferenceId());
72 72
 
73 73
 		if (method_exists($ao, 'getVersion') && $isObject) {
74
-		    $version = $ao->getVersion();
75
-		    if (!empty($version)) {
76
-		        $q = $q->filterByVersion($version);
77
-		    }
74
+			$version = $ao->getVersion();
75
+			if (!empty($version)) {
76
+				$q = $q->filterByVersion($version);
77
+			}
78 78
 		}
79 79
 		$result = $q->findOne();
80 80
 		if ($result) {
81
-		    $result->setDisplayName($ao->getDisplayName());
82
-		    return $result;
81
+			$result->setDisplayName($ao->getDisplayName());
82
+			return $result;
83 83
 		}
84 84
 		return $ao;
85 85
 	}
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	private function getActivityObject($obj, $isObject = false) {
92 92
 		if ($obj instanceof ActivityObject) {
93
-		    return $obj;
93
+			return $obj;
94 94
 		}
95 95
 		if ($obj instanceof ActivityObjectInterface) {
96
-		    return $this->findActivityObject($obj->toActivityObject(), $isObject);
96
+			return $this->findActivityObject($obj->toActivityObject(), $isObject);
97 97
 		}
98 98
 	}
99 99
 }
Please login to merge, or discard this patch.