Skip to content

Commit

Permalink
Merge pull request #442 from ampproject/fix/psr12-blank-lines
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Dec 14, 2021
2 parents 9521890 + c2f8fba commit 8af1f29
Show file tree
Hide file tree
Showing 267 changed files with 0 additions and 267 deletions.
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/ClassNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

trait ClassNames
{

/**
* Get a valid PHP class name from an ID string.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/ConstantNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

trait ConstantNames
{

/**
* Get the constant name for a given value.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

trait MagicPropertyAnnotations
{

/**
* Get the magic property annotations for a given spec.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/ReservedKeywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

final class ReservedKeywords
{

/**
* List of reserved keywords.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

interface Section
{

/**
* Process a section.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/AggregateTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class AggregateTag extends Tag
{

/**
* List of spec rules that can be aggregated.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class AggregateTagWithExtensionSpec extends TagWithExtensionSpec
{

/**
* Array of TagWithExtensionSpec instances that this AggregateTag aggregates.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/AttributeList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
abstract class AttributeList
{

/**
* ID of the attribute list.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class AttributeLists
{

/** @var array<array> */
const ATTRIBUTE_LISTS = [];

Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/CssRuleset.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
abstract class CssRuleset
{

/**
* ID of the CSS ruleset.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/CssRulesets.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class CssRulesets
{

const CSS_RULESETS = [];

const BY_FORMAT = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
abstract class DeclarationList
{

/**
* ID of the declaration list.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class DeclarationLists
{

/** @var array<array> */
const DECLARATION_LISTS = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
abstract class DescendantTagList
{

/**
* ID of the descendant tag list.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class DescendantTagLists
{

/** @var array<array> */
const DESCENDANT_TAG_LISTS = [];

Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/DocRuleset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
abstract class DocRuleset
{

/**
* ID of the document ruleset.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/DocRulesets.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class DocRulesets
{

const DOC_RULESETS = [];

const BY_FORMAT = [];
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
abstract class Error
{

/**
* Code of the error.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/Errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class Errors
{

/** @var array<array> */
const ERRORS = [];

Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/Identifiable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
interface Identifiable
{

/**
* Get the ID of the identifiable element.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
interface IterableSection extends Iterator, Countable
{

/**
* Get the list of available keys.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/Iteration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
trait Iteration
{

/**
* Array to use for iteration.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
*/
abstract class Tag
{

/**
* ID of the tag.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
abstract class TagWithExtensionSpec extends Tag
{

/**
* Array of extension spec rules.
*
Expand Down
1 change: 0 additions & 1 deletion bin/src/Validator/SpecGenerator/Template/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
final class Tags
{

const TAGS = [];

const BY_TAG_NAME = [];
Expand Down
1 change: 0 additions & 1 deletion src/Amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class Amp
{

/**
* Attribute prefix for AMP-bind data attributes.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/AmpExecutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
final class AmpExecutable extends Executable
{

/**
* Array of command classes to register.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/Colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
class Colors
{

const C_BLACK = 'black';
const C_BLUE = 'blue';
const C_BROWN = 'brown';
Expand Down
1 change: 0 additions & 1 deletion src/Cli/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
abstract class Command
{

/**
* Name of the command.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/Command/Optimize.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class Optimize extends Command
{

/**
* Name of the command.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/Command/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
final class Validate extends Command
{

/**
* Name of the command.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/Executable.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/
abstract class Executable
{

/**
* Instance of the Colors helper object.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/LogLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
abstract class LogLevel
{

/**
* Detailed debug information.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
class Options
{

/**
* List of options to parse.
*
Expand Down
1 change: 0 additions & 1 deletion src/Cli/TableFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
class TableFormatter
{

/**
* Border between columns.
*
Expand Down
1 change: 0 additions & 1 deletion src/CompatibilityFix.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
interface CompatibilityFix
{

/**
* Register the compatibility fix.
*
Expand Down
1 change: 0 additions & 1 deletion src/CompatibilityFix/MovedClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
final class MovedClasses implements CompatibilityFix
{

/**
* Mapping of aliases to be registered.
*
Expand Down
1 change: 0 additions & 1 deletion src/CssLength.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class CssLength
{

// Special attribute values.
const AUTO = 'auto';
const FLUID = 'fluid';
Expand Down
1 change: 0 additions & 1 deletion src/DevMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class DevMode
{

/**
* Attribute name for AMP dev mode.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
*/
final class Document extends DOMDocument
{

/**
* Default document type to use.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/AfterLoadFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface AfterLoadFilter extends Filter
{

/**
* Process the Document after the html loaded into the Dom\Document.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/AfterSaveFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
interface AfterSaveFilter extends Filter
{

/**
* Process the Dom\Document after being saved from Dom\Document.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/BeforeLoadFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
interface BeforeLoadFilter extends Filter
{

/**
* Preprocess the HTML to be loaded into the Dom\Document.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/BeforeSaveFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
interface BeforeSaveFilter extends Filter
{

/**
* Preprocess the DOM to be saved into HTML.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/Filter/AmpBindAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class AmpBindAttributes implements BeforeLoadFilter, AfterSaveFilter
{

/**
* Pattern for HTML attribute accounting for binding attr name in data attribute syntax, boolean attribute,
* single/double-quoted attribute value, and unquoted attribute values.
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/Filter/AmpEmojiAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class AmpEmojiAttribute implements BeforeLoadFilter, AfterSaveFilter
{

/**
* Pattern to match an AMP emoji together with its variant (amp4ads, amp4email, ...).
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/Filter/ConvertHeadProfileToLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
final class ConvertHeadProfileToLink implements AfterLoadFilter
{

/**
* Converts a possible head[profile] attribute to link[rel=profile].
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/Filter/DeduplicateTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
final class DeduplicateTag implements AfterLoadFilter
{

/**
* Deduplicate head and body tags.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/Filter/DetectInvalidByteSequence.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
final class DetectInvalidByteSequence implements BeforeLoadFilter
{

/**
* Options instance to use.
*
Expand Down
1 change: 0 additions & 1 deletion src/Dom/Document/Filter/DoctypeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
final class DoctypeNode implements BeforeLoadFilter, AfterSaveFilter
{

/**
* Regex pattern used for securing the doctype node if it is not the first one.
*
Expand Down
Loading

0 comments on commit 8af1f29

Please sign in to comment.