Skip to content

Commit 64a7b90

Browse files
committed
[TASK] php7.4 update
1 parent 236a921 commit 64a7b90

28 files changed

+61
-141
lines changed

lib/config/sfSimpleYamlConfigHandler.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function execute($configFiles)
3333
$retval = "<?php\n".
3434
"// auto-generated by %s\n".
3535
"// date: %s\nreturn %s;\n";
36-
$retval = sprintf($retval, __CLASS__, date('Y/m/d H:i:s'), var_export($config, true));
36+
$retval = sprintf($retval, self::class, date('Y/m/d H:i:s'), var_export($config, true));
3737

3838
return $retval;
3939
}

lib/debug/sfWebDebug.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function getInstance()
4141
{
4242
if (!isset(self::$instance))
4343
{
44-
$class = __CLASS__;
44+
$class = self::class;
4545
self::$instance = new $class();
4646
self::$instance->initialize();
4747
}

lib/helper/DateFormHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* For the full copyright and license information, please view the LICENSE
1010
* file that was distributed with this source code.
1111
*/
12-
1312
/**
1413
* DateFormHelper.
1514
*
@@ -18,7 +17,6 @@
1817
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
1918
* @version SVN: $Id: DateFormHelper.php 14120 2008-12-17 10:27:00Z FabianLange $
2019
*/
21-
2220
/**
2321
* Returns a <select> tag populated with all the days of the month (1 - 31).
2422
*
@@ -40,7 +38,7 @@
4038
* @param string field name
4139
* @param integer selected value (1 - 31)
4240
* @param array additional HTML compliant <select> tag parameters
43-
* @return string <select> tag populated with all the days of the month (1 - 31).
41+
* @return string<select> tag populated with all the days of the month (1 - 31).
4442
* @see select_date_tag, select datetime_tag
4543
*/
4644
function select_day_tag($name, $value = null, $options = array(), $html_options = array())

lib/helper/ObjectHelper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* For the full copyright and license information, please view the LICENSE
1010
* file that was distributed with this source code.
1111
*/
12-
1312
/**
1413
* ObjectHelper.
1514
*
@@ -18,7 +17,6 @@
1817
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
1918
* @version SVN: $Id: ObjectHelper.php 5149 2007-09-16 15:37:14Z fabien $
2019
*/
21-
2220
/**
2321
* Returns a html date control.
2422
*
@@ -28,7 +26,6 @@
2826
* @param bool $default_value Date default value.
2927
*
3028
* @return string An html string which represents a date control.
31-
*
3229
*/
3330
function object_input_date_tag($object, $method, $options = array(), $default_value = null)
3431
{

lib/i18n/Gettext/MO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,4 @@ function save($file = null)
345345
@fclose($this->_handle);
346346
return true;
347347
}
348-
}
348+
}

lib/i18n/Gettext/PO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ function save($file = null)
151151
@fclose($fh);
152152
return true;
153153
}
154-
}
154+
}

lib/i18n/Gettext/TGettext.class.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,21 @@
1313
// +----------------------------------------------------------------------+
1414
//
1515
// $Id: TGettext.class.php 9858 2008-06-25 11:34:30Z fabien $
16-
1716
/**
1817
* File::Gettext
1918
*
2019
* @author Michael Wallner <mike@php.net>
2120
* @license PHP License
2221
*/
23-
2422
/**
2523
* Use PHPs builtin error messages
2624
*/
2725
//ini_set('track_errors', true);
28-
2926
/**
3027
* File_Gettext
31-
*
28+
*
3229
* GNU gettext file reader and writer.
33-
*
30+
*
3431
* #################################################################
3532
* # All protected members of this class are public in its childs. #
3633
* #################################################################

lib/i18n/sfChoiceFormat.class.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
* @package symfony
1818
* @subpackage i18n
1919
*/
20-
21-
2220
/**
2321
* sfChoiceFormat class.
24-
*
22+
*
2523
* sfChoiceFormat converts between ranges of numeric values and string
2624
* names for those ranges.
2725
*
@@ -32,7 +30,7 @@
3230
*
3331
* <code>
3432
* $string = '[0] are no files |[1] is one file |(1,Inf] are {number} files';
35-
*
33+
*
3634
* $formatter = new sfMessageFormat(...); //init for a source
3735
* $translated = $formatter->format($string);
3836
*

lib/i18n/sfDateTimeFormatInfo.class.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
* @package symfony
1818
* @subpackage i18n
1919
*/
20-
2120
/**
2221
* Defines how DateTime values are formatted and displayed, depending
2322
* on the culture.
24-
*
23+
*
2524
* This class contains information, such as date patterns, time patterns,
2625
* and AM/PM designators.
2726
*
@@ -32,7 +31,7 @@
3231
* $culture = new sfCultureInfo('en_AU');
3332
* $dtfi = $culture->DateTimeFormat;
3433
* </code>
35-
*
34+
*
3635
* To create a sfDateTimeFormatInfo for the invariant culture, use
3736
* <code>
3837
* sfDateTimeFormatInfo::getInstance($culture=null);
@@ -42,7 +41,7 @@
4241
*
4342
* sfDateTime values are formatted using standard or custom patterns stored in
4443
* the properties of a sfDateTimeFormatInfo.
45-
*
44+
*
4645
* The standard patterns can be replaced with custom patterns by setting the
4746
* associated properties of sfDateTimeFormatInfo.
4847
*

lib/i18n/sfI18N.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static public function getInstance()
3030
{
3131
if (!isset(self::$instance))
3232
{
33-
$class = __CLASS__;
33+
$class = self::class;
3434
self::$instance = new $class();
3535
}
3636

0 commit comments

Comments
 (0)