Skip to content

Commit

Permalink
Apply coding-style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ipf committed Oct 12, 2022
1 parent 7b5c3b1 commit c66bc35
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 97 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.8",
"rector/rector": "^0.13.5",
"rector/rector": "^0.14",
"phpstan/phpstan": "^1.7"
},
"license": "AGPL-3.0-or-later",
Expand Down
12 changes: 0 additions & 12 deletions src/Model/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,39 +52,27 @@ public function getLabel(): string
return $this->label;
}

/**
* @return Collection
*/
public function setDescription(string $description): self
{
$this->description = $description;

return $this;
}

/**
* @return Collection
*/
public function setId(string $id): self
{
$this->id = $id;

return $this;
}

/**
* @return Collection
*/
public function setImage(string $image): self
{
$this->image = $image;

return $this;
}

/**
* @return Collection
*/
public function setLabel(string $label): self
{
$this->label = $label;
Expand Down
3 changes: 0 additions & 3 deletions src/Model/Identify/Description.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ public function getOaiIdentifier(): OaiIdentifier
return $this->oaiIdentifier;
}

/**
* @return Description
*/
public function setOaiIdentifier(OaiIdentifier $oaiIdentifier): self
{
$this->oaiIdentifier = $oaiIdentifier;
Expand Down
24 changes: 0 additions & 24 deletions src/Model/Identify/Identification.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,79 +89,55 @@ public function getRepositoryName(): string
return $this->repositoryName;
}

/**
* @return Identification
*/
public function setAdminEmail(string $adminEmail): self
{
$this->adminEmail = $adminEmail;

return $this;
}

/**
* @return Identification
*/
public function setBaseUrl(string $baseUrl): self
{
$this->baseUrl = $baseUrl;

return $this;
}

/**
* @return Identification
*/
public function setDeletedRecord(string $deletedRecord): self
{
$this->deletedRecord = $deletedRecord;

return $this;
}

/**
* @return Identification
*/
public function setDescription(Description $description): self
{
$this->description = $description;

return $this;
}

/**
* @return Identification
*/
public function setEarliestDatestamp(\DateTimeImmutable $earliestDatestamp): self
{
$this->earliestDatestamp = $earliestDatestamp;

return $this;
}

/**
* @return Identification
*/
public function setGranularity(string $granularity): self
{
$this->granularity = $granularity;

return $this;
}

/**
* @return Identification
*/
public function setProtocolVersion(string $protocolVersion): self
{
$this->protocolVersion = $protocolVersion;

return $this;
}

/**
* @return Identification
*/
public function setRepositoryName(string $repositoryName): self
{
$this->repositoryName = $repositoryName;
Expand Down
3 changes: 0 additions & 3 deletions src/Model/Identify/Identify.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function getIdentify(): Identification
return $this->identify;
}

/**
* @return Identify
*/
public function setIdentify(Identification $identify): self
{
$this->identify = $identify;
Expand Down
21 changes: 0 additions & 21 deletions src/Model/Identify/OaiIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,69 +81,48 @@ public function getXsi(): string
return $this->xsi;
}

/**
* @return OaiIdentifier
*/
public function setDelimiter(string $delimiter): self
{
$this->delimiter = $delimiter;

return $this;
}

/**
* @return OaiIdentifier
*/
public function setNamespace(string $namespace): self
{
$this->namespace = $namespace;

return $this;
}

/**
* @return OaiIdentifier
*/
public function setRepositoryIdentifier(string $repositoryIdentifier): self
{
$this->repositoryIdentifier = $repositoryIdentifier;

return $this;
}

/**
* @return OaiIdentifier
*/
public function setSampleIdentifier(string $sampleIdentifier): self
{
$this->sampleIdentifier = $sampleIdentifier;

return $this;
}

/**
* @return OaiIdentifier
*/
public function setSchemaLocation(string $schemaLocation): self
{
$this->schemaLocation = $schemaLocation;

return $this;
}

/**
* @return OaiIdentifier
*/
public function setScheme(string $scheme): self
{
$this->scheme = $scheme;

return $this;
}

/**
* @return OaiIdentifier
*/
public function setXsi(string $xsi): self
{
$this->xsi = $xsi;
Expand Down
9 changes: 0 additions & 9 deletions src/Model/MetadataFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,20 @@ public function getSchema(): string
return $this->schema;
}

/**
* @return MetadataFormat
*/
public function setNamespace(string $namespace): self
{
$this->namespace = $namespace;

return $this;
}

/**
* @return MetadataFormat
*/
public function setPrefix(string $prefix): self
{
$this->prefix = $prefix;

return $this;
}

/**
* @return MetadataFormat
*/
public function setSchema(string $schema): self
{
$this->schema = $schema;
Expand Down
3 changes: 0 additions & 3 deletions src/Model/MetadataFormats.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ public function getMetadataFormats(): array
return $this->metadataFormats;
}

/**
* @return MetadataFormats
*/
public function setMetadataFormats(array $metadataFormats): self
{
$this->metadataFormats = $metadataFormats;
Expand Down
6 changes: 0 additions & 6 deletions src/Model/Oai.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public function getRequest(): Request
return $this->request;
}

/**
* @return Oai
*/
public function setDate(\DateTimeImmutable $date): self
{
$this->date = $date;
Expand All @@ -60,9 +57,6 @@ public function setError(?Error $error): Oai
return $this;
}

/**
* @return Oai
*/
public function setRequest(Request $request): self
{
$this->request = $request;
Expand Down
9 changes: 0 additions & 9 deletions src/Model/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getVerb(): string
return $this->verb;
}

/**
* @return Request
*/
public function setIdentifier(string $identifier): self
{
$this->identifier = $identifier;
Expand All @@ -65,19 +62,13 @@ public function setMetadataPrefix(?string $metadataPrefix): void
$this->metadataPrefix = $metadataPrefix;
}

/**
* @return Request
*/
public function setUrl(string $url): self
{
$this->url = $url;

return $this;
}

/**
* @return Request
*/
public function setVerb(string $verb): self
{
$this->verb = $verb;
Expand Down
6 changes: 0 additions & 6 deletions src/Model/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,13 @@ public function getFoundCount(): int
return $this->foundCount;
}

/**
* @return Results
*/
public function setDocuments(array $documents): self
{
$this->documents = $documents;

return $this;
}

/**
* @return Results
*/
public function setFoundCount(int $foundCount): self
{
$this->foundCount = $foundCount;
Expand Down

0 comments on commit c66bc35

Please sign in to comment.