Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2023-12-07T15:25:48+01:00

Commit: 
https://github.com/php/web-php/commit/7406060c5324e7d2bd12fe6091926f7773023b63
Raw diff: 
https://github.com/php/web-php/commit/7406060c5324e7d2bd12fe6091926f7773023b63.diff

Enhancement: Enable `include` fixer (#885)

Changed paths:
  M  .php-cs-fixer.php
  M  releases/8.2/index.php
  M  releases/8.3/index.php


Diff:

diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php
index 117c0114e0..1810d5c069 100644
--- a/.php-cs-fixer.php
+++ b/.php-cs-fixer.php
@@ -32,6 +32,7 @@
         'constant_case' => true,
         'elseif' => true,
         'function_declaration' => true,
+        'include' => true,
         'increment_style' => [
             'style' => 'post',
         ],
diff --git a/releases/8.2/index.php b/releases/8.2/index.php
index 9e2d99f8ef..dc663215f0 100644
--- a/releases/8.2/index.php
+++ b/releases/8.2/index.php
@@ -1,5 +1,5 @@
 <?php
  $_SERVER['BASE_PAGE'] = 'releases/8.2/index.php';
-include (__DIR__ . '/../../include/site.inc');
+include __DIR__ . '/../../include/site.inc';
 
 mirror_redirect('/releases/8.2/en.php');
diff --git a/releases/8.3/index.php b/releases/8.3/index.php
index 88b80dbf69..3035c038b6 100644
--- a/releases/8.3/index.php
+++ b/releases/8.3/index.php
@@ -1,5 +1,5 @@
 <?php
  $_SERVER['BASE_PAGE'] = 'releases/8.3/index.php';
-include (__DIR__ . '/../../include/site.inc');
+include __DIR__ . '/../../include/site.inc';
 
 mirror_redirect('/releases/8.3/en.php');

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to