← All changes
|
vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Exception.php
+30
-24
3.1.0
→
3.0.10
View file →
| @@ -1,10 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | - * PHPExcel_Calculation_Exception | |
| 3 | + * PHPExcel | |
| 5 | 4 | * |
| 6 | - * Copyright (c) 2006 - 2015 PHPExcel | |
| 5 | + * Copyright (c) 2006 - 2014 PHPExcel | |
| 7 | 6 | * |
| 8 | 7 | * This library is free software; you can redistribute it and/or |
| 9 | 8 | * modify it under the terms of the GNU Lesser General Public |
| 10 | 9 | * License as published by the Free Software Foundation; either |
| @@ -20,27 +19,34 @@ | ||
| 20 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | 20 | * |
| 22 | 21 | * @category PHPExcel |
| 23 | 22 | * @package PHPExcel_Calculation |
| 24 | - * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) | |
| 25 | - * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | |
| 26 | - * @version ##VERSION##, ##DATE## | |
| 23 | + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) | |
| 24 | + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | |
| 25 | + * @version ##VERSION##, ##DATE## | |
| 27 | 26 | */ |
| 28 | -class PHPExcel_Calculation_Exception extends PHPExcel_Exception | |
| 29 | -{ | |
| 30 | - /** | |
| 31 | - * Error handler callback | |
| 32 | - * | |
| 33 | - * @param mixed $code | |
| 34 | - * @param mixed $string | |
| 35 | - * @param mixed $file | |
| 36 | - * @param mixed $line | |
| 37 | - * @param mixed $context | |
| 38 | - */ | |
| 39 | - public static function errorHandlerCallback($code, $string, $file, $line, $context) | |
| 40 | - { | |
| 41 | - $e = new self($string, $code); | |
| 42 | - $e->line = $line; | |
| 43 | - $e->file = $file; | |
| 44 | - throw $e; | |
| 45 | - } | |
| 27 | + | |
| 28 | + | |
| 29 | +/** | |
| 30 | + * PHPExcel_Calculation_Exception | |
| 31 | + * | |
| 32 | + * @category PHPExcel | |
| 33 | + * @package PHPExcel_Calculation | |
| 34 | + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) | |
| 35 | + */ | |
| 36 | +class PHPExcel_Calculation_Exception extends PHPExcel_Exception { | |
| 37 | + /** | |
| 38 | + * Error handler callback | |
| 39 | + * | |
| 40 | + * @param mixed $code | |
| 41 | + * @param mixed $string | |
| 42 | + * @param mixed $file | |
| 43 | + * @param mixed $line | |
| 44 | + * @param mixed $context | |
| 45 | + */ | |
| 46 | + public static function errorHandlerCallback($code, $string, $file, $line, $context) { | |
| 47 | + $e = new self($string, $code); | |
| 48 | + $e->line = $line; | |
| 49 | + $e->file = $file; | |
| 50 | + throw $e; | |
| 51 | + } | |
| 46 | 52 | } |