Skip to content

Enhancement: Enable blank_line_after_opening_tag fixer #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'array_syntax' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'class_attributes_separation' => true,
'class_definition' => true,
'concat_space' => [
Expand Down
1 change: 1 addition & 0 deletions .router.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER["SERVER_ADDR"] = $_SERVER["HTTP_HOST"];

$filename = $_SERVER["PATH_INFO"] ?? $_SERVER["SCRIPT_NAME"];
Expand Down
1 change: 1 addition & 0 deletions archive/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

include_once __DIR__ . '/../include/prepend.inc';
$i = 0;
do {
Expand Down
1 change: 1 addition & 0 deletions backend/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Simulate a /backend shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/backend';
include_once __DIR__ . '/../include/prepend.inc';
Expand Down
1 change: 1 addition & 0 deletions bin/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Simulate a /bin shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/bin';
include_once __DIR__ . '/../include/prepend.inc';
Expand Down
1 change: 1 addition & 0 deletions conferences/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'conferences/index.php';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
Expand Down
1 change: 1 addition & 0 deletions credits.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'credits.php';
include_once __DIR__ . '/include/prepend.inc';

Expand Down
1 change: 1 addition & 0 deletions images/elephpants.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

include_once __DIR__ . '/../include/prepend.inc';

$now = $_SERVER["REQUEST_TIME"];
Expand Down
1 change: 1 addition & 0 deletions images/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Simulate a /images shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/images';
include_once __DIR__ . '/../include/prepend.inc';
Expand Down
1 change: 1 addition & 0 deletions include/branches.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

include_once __DIR__ . '/releases.inc';
include_once __DIR__ . '/version.inc';

Expand Down
1 change: 1 addition & 0 deletions include/changelogs.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

function bugfix($number): void {
echo "Fixed bug "; bugl($number);
}
Expand Down
1 change: 1 addition & 0 deletions include/countries.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

return [
'AFG' => 'Afghanistan',
'ALB' => 'Albania',
Expand Down
1 change: 1 addition & 0 deletions include/historical_mirrors.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$historical_mirrors = [
["ARG", "ar2.php.net", "XMundo Hosting Solutions", "http://www.xmundo.net"],
["ARM", "am1.php.net", "ARMINCO Global Telecommunications", "http://www.arminco.com/"],
Expand Down
1 change: 1 addition & 0 deletions include/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Simulate a /include shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/include';
include_once __DIR__ . '/prepend.inc';
Expand Down
1 change: 1 addition & 0 deletions include/results.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

function search_results($res, $q, $profile = 'all', $per_page = 10, $s = 0, $l = 'en', $show_title = true, $show_foot = true, $show_attrib = true): void {
$start_result = $s;
$end_result = $s + $res['ResultSet']['totalResultsReturned'] - 1;
Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

(function ($uri): void {
// Special redirect cases not able to be captured in error.php
$shortcuts = [
Expand Down
1 change: 1 addition & 0 deletions js/search-index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_GET["lang"] = "en";
if (!isset($_GET["lang"])) {
header("Location: http://php.net");
Expand Down
1 change: 1 addition & 0 deletions manual-lookup.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'manual-lookup.php';
include __DIR__ . '/include/prepend.inc';
include __DIR__ . '/include/manual-lookup.inc';
Expand Down
1 change: 1 addition & 0 deletions manual/change.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

include_once __DIR__ . '/../include/prepend.inc';

$page = isset($_GET['page']) ? htmlspecialchars($_GET['page'], ENT_QUOTES, 'UTF-8') : '';
Expand Down
1 change: 1 addition & 0 deletions manual/index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

include_once __DIR__ . '/../include/prepend.inc';
mirror_redirect("/manual/$LANG/index.php");
1 change: 1 addition & 0 deletions manual/spam_challenge.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// simple and stupid SPAM protection (using little challenges)

const NUMS = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
Expand Down
1 change: 1 addition & 0 deletions mirror-info.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Define $MYSITE and $LAST_UPDATED variables
include_once __DIR__ . '/include/prepend.inc';

Expand Down
1 change: 1 addition & 0 deletions mirrors.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

include_once __DIR__ . '/include/prepend.inc';

header("HTTP/1.1 301 Moved Permanently");
Expand Down
1 change: 1 addition & 0 deletions pear/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Simulate a /pear shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/pear';
include_once __DIR__ . '/../include/prepend.inc';
Expand Down
4 changes: 3 additions & 1 deletion releases/8.0/common.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace releases\php80;

Expand Down
1 change: 1 addition & 0 deletions releases/8.0/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/8.0/index.php';
include __DIR__ . '/../../include/site.inc';

Expand Down
4 changes: 3 additions & 1 deletion releases/8.1/common.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace releases\php81;

Expand Down
1 change: 1 addition & 0 deletions releases/8.1/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/8.1/index.php';
include __DIR__ . '/../../include/site.inc';

Expand Down
4 changes: 3 additions & 1 deletion releases/8.2/common.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace releases\php82;

Expand Down
1 change: 1 addition & 0 deletions releases/8.2/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/8.2/index.php';
include __DIR__ . '/../../include/site.inc';

Expand Down
4 changes: 3 additions & 1 deletion releases/8.3/common.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace releases\php83;

Expand Down
1 change: 1 addition & 0 deletions releases/8.3/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/8.3/index.php';
include __DIR__ . '/../../include/site.inc';

Expand Down
1 change: 1 addition & 0 deletions releases/active.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/active.php';

include_once __DIR__ . '/../include/prepend.inc';
Expand Down
1 change: 1 addition & 0 deletions releases/feed.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

header("Content-Type: application/atom+xml");

include __DIR__ . "/../include/version.inc";
Expand Down
1 change: 1 addition & 0 deletions releases/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/index.php';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . "/../include/branches.inc";
Expand Down
1 change: 1 addition & 0 deletions releases/states.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'releases/active.php';

include_once __DIR__ . '/../include/prepend.inc';
Expand Down
1 change: 1 addition & 0 deletions results.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'results.php';
include __DIR__ . '/include/prepend.inc';
include __DIR__ . '/include/results.inc';
Expand Down
1 change: 1 addition & 0 deletions search.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

$_SERVER['BASE_PAGE'] = 'search.php';
include_once __DIR__ . '/include/prepend.inc';

Expand Down
1 change: 1 addition & 0 deletions styles/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Simulate a /styles shortcut call (which will lead to a manual page)
$_SERVER['REQUEST_URI'] = '/styles';
include_once __DIR__ . '/../include/prepend.inc';
Expand Down