Passed
Push — main ( be769d...9c5d5f )
by Diego
03:51
created
src/Collection/HierarchyCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $has_parent = $element->getParent();
61 61
         if ($has_parent) {
62 62
             $getter = "get" . ucfirst(Inflect::camelize($this->parent_field));
63
-            $parent = $this->findBy($this->parent_field, $element->getParent()?->$getter(), true);
63
+            $parent = $this->findBy($this->parent_field, $element->getParent() ? ->$getter(), true);
64 64
             if ($parent) {
65 65
                 $parent->addChild($element);
66 66
                 $this->replaceBy($this->parent_field, $parent, true);
Please login to merge, or discard this patch.
src/Repository/Projects/Projects.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
124 124
             $file->setVersion($project->getDefaultVersion());
Please login to merge, or discard this patch.
src/Repository/Issues/Issues.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
133 133
             $attachment->setVersion($issue->getFixedVersion());
Please login to merge, or discard this patch.
src/Model/ModelTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     protected function getPropertyType(string $property): string
142 142
     {
143 143
         $p = new ReflectionProperty($this, $property);
144
-        return $p->getType()?->getName();
144
+        return $p->getType() ? ->getName();
145 145
     }
146 146
 
147 147
     protected function normalizeValue(string $property, string $type, mixed $raw_value): mixed
Please login to merge, or discard this patch.