Skip to content

Commit

Permalink
Rename Produces(Html/Json) to (Html/Json)Producer
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Sep 20, 2023
1 parent 6c5cae8 commit 236410c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/APIHelpExamples.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


class APIHelpExamples implements ProducesHtml {
class APIHelpExamples implements HtmlProducer {
private $examples;
private $prefix;

Expand Down
2 changes: 1 addition & 1 deletion includes/APIHelpObject.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


class APIHelpObject implements ProducesHtml {
class APIHelpObject implements HtmlProducer {
private $keys;

public function __construct(...$keys) {
Expand Down
2 changes: 1 addition & 1 deletion includes/Footer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class Footer implements ProducesHtml {
class Footer implements HtmlProducer {
private $rel;

public function __construct(string $rel) {
Expand Down
2 changes: 1 addition & 1 deletion includes/Form.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class Form implements ProducesHtml {
class Form implements HtmlProducer {
public function getHtml() {
$fields = [
new OOUI\FieldLayout(
Expand Down
2 changes: 1 addition & 1 deletion includes/ProducesHtml.php → includes/HtmlProducer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

interface ProducesHtml {
interface HtmlProducer {
public function getHtml();
}
2 changes: 1 addition & 1 deletion includes/ProducesJson.php → includes/JsonProducer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

interface ProducesJson {
interface JsonProducer {
public function getJson();
}
2 changes: 1 addition & 1 deletion includes/LinkCount.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class LinkCount implements ProducesHtml, ProducesJson {
class LinkCount implements HtmlProducer, JsonProducer {
public const COUNT_MODE_REDIRECT = 'redirect';
public const COUNT_MODE_LINK = 'link';
public const COUNT_MODE_TRANSCLUSION = 'transclusion';
Expand Down
2 changes: 1 addition & 1 deletion includes/ProjectPrefixSearch.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class ProjectPrefixSearch implements ProducesJson {
class ProjectPrefixSearch implements JsonProducer {
public $projects = [];
public $exact;

Expand Down

0 comments on commit 236410c

Please sign in to comment.