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

Commit

Permalink
Quality: Happy new year!
Browse files Browse the repository at this point in the history
  • Loading branch information
vonglasow committed Jan 10, 2017
1 parent 079d9b8 commit cc0a1bf
Show file tree
Hide file tree
Showing 36 changed files with 74 additions and 85 deletions.
4 changes: 2 additions & 2 deletions Bin/Termcap.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 @@
*
* Get terminal capabilities.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Termcap extends Console\Dispatcher\Kit
Expand Down
4 changes: 2 additions & 2 deletions Chrome/Editor.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 @@
*
* Start an editor.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Editor
Expand Down
4 changes: 2 additions & 2 deletions Chrome/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 @@ -43,7 +43,7 @@
*
* Extending the \Hoa\Console\Exception class.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Exception extends Console\Exception
Expand Down
4 changes: 2 additions & 2 deletions Chrome/Pager.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 @@
* ob_start('Hoa\Console\Chrome\Pager::less');
* echo file_get_contents(__FILE__);
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Pager
Expand Down
6 changes: 3 additions & 3 deletions Chrome/Text.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 @@
*
* This class builts the text layout.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Text
Expand Down Expand Up @@ -306,7 +306,7 @@ public static function align(
case self::ALIGN_CENTER:
foreach (explode("\n", self::wordwrap($text, $width)) as $key => $value) {
$out .= str_repeat(' ', ceil(($width - strlen($value)) / 2)) .
$value . "\n";
$value . "\n";
}

break;
Expand Down
4 changes: 2 additions & 2 deletions Console.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 set of utils and helpers about the console.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Console
Expand Down
4 changes: 2 additions & 2 deletions Cursor.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 @@
*
* Allow to manipulate the cursor.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Cursor
Expand Down
5 changes: 2 additions & 3 deletions Dispatcher/Kit.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 @@
*
* A structure, given to action, that holds some important data.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Kit extends Dispatcher\Kit
Expand Down Expand Up @@ -80,7 +80,6 @@ class Kit extends Dispatcher\Kit
* @param \Hoa\Router $router The router.
* @param \Hoa\Dispatcher $dispatcher The dispatcher.
* @param \Hoa\View\Viewable $view The view.
* @return void
*/
public function __construct(
Router $router,
Expand Down
4 changes: 2 additions & 2 deletions 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 @@ -43,7 +43,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
5 changes: 2 additions & 3 deletions GetOption.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 @@ -47,7 +47,7 @@
* And, of course, it proposes the getOption method, that allow user to loop
* easily the command options/arguments.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class GetOption
Expand Down Expand Up @@ -130,7 +130,6 @@ class GetOption
*
* @param array $options The option definition.
* @param \Hoa\Console\Parser $parser The parser.
* @return void
* @throws \Hoa\Console\Exception
*/
public function __construct(array $options, Parser $parser)
Expand Down
5 changes: 2 additions & 3 deletions Input.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 @@
* going to be `php://stdin` but it can be `/dev/tty` if the former has been
* closed.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Input implements Stream\IStream\In
Expand All @@ -64,7 +64,6 @@ class Input implements Stream\IStream\In
* Wraps an `Hoa\Stream\IStream\In` stream.
*
* @param \Hoa\Stream\IStream\In $input Input.
* @return void
*/
public function __construct(Stream\IStream\In $input = null)
{
Expand Down
5 changes: 2 additions & 3 deletions Mouse.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 @@
*
* Allow to listen the mouse.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Mouse implements Event\Listenable
Expand Down Expand Up @@ -112,7 +112,6 @@ class Mouse implements Event\Listenable
/**
* Constructor.
*
* @return void
*/
private function __construct()
{
Expand Down
6 changes: 3 additions & 3 deletions Output.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 @@
* This class represents the output of a program. Most of the time, this is
* going to be STDOUT.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Output implements Stream\IStream\Out
Expand Down Expand Up @@ -261,4 +261,4 @@ public function isMultiplexerConsidered()
{
return $this->_considerMultiplexer;
}
}
}
4 changes: 2 additions & 2 deletions Parser.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 @@
* See the parse() method to get more informations about command-line
* vocabulary, patterns, limitations, etc.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Parser
Expand Down
5 changes: 2 additions & 3 deletions Processus.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 @@
*
* Manipulate a processus as a stream.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Processus
Expand Down Expand Up @@ -342,7 +342,6 @@ class Processus
* @param string $cwd Current working directory.
* @param array $environment Environment.
* @param int $timeout Timeout.
* @return void
* @throws \Hoa\Console\Exception
*/
public function __construct(
Expand Down
5 changes: 2 additions & 3 deletions Readline/Autocompleter/Aggregate.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 @@
*
* Aggregate several autocompleters.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Aggregate implements Autocompleter
Expand All @@ -59,7 +59,6 @@ class Aggregate implements Autocompleter
* Constructor.
*
* @param array $autocompleters Auto-completers.
* @return void
*/
public function __construct(array $autocompleters)
{
Expand Down
4 changes: 2 additions & 2 deletions Readline/Autocompleter/Autocompleter.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 @@
*
* Interface for all auto-completers.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
interface Autocompleter
Expand Down
5 changes: 2 additions & 3 deletions Readline/Autocompleter/Path.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 @@
*
* Path autocompleter.
*
* @copyright Copyright © 2007-2016 Hoa community
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Path implements Autocompleter
Expand Down Expand Up @@ -76,7 +76,6 @@ class Path implements Autocompleter
* @param \Closure $iteratorFactory Iterator factory (please, see
* the self::setIteratorFactory
* method).
* @return void
*/
public function __construct(
$root = null,
Expand Down
Loading

0 comments on commit cc0a1bf

Please sign in to comment.