Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierozi committed Mar 16, 2017
1 parent f4fd9bf commit 4ca678a
Show file tree
Hide file tree
Showing 36 changed files with 127 additions and 96 deletions.
4 changes: 2 additions & 2 deletions Bin/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Assert rules.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Assert extends Console\Dispatcher\Kit
Expand Down
6 changes: 3 additions & 3 deletions Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* Context of a rule, it contains data to instanciate the rule.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Context implements \ArrayAccess
Expand Down Expand Up @@ -112,7 +112,7 @@ public function offsetGet($id)
}

if (true === is_callable($value)) {
if (true === is_string($value) &&
if (true === is_string($value) &&
false === in_array(strtolower($value), get_defined_functions()['user'])) {
return $value;
}
Expand Down
4 changes: 2 additions & 2 deletions DynamicCallable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -43,7 +43,7 @@
*
* A callable without cache. Useful for the Context.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class DynamicCallable extends Consistency\Xcallable
Expand Down
4 changes: 2 additions & 2 deletions Exception/Asserter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* Extending the \Hoa\Ruler\Exception class.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Asserter extends Exception
Expand Down
4 changes: 2 additions & 2 deletions Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Extending the \Hoa\Exception\Exception class.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Exception extends HoaException
Expand Down
4 changes: 2 additions & 2 deletions Exception/Interpreter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* Extending the \Hoa\Ruler\Exception class.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Interpreter extends Exception
Expand Down
4 changes: 2 additions & 2 deletions Model/Bag/Bag.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Generic bag.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
abstract class Bag implements Visitor\Element
Expand Down
4 changes: 2 additions & 2 deletions Model/Bag/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -43,7 +43,7 @@
*
* Bag for context, i.e. a variable.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Context extends Bag
Expand Down
4 changes: 2 additions & 2 deletions Model/Bag/RulerArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* Bag for an array.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class RulerArray extends Bag
Expand Down
4 changes: 2 additions & 2 deletions Model/Bag/Scalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* Bag for a scalar.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Scalar extends Bag
Expand Down
4 changes: 2 additions & 2 deletions Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -45,7 +45,7 @@
*
* Root of the model, allow to declare everything.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Model implements Visitor\Element
Expand Down
4 changes: 2 additions & 2 deletions Model/Operator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -43,7 +43,7 @@
*
* Represent an operator or a function (in prefixed notation).
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Operator implements Visitor\Element
Expand Down
4 changes: 2 additions & 2 deletions Ruler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -46,7 +46,7 @@
*
* Ruler helpers.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Ruler
Expand Down
4 changes: 2 additions & 2 deletions Test/Integration/Documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Test suite of the examples in the documentation.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Documentation extends Test\Integration\Suite
Expand Down
4 changes: 2 additions & 2 deletions Test/Integration/Model/Operator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Test suite of the operator object of the model.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Operator extends Test\Integration\Suite
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -45,7 +45,7 @@
*
* Test suite of the context.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Context extends Test\Unit\Suite
Expand Down
7 changes: 4 additions & 3 deletions Test/Unit/DynamicCallable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -45,15 +45,16 @@
*
* Test suite of the dynamic callable.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class DynamicCallable extends Test\Unit\Suite
{
public function case_is_a_xcallable()
{
$this
->when($result = new SUT(function () {}))
->when($result = new SUT(function () {
}))
->then
->object($result)
->isInstanceOf(Consistency\Xcallable::class);
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Exception/Asserter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -45,7 +45,7 @@
*
* Test suite of the asserter exception.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Asserter extends Test\Unit\Suite
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -45,7 +45,7 @@
*
* Test suite of the main exception class.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Exception extends Test\Unit\Suite
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Exception/Interpreter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -45,7 +45,7 @@
*
* Test suite of the asserter exception.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Interpreter extends Test\Unit\Suite
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* New BSD License
*
* Copyright © 2007-2016, Hoa community. All rights reserved.
* Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -44,7 +44,7 @@
*
* Test suite of detected issues.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Issue extends Test\Unit\Suite
Expand Down
Loading

0 comments on commit 4ca678a

Please sign in to comment.