Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Normalizer/AddressNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('addr') && null !== $object->getAddr()) {
$data['Addr'] = $object->getAddr();
}
Expand All @@ -85,4 +85,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\Address' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/AuthConfigNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('username') && null !== $object->getUsername()) {
$data['username'] = $object->getUsername();
}
Expand All @@ -105,4 +105,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\AuthConfig' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/AuthPostResponse200Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
$data['Status'] = $object->getStatus();
if ($object->isInitialized('identityToken') && null !== $object->getIdentityToken()) {
$data['IdentityToken'] = $object->getIdentityToken();
Expand All @@ -83,4 +83,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\AuthPostResponse200' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/BuildInfoNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('id') && null !== $object->getId()) {
$data['id'] = $object->getId();
}
Expand Down Expand Up @@ -145,4 +145,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\BuildInfo' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/BuildPrunePostResponse200Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('spaceReclaimed') && null !== $object->getSpaceReclaimed()) {
$data['SpaceReclaimed'] = $object->getSpaceReclaimed();
}
Expand All @@ -75,4 +75,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\BuildPrunePostResponse200' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ClusterInfoNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('iD') && null !== $object->getID()) {
$data['ID'] = $object->getID();
}
Expand Down Expand Up @@ -135,4 +135,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ClusterInfo' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/CommitNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('iD') && null !== $object->getID()) {
$data['ID'] = $object->getID();
}
Expand All @@ -85,4 +85,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\Commit' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ConfigNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('iD') && null !== $object->getID()) {
$data['ID'] = $object->getID();
}
Expand All @@ -115,4 +115,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\Config' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ConfigSpecNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('name') && null !== $object->getName()) {
$data['Name'] = $object->getName();
}
Expand All @@ -103,4 +103,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ConfigSpec' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ConfigsCreatePostBodyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('name') && null !== $object->getName()) {
$data['Name'] = $object->getName();
}
Expand All @@ -103,4 +103,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ConfigsCreatePostBody' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
foreach ($object as $key => $value) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value;
Expand All @@ -65,4 +65,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainerConfigExposedPortsItem' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainerConfigNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('hostname') && null !== $object->getHostname()) {
$data['Hostname'] = $object->getHostname();
}
Expand Down Expand Up @@ -379,4 +379,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainerConfig' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainerConfigVolumesItemNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
foreach ($object as $key => $value) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value;
Expand All @@ -65,4 +65,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainerConfigVolumesItem' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('networkMode') && null !== $object->getNetworkMode()) {
$data['NetworkMode'] = $object->getNetworkMode();
}
Expand All @@ -75,4 +75,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainerSummaryItemHostConfig' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('networks') && null !== $object->getNetworks()) {
$values = array();
foreach ($object->getNetworks() as $key => $value) {
Expand All @@ -83,4 +83,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainerSummaryItemNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('id') && null !== $object->getId()) {
$data['Id'] = $object->getId();
}
Expand Down Expand Up @@ -247,4 +247,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainerSummaryItem' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('endpointsConfig') && null !== $object->getEndpointsConfig()) {
$values = array();
foreach ($object->getEndpointsConfig() as $key => $value) {
Expand All @@ -83,4 +83,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersCreatePostBodyNetworkingConfig' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainersCreatePostBodyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('hostname') && null !== $object->getHostname()) {
$data['Hostname'] = $object->getHostname();
}
Expand Down Expand Up @@ -399,4 +399,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersCreatePostBody' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainersCreatePostResponse201Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
$data['Id'] = $object->getId();
$values = array();
foreach ($object->getWarnings() as $value) {
Expand All @@ -89,4 +89,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersCreatePostResponse201' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('message') && null !== $object->getMessage()) {
$data['message'] = $object->getMessage();
}
Expand All @@ -75,4 +75,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('message') && null !== $object->getMessage()) {
$data['message'] = $object->getMessage();
}
Expand All @@ -75,4 +75,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('message') && null !== $object->getMessage()) {
$data['message'] = $object->getMessage();
}
Expand All @@ -75,4 +75,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
$data['Path'] = $object->getPath();
$data['Kind'] = $object->getKind();
foreach ($object as $key => $value) {
Expand All @@ -81,4 +81,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => false);
}
}
}
4 changes: 2 additions & 2 deletions src/Normalizer/ContainersIdExecPostBodyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
if ($object->isInitialized('attachStdin') && null !== $object->getAttachStdin()) {
$data['AttachStdin'] = $object->getAttachStdin();
}
Expand Down Expand Up @@ -181,4 +181,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersIdExecPostBody' => false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
*/
public function normalize($object, $format = null, array $context = array())
{
$data = array();
$data = new \ArrayObject();
foreach ($object as $key => $value) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value;
Expand All @@ -65,4 +65,4 @@ public function getSupportedTypes(?string $format = null) : array
{
return array('Docker\\API\\Model\\ContainersIdJsonGetResponse200Node' => false);
}
}
}
Loading