Skip to content

Commit

Permalink
Updated to 1.1.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed Jan 6, 2018
1 parent 97aa912 commit a567b17
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 92 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ phpmd.xml export-ignore
.travis.yml export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.gitignore export-ignore
.php_cs.dist export-ignore
CONDUCT.md export-ignore
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## 1.1.0 - 2018-01-06

* The tests were fixed.

* Changes in documentation.

## 1.0.9 - 2017-11-08

* Implemented `PHP Mess Detector` to detect inconsistencies in code styles.
Expand Down Expand Up @@ -86,7 +92,7 @@

## 1.0.5 - 2017-06-24

*The class was improved to work with different instances and some static methods were changed to dynamic ones.
* The class was improved to work with different instances and some static methods were changed to dynamic ones.

## 1.0.4 - 2017-06-02

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)
=====================

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

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
10 changes: 5 additions & 5 deletions README-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ Ejecutar todas las pruebas anteriores:

## ☑ Tareas pendientes

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

## Contribuir

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

## Copyright

2017 Josantonius, [josantonius.com](https://josantonius.com/)
2017 - 2018 Josantonius, [josantonius.com](https://josantonius.com/)

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

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ Run all previous tests:

## ☑ TODO

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

## Contribute

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

## Copyright

2017 Josantonius, [josantonius.com](https://josantonius.com/)
2017 - 2018 Josantonius, [josantonius.com](https://josantonius.com/)

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

Expand Down
36 changes: 1 addition & 35 deletions tests/Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Library for handling hooks.
*
* @author Josantonius <hello@josantonius.com>
* @copyright 2017 (c) Josantonius - PHP-Hook
* @copyright 2017 - 2018 (c) Josantonius - PHP-Hook
* @license https://opensource.org/licenses/MIT - The MIT License (MIT)
* @link https://github.com/Josantonius/PHP-Hook
* @since 1.0.8
Expand All @@ -12,93 +12,59 @@

/**
* Example class.
*
* @since 1.0.8
*/
class Example
{
/**
* Class instance.
*
* @since 1.0.8
*/
private static $singleton;

/**
* @since 1.0.8
*/
public static function getInstance()
{
return self::$singleton = new self;
}

/**
* @since 1.0.8
*/
public static function singletonMethod()
{
return self::getInstance();
}

/**
* @since 1.0.8
*/
public function meta($title)
{
return 'meta-hook';
}

/**
* @since 1.0.8
*/
public function css()
{
return 'css-hook';
}

/**
* @since 1.0.8
*/
public function js()
{
return 'js-hook';
}

/**
* @since 1.0.8
*/
public function afterBody()
{
return 'after-hook';
}

/**
* @since 1.0.8
*/
public function slide()
{
return Hook::current();
}

/**
* @since 1.0.8
*/
public function form($input, $select)
{
return 'form-hook';
}

/**
* @since 1.0.8
*/
public function article()
{
return 'article-hook';
}

/**
* @since 1.0.8
*/
public function footer()
{
return 'footer-hook';
Expand Down
Loading

0 comments on commit a567b17

Please sign in to comment.