@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * |
| 223 | 223 | * @param int $uTimestamp timestamp |
| 224 | 224 | * |
| 225 | - * @return string output |
|
| 225 | + * @return integer output |
|
| 226 | 226 | */ |
| 227 | 227 | public static function toDos($uTimestamp) |
| 228 | 228 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * |
| 252 | 252 | * @param int $uTimestamp timestamp |
| 253 | 253 | * |
| 254 | - * @return string output |
|
| 254 | + * @return integer output |
|
| 255 | 255 | */ |
| 256 | 256 | public static function fromDos($uTimestamp) |
| 257 | 257 | { |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * @param int $uTimestamp timestamp |
| 297 | 297 | * @param string $uFormat source format |
| 298 | 298 | * |
| 299 | - * @return string output |
|
| 299 | + * @return integer output |
|
| 300 | 300 | */ |
| 301 | 301 | public static function fromDb($uTimestamp, $uFormat = "d-m-Y H:i:s") |
| 302 | 302 | { |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Scabbia2 Helpers Component |
|
| 4 | - * https://github.com/eserozvataf/scabbia2 |
|
| 5 | - * |
|
| 6 | - * For the full copyright and license information, please view the LICENSE |
|
| 7 | - * file that was distributed with this source code. |
|
| 8 | - * |
|
| 9 | - * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | - * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | - * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | - */ |
|
| 3 | + * Scabbia2 Helpers Component |
|
| 4 | + * https://github.com/eserozvataf/scabbia2 |
|
| 5 | + * |
|
| 6 | + * For the full copyright and license information, please view the LICENSE |
|
| 7 | + * file that was distributed with this source code. |
|
| 8 | + * |
|
| 9 | + * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | + * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | + * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Scabbia\Helpers; |
| 15 | 15 | |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * @param string $uPath the file path |
| 143 | 143 | * @param int $uFlags flags |
| 144 | 144 | * |
| 145 | - * @return bool|string the file content |
|
| 145 | + * @return false|string the file content |
|
| 146 | 146 | */ |
| 147 | 147 | public static function read($uPath, $uFlags = self::LOCK_SHARE) |
| 148 | 148 | { |
@@ -352,7 +352,7 @@ |
||
| 352 | 352 | * |
| 353 | 353 | * @param string $uType the type of the document |
| 354 | 354 | * |
| 355 | - * @return bool|string html output |
|
| 355 | + * @return string|false html output |
|
| 356 | 356 | */ |
| 357 | 357 | public static function doctype($uType = "html5") |
| 358 | 358 | { |
@@ -358,7 +358,7 @@ |
||
| 358 | 358 | { |
| 359 | 359 | if ($uType === "html5" || $uType === "xhtml5") { |
| 360 | 360 | return "<!DOCTYPE html>" . PHP_EOL; |
| 361 | - } elseif ($uType === "xhtml11" || $uType === "xhtml1.1") { |
|
| 361 | + } elseif ($uType === "xhtml11" || $uType === "xhtml1.1") { |
|
| 362 | 362 | return |
| 363 | 363 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" " . |
| 364 | 364 | "\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">" . |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Scabbia2 Helpers Component |
|
| 4 | - * https://github.com/eserozvataf/scabbia2 |
|
| 5 | - * |
|
| 6 | - * For the full copyright and license information, please view the LICENSE |
|
| 7 | - * file that was distributed with this source code. |
|
| 8 | - * |
|
| 9 | - * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | - * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | - * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | - */ |
|
| 3 | + * Scabbia2 Helpers Component |
|
| 4 | + * https://github.com/eserozvataf/scabbia2 |
|
| 5 | + * |
|
| 6 | + * For the full copyright and license information, please view the LICENSE |
|
| 7 | + * file that was distributed with this source code. |
|
| 8 | + * |
|
| 9 | + * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | + * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | + * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Scabbia\Helpers; |
| 15 | 15 | |
@@ -1544,7 +1544,7 @@ discard block |
||
| 1544 | 1544 | * @param int $uNumber the input number |
| 1545 | 1545 | * @param string $uBaseChars charset available for source base |
| 1546 | 1546 | * |
| 1547 | - * @return string converted base |
|
| 1547 | + * @return integer converted base |
|
| 1548 | 1548 | */ |
| 1549 | 1549 | public static function fromBase($uNumber, $uBaseChars) |
| 1550 | 1550 | { |
@@ -1575,7 +1575,7 @@ discard block |
||
| 1575 | 1575 | * |
| 1576 | 1576 | * @param int $uNumber the input number |
| 1577 | 1577 | * |
| 1578 | - * @return string converted base |
|
| 1578 | + * @return integer converted base |
|
| 1579 | 1579 | */ |
| 1580 | 1580 | public static function fromBase62($uNumber) |
| 1581 | 1581 | { |
@@ -1599,7 +1599,7 @@ discard block |
||
| 1599 | 1599 | * |
| 1600 | 1600 | * @param int $uNumber the input number |
| 1601 | 1601 | * |
| 1602 | - * @return string converted base |
|
| 1602 | + * @return integer converted base |
|
| 1603 | 1603 | */ |
| 1604 | 1604 | public static function fromBaseUrl($uNumber) |
| 1605 | 1605 | { |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Scabbia2 Helpers Component |
|
| 4 | - * https://github.com/eserozvataf/scabbia2 |
|
| 5 | - * |
|
| 6 | - * For the full copyright and license information, please view the LICENSE |
|
| 7 | - * file that was distributed with this source code. |
|
| 8 | - * |
|
| 9 | - * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | - * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | - * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | - */ |
|
| 3 | + * Scabbia2 Helpers Component |
|
| 4 | + * https://github.com/eserozvataf/scabbia2 |
|
| 5 | + * |
|
| 6 | + * For the full copyright and license information, please view the LICENSE |
|
| 7 | + * file that was distributed with this source code. |
|
| 8 | + * |
|
| 9 | + * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | + * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | + * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Scabbia\Helpers; |
| 15 | 15 | |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | public static function squoteArray($uArray, $uCover = false) |
| 632 | 632 | { |
| 633 | 633 | $tArray = []; |
| 634 | - foreach ((array)$uArray as $tKey => $tValue) { |
|
| 634 | + foreach ((array) $uArray as $tKey => $tValue) { |
|
| 635 | 635 | if ($uCover) { |
| 636 | 636 | $tArray[$tKey] = "'" . |
| 637 | 637 | str_replace( |
@@ -664,7 +664,7 @@ discard block |
||
| 664 | 664 | public static function dquoteArray($uArray, $uCover = false) |
| 665 | 665 | { |
| 666 | 666 | $tArray = []; |
| 667 | - foreach ((array)$uArray as $tKey => $tValue) { |
|
| 667 | + foreach ((array) $uArray as $tKey => $tValue) { |
|
| 668 | 668 | if ($uCover) { |
| 669 | 669 | $tArray[$tKey] = "\"" . |
| 670 | 670 | str_replace( |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | { |
| 84 | 84 | if (is_string($uCallback) && ($tPos = strrpos($uCallback, "@")) !== false) { |
| 85 | 85 | $tClassName = substr($uCallback, 0, $tPos); |
| 86 | - $uCallback = [new $tClassName (), substr($uCallback, $tPos + 1)]; |
|
| 86 | + $uCallback = [new $tClassName(), substr($uCallback, $tPos + 1)]; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return $uCallback; |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Scabbia2 Helpers Component |
|
| 4 | - * https://github.com/eserozvataf/scabbia2 |
|
| 5 | - * |
|
| 6 | - * For the full copyright and license information, please view the LICENSE |
|
| 7 | - * file that was distributed with this source code. |
|
| 8 | - * |
|
| 9 | - * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | - * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | - * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | - */ |
|
| 3 | + * Scabbia2 Helpers Component |
|
| 4 | + * https://github.com/eserozvataf/scabbia2 |
|
| 5 | + * |
|
| 6 | + * For the full copyright and license information, please view the LICENSE |
|
| 7 | + * file that was distributed with this source code. |
|
| 8 | + * |
|
| 9 | + * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | + * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | + * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Scabbia\Helpers; |
| 15 | 15 | |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Scabbia2 Helpers Component |
|
| 4 | - * https://github.com/eserozvataf/scabbia2 |
|
| 5 | - * |
|
| 6 | - * For the full copyright and license information, please view the LICENSE |
|
| 7 | - * file that was distributed with this source code. |
|
| 8 | - * |
|
| 9 | - * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | - * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | - * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | - */ |
|
| 3 | + * Scabbia2 Helpers Component |
|
| 4 | + * https://github.com/eserozvataf/scabbia2 |
|
| 5 | + * |
|
| 6 | + * For the full copyright and license information, please view the LICENSE |
|
| 7 | + * file that was distributed with this source code. |
|
| 8 | + * |
|
| 9 | + * @link https://github.com/eserozvataf/scabbia2-helpers for the canonical source repository |
|
| 10 | + * @copyright 2010-2016 Eser Ozvataf. (http://eser.ozvataf.com/) |
|
| 11 | + * @license http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 |
|
| 12 | + */ |
|
| 13 | 13 | |
| 14 | 14 | namespace Scabbia\Helpers; |
| 15 | 15 | |