@@ -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 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * @param mixed $model |
|
| 74 | + * @param \keeko\core\model\Action $model |
|
| 75 | 75 | * @param mixed $data |
| 76 | 76 | */ |
| 77 | 77 | public function hydrate($model, $data) { |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @param mixed $model |
|
| 61 | + * @param \keeko\core\model\ActivityObject $model |
|
| 62 | 62 | * @param mixed $data |
| 63 | 63 | */ |
| 64 | 64 | public function hydrate($model, $data) { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @param mixed $model |
|
| 77 | + * @param \keeko\core\model\Activity $model |
|
| 78 | 78 | * @param mixed $data |
| 79 | 79 | */ |
| 80 | 80 | public function hydrate($model, $data) { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * @param mixed $model |
|
| 74 | + * @param \keeko\core\model\Api $model |
|
| 75 | 75 | * @param mixed $data |
| 76 | 76 | */ |
| 77 | 77 | public function hydrate($model, $data) { |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * @param mixed $model |
|
| 59 | + * @param \keeko\core\model\Application $model |
|
| 60 | 60 | * @param mixed $data |
| 61 | 61 | */ |
| 62 | 62 | public function hydrate($model, $data) { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @param mixed $model |
|
| 77 | + * @param \keeko\core\model\ApplicationUri $model |
|
| 78 | 78 | * @param mixed $data |
| 79 | 79 | */ |
| 80 | 80 | public function hydrate($model, $data) { |