Skip to content

Commit 22f7a45

Browse files
committed
Updated to 1.1.8 version
1 parent d115aff commit 22f7a45

File tree

8 files changed

+29
-57
lines changed

8 files changed

+29
-57
lines changed

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ phpmd.xml export-ignore
99
.travis.yml export-ignore
1010
.editorconfig export-ignore
1111
.gitattributes export-ignore
12-
.gitignore export-ignore
12+
.gitignore export-ignore
13+
.php_cs.dist export-ignore
14+
CONDUCT.md export-ignore

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 1.1.8 - 2018-01-06
4+
5+
* The tests were fixed.
6+
7+
* Changes in documentation.
8+
39
## 1.1.7 - 2017-11-08
410

511
* Implemented `PHP Mess Detector` to detect inconsistencies in code styles.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22
=====================
33

4-
Copyright (c) `2016 - 2017` `Josantonius, https://josantonius.com <hello@josantonius.com>`
4+
Copyright (c) `2016 - 2018` `Josantonius, https://josantonius.com <hello@josantonius.com>`
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of
77
this software and associated documentation files (the "Software"), to deal in

README-ES.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ Ejecutar todas las pruebas anteriores:
155155

156156
## ☑ Tareas pendientes
157157

158-
- [ ] Añadir nueva funcionalidad
159-
- [ ] Mejorar pruebas
160-
- [ ] Mejorar documentación
161-
- [ ] Refactorizar código
158+
- [ ] Añadir nueva funcionalidad.
159+
- [ ] Mejorar pruebas.
160+
- [ ] Mejorar documentación.
161+
- [ ] Refactorizar código para las reglas de estilo de código deshabilitadas. Ver [phpmd.xml](phpmd.xml) y [.php_cs.dist](.php_cs.dist).
162162

163163
## Contribuir
164164

@@ -185,7 +185,7 @@ Este proyecto está licenciado bajo **licencia MIT**. Consulta el archivo [LICEN
185185

186186
## Copyright
187187

188-
2017 Josantonius, [josantonius.com](https://josantonius.com/)
188+
2016 - 2018 Josantonius, [josantonius.com](https://josantonius.com/)
189189

190190
Si te ha resultado útil, házmelo saber :wink:
191191

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ Run all previous tests:
156156

157157
## ☑ TODO
158158

159-
- [ ] Add new feature
160-
- [ ] Improve tests
161-
- [ ] Improve documentation
162-
- [ ] Refactor code
159+
- [ ] Add new feature.
160+
- [ ] Improve tests.
161+
- [ ] Improve documentation.
162+
- [ ] Refactor code for disabled code style rules. See [phpmd.xml](phpmd.xml) and [.php_cs.dist](.php_cs.dist).
163163

164164
## Contribute
165165

@@ -186,7 +186,7 @@ This project is licensed under **MIT license**. See the [LICENSE](LICENSE) file
186186

187187
## Copyright
188188

189-
2017 Josantonius, [josantonius.com](https://josantonius.com/)
189+
2016 - 2018 Josantonius, [josantonius.com](https://josantonius.com/)
190190

191191
If you find it useful, let me know :wink:
192192

src/ErrorHandler.php

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* PHP library for handling exceptions and errors.
44
*
55
* @author Josantonius <hello@josantonius.com>
6-
* @copyright 2017 (c) Josantonius - PHP-DataType
6+
* @copyright 2016 - 2018 (c) Josantonius - PHP-DataType
77
* @license https://opensource.org/licenses/MIT - The MIT License (MIT)
88
* @link https://github.com/Josantonius/PHP-ErrorHandler
99
* @since 1.0.0
@@ -12,25 +12,19 @@
1212

1313
/**
1414
* Handling exceptions and errors.
15-
*
16-
* @since 1.0.0
1715
*/
1816
class ErrorHandler
1917
{
2018
/**
2119
* Active stack.
2220
*
23-
* @since 1.0.0
24-
*
2521
* @var array
2622
*/
2723
public static $stack;
2824

2925
/**
3026
* Style load validator.
3127
*
32-
* @since 1.0.0
33-
*
3428
* @var bool
3529
*/
3630
public static $styles = false;
@@ -46,8 +40,6 @@ class ErrorHandler
4640

4741
/**
4842
* Catch errors and exceptions and execute the method.
49-
*
50-
* @since 1.0.0
5143
*/
5244
public function __construct()
5345
{
@@ -58,8 +50,6 @@ public function __construct()
5850
/**
5951
* Handle exceptions catch.
6052
*
61-
* @since 1.0.0
62-
*
6353
* Optionally for libraries used in Eliasis PHP Framework: $e->statusCode
6454
*
6555
* @param object $e
@@ -99,14 +89,12 @@ public function exception($e)
9989
/**
10090
* Handle error catch.
10191
*
102-
* @since 1.0.0
103-
*
10492
* @param int $code → error code
10593
* @param int $msg → error message
10694
* @param int $file → error file
10795
* @param int $line → error line
10896
*
109-
* @return bool
97+
* @return boolean
11098
*/
11199
public function error($code, $msg, $file, $line)
112100
{
@@ -120,8 +108,6 @@ public function error($code, $msg, $file, $line)
120108
/**
121109
* Convert error code to text.
122110
*
123-
* @since 1.0.0
124-
*
125111
* @param int $code → error code
126112
*
127113
* @return string → error type
@@ -283,9 +269,7 @@ protected function getCustomMethods()
283269
/**
284270
* Renderization.
285271
*
286-
* @since 1.0.0
287-
*
288-
* @return bool
272+
* @return boolean
289273
*/
290274
protected function render()
291275
{

src/public/template/view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* PHP library for handling exceptions and errors.
44
*
55
* @author Josantonius <hello@josantonius.com>
6-
* @copyright 2017 (c) Josantonius - PHP-DataType
6+
* @copyright 2016 - 2018 (c) Josantonius - PHP-DataType
77
* @license https://opensource.org/licenses/MIT - The MIT License (MIT)
88
* @link https://github.com/Josantonius/PHP-ErrorHandler
99
* @since 1.0.0

tests/ErrorHandlerTest.php

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* PHP library for handling exceptions and errors.
44
*
55
* @author Josantonius <hello@josantonius.com>
6-
* @copyright 2017 (c) Josantonius - PHP-DataType
6+
* @copyright 2016 - 2018 (c) Josantonius - PHP-ErrorHandler
77
* @license https://opensource.org/licenses/MIT - The MIT License (MIT)
88
* @link https://github.com/Josantonius/PHP-ErrorHandler
99
* @since 1.1.5
@@ -14,8 +14,6 @@
1414

1515
/**
1616
* Tests class for ErrorHandler library.
17-
*
18-
* @since 1.1.5
1917
*/
2018
final class ErrorHandlerTest extends TestCase
2119
{
@@ -30,8 +28,6 @@ final class ErrorHandlerTest extends TestCase
3028

3129
/**
3230
* Set up.
33-
*
34-
* @since 1.1.5
3531
*/
3632
public function setUp()
3733
{
@@ -47,14 +43,14 @@ public function setUp()
4743
*/
4844
public function testIsInstanceOfErrorHandler()
4945
{
50-
$actual = $this->ErrorHandler;
51-
$this->assertInstanceOf('Josantonius\ErrorHandler\ErrorHandler', $actual);
46+
$this->assertInstanceOf(
47+
'Josantonius\ErrorHandler\ErrorHandler',
48+
$this->ErrorHandler
49+
);
5250
}
5351

5452
/**
5553
* Check if custom exception handler is activated.
56-
*
57-
* @since 1.1.5
5854
*/
5955
public function testIfCustomExceptionHandlerIsActivated()
6056
{
@@ -68,8 +64,6 @@ public function testIfCustomExceptionHandlerIsActivated()
6864

6965
/**
7066
* Check if custom exception handler is activated.
71-
*
72-
* @since 1.1.5
7367
*/
7468
public function testIfCustomErrorHandlerIsActivated()
7569
{
@@ -83,8 +77,6 @@ public function testIfCustomErrorHandlerIsActivated()
8377

8478
/**
8579
* Test exception handler.
86-
*
87-
* @since 1.1.5
8880
*/
8981
public function testException()
9082
{
@@ -95,8 +87,6 @@ public function testException()
9587

9688
/**
9789
* Test exception handler with custom methods and not show default view.
98-
*
99-
* @since 1.1.5
10090
*/
10191
public function testExceptionWithCustomMethodsWithoutShowDefaultView()
10292
{
@@ -114,8 +104,6 @@ public function testExceptionWithCustomMethodsWithoutShowDefaultView()
114104

115105
/**
116106
* Test exception handler with custom methods and show default view.
117-
*
118-
* @since 1.1.5
119107
*/
120108
public function testExceptionWithCustomMethodsAndShowDefaultView()
121109
{
@@ -133,8 +121,6 @@ public function testExceptionWithCustomMethodsAndShowDefaultView()
133121

134122
/**
135123
* Test error handler.
136-
*
137-
* @since 1.1.5
138124
*/
139125
public function testError()
140126
{
@@ -145,8 +131,6 @@ public function testError()
145131

146132
/**
147133
* Test error handler with custom methods and not show default view.
148-
*
149-
* @since 1.1.5
150134
*/
151135
public function testErrorWithCustomMethodsWithoutShowDefaultView()
152136
{
@@ -164,8 +148,6 @@ public function testErrorWithCustomMethodsWithoutShowDefaultView()
164148

165149
/**
166150
* Test error handler with custom methods and show default view.
167-
*
168-
* @since 1.1.5
169151
*/
170152
public function testErrorWithCustomMethodsAndShowDefaultView()
171153
{
@@ -183,8 +165,6 @@ public function testErrorWithCustomMethodsAndShowDefaultView()
183165

184166
/**
185167
* Get error type.
186-
*
187-
* @since 1.1.5
188168
*/
189169
public function testGetErrorType()
190170
{

0 commit comments

Comments
 (0)