Skip to content

Commit

Permalink
php-cs-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Nov 19, 2015
1 parent 871011b commit b186d89
Show file tree
Hide file tree
Showing 53 changed files with 61 additions and 60 deletions.
4 changes: 3 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$header = <<<EOF
Task runner, code generator and build tool for easier continuos integration
@link https://hidev.me/
@link https://github.com/hiqdev/hidev
@package hidev
@license BSD-3-Clause
@copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand All @@ -23,7 +23,9 @@ return Symfony\CS\Config\Config::create()
'-align_equals', /// Align equals symbols in consecutive lines.
'-unalign_equals', /// Unalign equals symbols in consecutive lines.
'-blankline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline.
'-phpdoc_no_empty_return', /// @return void and @return null annotations should be omitted from phpdocs.
'-empty_return', /// A return statement wishing to return nothing should be simply "return".
'-return', /// An empty line feed should precede a return statement.
'header_comment', /// Add, replace or remove header comment.
'concat_with_spaces', /// Concatenation should be used with at least one whitespace around.
'ereg_to_preg', /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior.
Expand Down
2 changes: 1 addition & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/base/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/base/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/base/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/base/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/base/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/base/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/AliasesGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/BaseGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/ChangelogGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/CommitsGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/ComposerGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/ComposerJsonGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/ConfigGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/DefaultGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/FileGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/GenerateGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/GitGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/GitignoreGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/InitGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
5 changes: 2 additions & 3 deletions src/goals/LicenseGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down Expand Up @@ -32,7 +32,6 @@ public function getUrl()
{
return $this->license === 'proprietary'
? 'https://en.wikipedia.org/wiki/Proprietary_software'
: 'http://choosealicense.com/licenses/' . Helper::camel2id($this->license)
;
: 'http://choosealicense.com/licenses/' . Helper::camel2id($this->license);
}
}
2 changes: 1 addition & 1 deletion src/goals/PackageGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/ReadmeGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/SvnignoreGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/TemplateGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/UpdateGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/VcsGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/VcsignoreGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/goals/VendorGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/BaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/ChangelogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/CommitsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/GitignoreHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/JsonHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/TemplateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/TypeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/YamlHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://hidev.me/
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
Expand Down Expand Up @@ -80,7 +80,7 @@ public static function titleize($str, $ucAll = true)
}

/**
* Recursively removes duplicate values from non-associative arrays
* Recursively removes duplicate values from non-associative arrays.
*/
public static function uniqueConfig($array)
{
Expand Down
8 changes: 4 additions & 4 deletions src/views/README.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?= $config->readme->renderH1($config->package->headline ?: $config->package->title) ?>
<?php if ($config->package->headline) { ?>
<?php if ($config->package->headline) : ?>
<?= $config->readme->renderBold($config->package->title) ?>
<?php } ?>
<?php endif ?>
<?= $config->readme->renderBadges() ?>
<?php if ($config->package->description) { ?>
<?php if ($config->package->description) : ?>
<?= $config->readme->renderText($config->package->description) ?>
<?php } ?>
<?php endif ?>
<?= $config->readme->renderSections() ?>
Loading

0 comments on commit b186d89

Please sign in to comment.