style: auto-fix PHPCS violations via phpcbf

This commit is contained in:
peptiderepo
2026-06-16 14:01:59 +00:00
parent 3890485dcb
commit 1813d419e5
8 changed files with 246 additions and 93 deletions

View File

@@ -25,19 +25,111 @@ class PRAutoBlogger_Keyword_Extractor {
* @var string[]
*/
private const STOPWORDS = array(
'a', 'an', 'the', 'and', 'or', 'but', 'is', 'are', 'was', 'were',
'in', 'on', 'at', 'to', 'for', 'of', 'with', 'by', 'from', 'as',
'it', 'its', 'this', 'that', 'your', 'you', 'how', 'what', 'when',
'why', 'where', 'which', 'who', 'do', 'does', 'did', 'not', 'no',
'can', 'will', 'should', 'could', 'would', 'may', 'might', 'have',
'has', 'had', 'be', 'been', 'being', 'about', 'into', 'through',
'during', 'before', 'after', 'above', 'below', 'between', 'same',
'up', 'down', 'out', 'off', 'over', 'under', 'again', 'then', 'here',
'there', 'all', 'each', 'every', 'both', 'few', 'more', 'most',
'other', 'some', 'such', 'than', 'too', 'very', 'just', 'also',
'only', 'own', 'so', 'if', 'while', 'because', 'until', 'vs',
'versus', 'guide', 'complete', 'ultimate', 'best', 'top', 'new',
'first', 'need', 'know', 'everything',
'a',
'an',
'the',
'and',
'or',
'but',
'is',
'are',
'was',
'were',
'in',
'on',
'at',
'to',
'for',
'of',
'with',
'by',
'from',
'as',
'it',
'its',
'this',
'that',
'your',
'you',
'how',
'what',
'when',
'why',
'where',
'which',
'who',
'do',
'does',
'did',
'not',
'no',
'can',
'will',
'should',
'could',
'would',
'may',
'might',
'have',
'has',
'had',
'be',
'been',
'being',
'about',
'into',
'through',
'during',
'before',
'after',
'above',
'below',
'between',
'same',
'up',
'down',
'out',
'off',
'over',
'under',
'again',
'then',
'here',
'there',
'all',
'each',
'every',
'both',
'few',
'more',
'most',
'other',
'some',
'such',
'than',
'too',
'very',
'just',
'also',
'only',
'own',
'so',
'if',
'while',
'because',
'until',
'vs',
'versus',
'guide',
'complete',
'ultimate',
'best',
'top',
'new',
'first',
'need',
'know',
'everything',
);
/**

View File

@@ -26,13 +26,41 @@ class PRAutoBlogger_Image_Aspect_Ratio {
* @var array<int, array{w: int, h: int, ratio: float}>
*/
private const STANDARD_ASPECTS = array(
array( 'w' => 1, 'h' => 1, 'ratio' => 1.0 ),
array( 'w' => 3, 'h' => 2, 'ratio' => 1.5 ),
array( 'w' => 2, 'h' => 3, 'ratio' => 0.6667 ),
array( 'w' => 4, 'h' => 3, 'ratio' => 1.3333 ),
array( 'w' => 3, 'h' => 4, 'ratio' => 0.75 ),
array( 'w' => 16, 'h' => 9, 'ratio' => 1.7778 ),
array( 'w' => 9, 'h' => 16, 'ratio' => 0.5625 ),
array(
'w' => 1,
'h' => 1,
'ratio' => 1.0,
),
array(
'w' => 3,
'h' => 2,
'ratio' => 1.5,
),
array(
'w' => 2,
'h' => 3,
'ratio' => 0.6667,
),
array(
'w' => 4,
'h' => 3,
'ratio' => 1.3333,
),
array(
'w' => 3,
'h' => 4,
'ratio' => 0.75,
),
array(
'w' => 16,
'h' => 9,
'ratio' => 1.7778,
),
array(
'w' => 9,
'h' => 16,
'ratio' => 0.5625,
),
);
/**

View File

@@ -86,5 +86,4 @@ class PRAutoBlogger_Runware_Validator {
'message' => __( 'Runware API key valid.', 'prautoblogger' ),
);
}
}