Skip to content

Commit 7814246

Browse files
committed
Updates
1 parent ec758b2 commit 7814246

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Pictory/Pictory.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -61,33 +61,18 @@ public function export(string $className): string
6161
foreach ($this->configuration->Devices as $device) {
6262
foreach ($device->inp as $tag) {
6363
$io = IO::fromPictory($tag);
64-
65-
if ($io->unit === null) {
66-
continue;
67-
}
68-
6964
$class->addComment(sprintf('@method InputIO %s()', $io->name));
7065
$class->addAttribute(Input::class, $io->attributeArgs());
7166
}
7267

7368
foreach ($device->out as $tag) {
7469
$io = IO::fromPictory($tag);
75-
76-
if ($io->unit === null) {
77-
continue;
78-
}
79-
8070
$class->addComment(sprintf('@method OutputIO %s()', $io->name));
8171
$class->addAttribute(Output::class, $io->attributeArgs());
8272
}
8373

8474
foreach ($device->mem as $tag) {
8575
$io = IO::fromPictory($tag);
86-
87-
if ($io->unit === null) {
88-
continue;
89-
}
90-
9176
$class->addComment(sprintf('@method MemoryIO %s()', $io->name));
9277
$class->addAttribute(Memory::class, $io->attributeArgs());
9378
}
@@ -96,31 +81,16 @@ public function export(string $className): string
9681
foreach ($this->configuration->Devices as $device) {
9782
foreach ($device->inp as $tag) {
9883
$io = IO::fromPictory($tag);
99-
100-
if ($io->unit === null) {
101-
continue;
102-
}
103-
10484
$class->addComment(sprintf('@property-read %s %s %s', $io->unit, $io->name, $io->comment));
10585
}
10686

10787
foreach ($device->out as $tag) {
10888
$io = IO::fromPictory($tag);
109-
110-
if ($io->unit === null) {
111-
continue;
112-
}
113-
11489
$class->addComment(sprintf('@property %s %s %s', $io->unit, $io->name, $io->comment));
11590
}
11691

11792
foreach ($device->mem as $tag) {
11893
$io = IO::fromPictory($tag);
119-
120-
if ($io->unit === null) {
121-
continue;
122-
}
123-
12494
$class->addComment(sprintf('@property %s %s %s', $io->unit, $io->name, $io->comment));
12595
}
12696
}

0 commit comments

Comments
 (0)