@@ -14,7 +14,6 @@ |
||
14 | 14 | * long as it does not already exist in the output directory. |
15 | 15 | * |
16 | 16 | */ |
17 | -class RegionTypeQuery extends BaseRegionTypeQuery |
|
18 | -{ |
|
17 | +class RegionTypeQuery extends BaseRegionTypeQuery { |
|
19 | 18 | |
20 | 19 | } |
@@ -14,7 +14,6 @@ |
||
14 | 14 | * long as it does not already exist in the output directory. |
15 | 15 | * |
16 | 16 | */ |
17 | -class SessionQuery extends BaseSessionQuery |
|
18 | -{ |
|
17 | +class SessionQuery extends BaseSessionQuery { |
|
19 | 18 | |
20 | 19 | } |
@@ -43,7 +43,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -76,9 +76,9 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * @param mixed $model |
|
79 | + * @param \keeko\core\model\Activity $model |
|
80 | 80 | * @param mixed $data |
81 | - * @return mixed The model |
|
81 | + * @return \keeko\core\model\Activity The model |
|
82 | 82 | */ |
83 | 83 | public function hydrate($model, $data) { |
84 | 84 | // attributes |
@@ -74,9 +74,9 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @param mixed $model |
|
77 | + * @param \keeko\core\model\Api $model |
|
78 | 78 | * @param mixed $data |
79 | - * @return mixed The model |
|
79 | + * @return \keeko\core\model\Api The model |
|
80 | 80 | */ |
81 | 81 | public function hydrate($model, $data) { |
82 | 82 | // attributes |
@@ -77,9 +77,9 @@ |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | - * @param mixed $model |
|
80 | + * @param \keeko\core\model\ApplicationUri $model |
|
81 | 81 | * @param mixed $data |
82 | - * @return mixed The model |
|
82 | + * @return \keeko\core\model\ApplicationUri The model |
|
83 | 83 | */ |
84 | 84 | public function hydrate($model, $data) { |
85 | 85 | // attributes |
@@ -60,9 +60,9 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param mixed $model |
|
63 | + * @param \keeko\core\model\Extension $model |
|
64 | 64 | * @param mixed $data |
65 | - * @return mixed The model |
|
65 | + * @return \keeko\core\model\Extension The model |
|
66 | 66 | */ |
67 | 67 | public function hydrate($model, $data) { |
68 | 68 | // attributes |
@@ -55,9 +55,9 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @param mixed $model |
|
58 | + * @param \keeko\core\model\Preference $model |
|
59 | 59 | * @param mixed $data |
60 | - * @return mixed The model |
|
60 | + * @return \keeko\core\model\Preference The model |
|
61 | 61 | */ |
62 | 62 | public function hydrate($model, $data) { |
63 | 63 | // attributes |
@@ -66,9 +66,9 @@ |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | - * @param mixed $model |
|
69 | + * @param \keeko\core\model\Session $model |
|
70 | 70 | * @param mixed $data |
71 | - * @return mixed The model |
|
71 | + * @return \keeko\core\model\Session The model |
|
72 | 72 | */ |
73 | 73 | public function hydrate($model, $data) { |
74 | 74 | // attributes |