Skip to content

Commit b45b1c3

Browse files
committed
general updates
1 parent 2d02573 commit b45b1c3

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

ErrorHandler.php

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
22

33
/**
4-
* This file is part of the Force Components.
4+
* @package Flextype Components
55
*
6-
* (c) Romanenko Sergey / Awilum <[email protected]>
6+
* @author Sergey Romanenko <[email protected]>
7+
* @link http://components.flextype.org
78
*
89
* For the full copyright and license information, please view the LICENSE
910
* file that was distributed with this source code.
1011
*/
1112

13+
namespace Flextype\Component\ErrorHandler;
14+
1215
class ErrorHandler
1316
{
1417

@@ -29,16 +32,6 @@ class ErrorHandler
2932
E_USER_ERROR => 'Error',
3033
);
3134

32-
/**
33-
* Protected constructor since this is a static class.
34-
*
35-
* @access protected
36-
*/
37-
protected function __construct()
38-
{
39-
// Nothing here
40-
}
41-
4235
/**
4336
* Returns an array of lines from a file.
4437
*
@@ -163,7 +156,7 @@ protected static function formatBacktrace($backtrace)
163156
/**
164157
* Format backtrace
165158
*/
166-
$trace = array();
159+
$trace = [];
167160

168161
foreach ($backtrace as $entry) {
169162

@@ -181,7 +174,7 @@ protected static function formatBacktrace($backtrace)
181174
/**
182175
* Arguments
183176
*/
184-
$arguments = array();
177+
$arguments = [];
185178

186179
if (isset($entry['args']) && count($entry['args']) > 0) {
187180
foreach ($entry['args'] as $arg) {
@@ -200,7 +193,7 @@ protected static function formatBacktrace($backtrace)
200193
/**
201194
* Location
202195
*/
203-
$location = array();
196+
$location = [];
204197

205198
if (isset($entry['file'])) {
206199
$location['file'] = $entry['file'];

ErrorHandler/Resources/Views/Errors/exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

109109
<div class="error">
110110
<?php echo $error['type']; ?><?php if(isset($error['code'])): ?> <span style="color:#e1e1e1;padding:0px">[<?php echo $error['code']; ?>]</span><?php endif; ?>
111-
<span class="pull-right">Gelato</span>
111+
<span class="pull-right">Flextype</span>
112112
</div>
113113
<div class="body">
114114
<strong>Message:</strong> <?php echo htmlspecialchars($error['message'], ENT_COMPAT, 'UTF-8', false); ?>

0 commit comments

Comments
 (0)