Skip to content

Commit bd6def6

Browse files
committed
openning bracked to new line coding style
1 parent 942c8ab commit bd6def6

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

lib/i18n/sfI18N.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,13 @@ public function getTimestampForCulture($dateTime, $culture = null)
273273

274274
// mktime behavior change with php8
275275
// $hour become not nullable
276-
if (!$hour) {
276+
if (!$hour)
277+
{
277278
$hour = 0;
278279
}
279280
// Before 8.0, $minutes value to null, was casted as (int)0
280-
if (!$minute) {
281+
if (!$minute)
282+
{
281283
$minute = 0;
282284
}
283285
return null === $day ? null : mktime($hour, $minute, 0, $month, $day, $year);

lib/log/sfFileLogger.class.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public function shutdown()
136136
*/
137137
public static function strftime($format)
138138
{
139-
if (version_compare(PHP_VERSION, '8.1.0') < 0) {
139+
if (version_compare(PHP_VERSION, '8.1.0') < 0)
140+
{
140141
return strftime($format);
141142
}
142143
return date(self::_strftimeFormatToDateFormat($format));
@@ -160,8 +161,8 @@ public static function strftime($format)
160161
*
161162
* @return array|string|string[]
162163
*/
163-
private static function _strftimeFormatToDateFormat($strftimeFormat) {
164-
164+
private static function _strftimeFormatToDateFormat($strftimeFormat)
165+
{
165166
// Missing %V %C %g %G
166167
$search = array(
167168
'%a', '%A', '%d', '%e', '%u',

lib/response/sfResponse.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ public function unserialize($serialized)
177177
*
178178
* @return array
179179
*/
180-
public function __serialize() {
180+
public function __serialize()
181+
{
181182
return array('content' => $this->content);
182183
}
183184

lib/routing/sfRoute.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,8 @@ public function unserialize($serialized)
862862
*
863863
* @return array
864864
*/
865-
public function __serialize() {
865+
public function __serialize()
866+
{
866867
// always serialize compiled routes
867868
$this->compile();
868869
// sfPatternRouting will always re-set defaultParameters, so no need to serialize them

lib/util/sfParameterHolder.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ public function unserialize($serialized)
203203
*
204204
* @return Array
205205
*/
206-
public function __serialize() {
207-
206+
public function __serialize()
207+
{
208208
return $this->parameters;
209209
}
210210

0 commit comments

Comments
 (0)