@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | public function addTimeEntry(Project $project, TimeEntry $time_entry): Project |
| 72 | 72 | { |
| 73 | 73 | $time_entry->setProject($project); |
| 74 | - $this->client->getRepository(TimeEntries::API_ROOT)?->create($time_entry); |
|
| 74 | + $this->client->getRepository(TimeEntries::API_ROOT) ? ->create($time_entry); |
|
| 75 | 75 | |
| 76 | 76 | return $project; |
| 77 | 77 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function addFile(Project $project, File $file): Project |
| 120 | 120 | { |
| 121 | - $file = $this->client->getRepository(Uploads::API_ROOT)?->create($file); |
|
| 121 | + $file = $this->client->getRepository(Uploads::API_ROOT) ? ->create($file); |
|
| 122 | 122 | /** @var File $file */ |
| 123 | 123 | if ($file !== null) { |
| 124 | 124 | $file->setVersion($project->getDefaultVersion()); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | public function getChildren(Issue $issue): IdentityCollection | ArrayCollection |
| 115 | 115 | { |
| 116 | 116 | return $this->client->getRepository(self::API_ROOT) |
| 117 | - ?->addFilter(self::ISSUE_FILTER_PARENT_ID, $issue->getId()) |
|
| 117 | + ? ->addFilter(self::ISSUE_FILTER_PARENT_ID, $issue->getId()) |
|
| 118 | 118 | ->addFilter(self::ISSUE_FILTER_STATUS_ID, "*") |
| 119 | 119 | ->search(); |
| 120 | 120 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function addAttachment(Issue $issue, Attachment $attachment): Issue |
| 129 | 129 | { |
| 130 | - $attachment = $this->client->getRepository(Uploads::API_ROOT)?->create($attachment); |
|
| 130 | + $attachment = $this->client->getRepository(Uploads::API_ROOT) ? ->create($attachment); |
|
| 131 | 131 | /** @var Attachment $attachment */ |
| 132 | 132 | if ($attachment !== null) { |
| 133 | 133 | $attachment->setVersion($issue->getFixedVersion()); |