Skip to content
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
2 changes: 1 addition & 1 deletion lib/Horde/Support/Array.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @todo - Incorporate stuff from Horde_Array?
* - http://docs.python.org/lib/typesmapping.html
Expand Down
6 changes: 3 additions & 3 deletions lib/Horde/Support/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Wrapper around backtraces providing utility methods.
*
* Copyright 1999-2017 Horde LLC (http://www.horde.org/)
* Copyright 1999-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down Expand Up @@ -158,10 +158,10 @@ public function getCallingContext()
public function __toString()
{
$count = count($this->backtrace);
$pad = strlen((string)$count);
$pad = strlen((string) $count);
$map = '';
for ($i = $count - 1; $i >= 0; $i--) {
$map .= str_pad((string)($count - $i), $pad, ' ', STR_PAD_LEFT) . '. ';
$map .= str_pad((string) ($count - $i), $pad, ' ', STR_PAD_LEFT) . '. ';
if (isset($this->backtrace[$i]['class'])) {
$map .= $this->backtrace[$i]['class']
. $this->backtrace[$i]['type'];
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/CaseInsensitiveArray.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2013-2017 Horde LLC (http://www.horde.org/)
* Copyright 2013-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://www.horde.org/licenses/bsd.
Expand Down
6 changes: 3 additions & 3 deletions lib/Horde/Support/CombineStream.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2009-2017 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* @author Michael Slusarz <slusarz@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
Expand Down Expand Up @@ -69,8 +69,8 @@ public function getFileObject()
*/
public function installWrapper()
{
if (!in_array('horde-combine', stream_get_wrappers()) &&
!stream_wrapper_register('horde-combine', 'Horde_Stream_Wrapper_Combine')) {
if (!in_array('horde-combine', stream_get_wrappers())
&& !stream_wrapper_register('horde-combine', 'Horde_Stream_Wrapper_Combine')) {
throw new Exception('Unable to register horde-combine stream wrapper.');
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/ConsistentHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* and also the original paper:
* http://www8.org/w8-papers/2a-webserver/caching/paper2.html
*
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @todo Ideas for future enhancement:
* - provide a callback when a point is moved on the circle, so that the
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Guid.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* $uid = (string)new Horde_Support_Guid([$opts = array()]);
* </code>
*
* Copyright 2009-2017 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
6 changes: 3 additions & 3 deletions lib/Horde/Support/Inflector.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down Expand Up @@ -213,8 +213,8 @@ public function camelize($word, $firstLetter = 'upper')
}

$camelized = $word;
if (Horde_String::lower($camelized) != $camelized &&
strpos($camelized, '_') !== false) {
if (Horde_String::lower($camelized) != $camelized
&& strpos($camelized, '_') !== false) {
$camelized = str_replace('_', '/', $camelized);
}
if (strpos($camelized, '/') !== false) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* you should get an idea about why you might be cautious about the values you
* get from this memory tracker.
*
* Copyright 2011-2017 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Numerizer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Numerizer/Locale/Base.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Numerizer/Locale/De.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Jan Schneider <jan@horde.org>
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Numerizer/Locale/Pt.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @license http://www.horde.org/licenses/bsd BSD
* @category Horde
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/ObjectStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Provides a wrapper around an object to return null for non-existent
* properties (instead of throwing an error).
*
* Copyright 2012-2017 Horde LLC (http://www.horde.org/)
* Copyright 2012-2026 Horde LLC (http://www.horde.org/)
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
Expand Down
6 changes: 3 additions & 3 deletions lib/Horde/Support/Randomid.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* $id = (string)new Horde_Support_Randomid();
* </code>
*
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
Expand Down Expand Up @@ -46,8 +46,8 @@ public function generate()
if (function_exists('zend_thread_id')) {
$elts[] = zend_thread_id();
}
if (function_exists('sys_getloadavg') &&
($loadavg = sys_getloadavg())) {
if (function_exists('sys_getloadavg')
&& ($loadavg = sys_getloadavg())) {
$elts = array_merge($elts, $loadavg);
}
if (function_exists('memory_get_usage')) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Simple class for using an array as a stack.
*
* Copyright 2008-2017 Horde LLC (http://www.horde.org/)
* Copyright 2008-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
6 changes: 3 additions & 3 deletions lib/Horde/Support/StringStream.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @category Horde
Expand Down Expand Up @@ -82,8 +82,8 @@ public function getFileObject()
*/
public function installWrapper()
{
if (!in_array(self::WNAME, stream_get_wrappers()) &&
!stream_wrapper_register(self::WNAME, 'Horde_Stream_Wrapper_String')) {
if (!in_array(self::WNAME, stream_get_wrappers())
&& !stream_wrapper_register(self::WNAME, 'Horde_Stream_Wrapper_String')) {
throw new Exception('Unable to register stream wrapper.');
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Stub.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2008-2017 Horde LLC (http://www.horde.org/)
* Copyright 2008-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @copyright 2008-2017 Horde LLC
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* $elapsed = $t->pop();
* </code>
*
* Copyright 1999-2017 Horde LLC (http://www.horde.org/)
* Copyright 1999-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
2 changes: 1 addition & 1 deletion lib/Horde/Support/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* $uuid = (string)new Horde_Support_Uuid;
* </code>
*
* Copyright 2008-2017 Horde LLC (http://www.horde.org/)
* Copyright 2008-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
failOnPhpunitDeprecation="true"
failOnRisky="true"
failOnWarning="true"
defaultTestSuite="unit"
colors="true">
<testsuites>
<testsuite name="unit">
<directory>test/unit</directory>
<directory>test/Unit</directory>
</testsuite>
</testsuites>

Expand Down
6 changes: 3 additions & 3 deletions src/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Wrapper around backtraces providing utility methods.
*
* Copyright 1999-2017 Horde LLC (http://www.horde.org/)
* Copyright 1999-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down Expand Up @@ -150,10 +150,10 @@ public function getCallingContext()
public function __toString()
{
$count = count($this->backtrace);
$pad = strlen((string)$count);
$pad = strlen((string) $count);
$map = '';
for ($i = $count - 1; $i >= 0; $i--) {
$map .= str_pad((string)($count - $i), $pad, ' ', STR_PAD_LEFT) . '. ';
$map .= str_pad((string) ($count - $i), $pad, ' ', STR_PAD_LEFT) . '. ';
if (isset($this->backtrace[$i]['class'])) {
$map .= $this->backtrace[$i]['class']
. $this->backtrace[$i]['type'];
Expand Down
2 changes: 1 addition & 1 deletion src/CaseInsensitiveArray.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2013-2017 Horde LLC (http://www.horde.org/)
* Copyright 2013-2026 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://www.horde.org/licenses/bsd.
Expand Down
6 changes: 3 additions & 3 deletions src/CombineStream.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2009-2017 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* @author Michael Slusarz <slusarz@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
Expand Down Expand Up @@ -75,8 +75,8 @@ public function getFileObject()
*/
public function installWrapper()
{
if (!in_array('horde-combine', stream_get_wrappers()) &&
!stream_wrapper_register('horde-combine', 'Horde_Stream_Wrapper_Combine')) {
if (!in_array('horde-combine', stream_get_wrappers())
&& !stream_wrapper_register('horde-combine', 'Horde_Stream_Wrapper_Combine')) {
throw new Exception('Unable to register horde-combine stream wrapper.');
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ConsistentHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* and also the original paper:
* http://www8.org/w8-papers/2a-webserver/caching/paper2.html
*
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @todo Ideas for future enhancement:
* - provide a callback when a point is moved on the circle, so that the
Expand Down
2 changes: 1 addition & 1 deletion src/Guid.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* $uid = (string)new Horde_Support_Guid([$opts = array()]);
* </code>
*
* Copyright 2009-2017 Horde LLC (http://www.horde.org/)
* Copyright 2009-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
2 changes: 1 addition & 1 deletion src/HordeArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use ArrayIterator;

/**
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @todo - Incorporate stuff from Horde_Array?
* - http://docs.python.org/lib/typesmapping.html
Expand Down
6 changes: 3 additions & 3 deletions src/Inflector.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2007-2017 Horde LLC (http://www.horde.org/)
* Copyright 2007-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down Expand Up @@ -223,8 +223,8 @@ public function camelize($word, $firstLetter = 'upper')
}

$camelized = $word;
if (Horde_String::lower($camelized) != $camelized &&
strpos($camelized, '_') !== false) {
if (Horde_String::lower($camelized) != $camelized
&& strpos($camelized, '_') !== false) {
$camelized = str_replace('_', '/', $camelized);
}
if (strpos($camelized, '/') !== false) {
Expand Down
2 changes: 1 addition & 1 deletion src/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* you should get an idea about why you might be cautious about the values you
* get from this memory tracker.
*
* Copyright 2011-2017 Horde LLC (http://www.horde.org/)
* Copyright 2011-2026 Horde LLC (http://www.horde.org/)
*
* @category Horde
* @package Support
Expand Down
4 changes: 2 additions & 2 deletions src/Numerizer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
Expand Down Expand Up @@ -45,6 +45,6 @@ public static function factory($args = [])
}
}

return new \Horde\Support\Numerizer\Locale\Base($args);
return new Numerizer\Locale\Base($args);
}
}
2 changes: 1 addition & 1 deletion src/Numerizer/Locale/Base.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
Expand Down
2 changes: 1 addition & 1 deletion src/Numerizer/Locale/De.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Jan Schneider <jan@horde.org>
Expand Down
2 changes: 1 addition & 1 deletion src/Numerizer/Locale/Pt.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
* Copyright 2010-2026 Horde LLC (http://www.horde.org/)
*
* @license http://www.horde.org/licenses/bsd BSD
* @category Horde
Expand Down
Loading
Loading