Refactoring

This commit is contained in:
gamonoid
2017-09-03 20:39:22 +02:00
parent af40881847
commit a7274d3cfd
5075 changed files with 238202 additions and 16291 deletions
@@ -0,0 +1,38 @@
<?php
class TestedRoboFile extends \Robo\Tasks
{
public function generateUserAvatar()
{
}
public function hello($name = null, $opts = ['yell' => false, 'to' => null]) {
}
/**
* Calculate the fibonacci sequence between two numbers.
*
* Graphic output will look like
* +----+---+-------------+
* | | | |
* | |-+-| |
* |----+-+-+ |
* | | |
* | | |
* | | |
* +--------+-------------+
*
* @param int $start Number to start from
* @param int $steps Number of steps to perform
* @param array $opts
* @option $graphic Display the sequence graphically using cube
* representation
*/
public function fibonacci($start, $steps, $opts = ['graphic' => false])
{
}
/** Compact doc comment */
public function compact()
{
}
}
@@ -0,0 +1,61 @@
<?php
use Robo\Result;
use Robo\Task\BaseTask;
/**
* A test task file. Used for testig documentation generation.
*
* ``` php
* <?php
* $this->taskTestedRoboTask([
* 'web/assets/screen.css',
* 'web/assets/print.css',
* 'web/assets/theme.css'
* ])
* ->to('web/assets/style.css')
* ->run()
* ?>
* ```
*/
class TestedRoboTask extends BaseTask
{
/**
* @var array|Iterator files
*/
protected $files;
/**
* @var string dst
*/
protected $dst;
/**
* Constructor. This should not be documented
*
* @param array|Iterator $files
*/
public function __construct()
{
}
/**
* Set the destination file
*
* @param string $dst
*
* @return Concat The current instance
*/
public function to($dst)
{
return $this;
}
/**
* {@inheritdoc}
*/
public function run()
{
return Result::success($this);
}
}
@@ -0,0 +1 @@
A
@@ -0,0 +1 @@
B
@@ -0,0 +1 @@
HELLOROBO
@@ -0,0 +1 @@
some existing file
@@ -0,0 +1 @@
Just a file
@@ -0,0 +1 @@
some_destination existing file
@@ -0,0 +1 @@
/* Replace this file with actual dump of your database */
@@ -0,0 +1,8 @@
<?php
$message = $argv[1];
$iterations = $argv[2];
for ($i=0; $i < $iterations; ++$i) {
print "$message\n";
sleep(1);
}
@@ -0,0 +1,35 @@
/*
* Sample css file from https://www.w3.org/Style/Examples/011/firstcss.en.html
*/
body {
padding-left: 11em;
font-family: Georgia, "Times New Roman",
Times, serif;
color: purple;
background-color: #d8da3d }
ul.navbar {
list-style-type: none;
padding: 0;
margin: 0;
position: absolute;
top: 2em;
left: 1em;
width: 9em }
h1 {
font-family: Helvetica, Geneva, Arial,
SunSans-Regular, sans-serif }
ul.navbar li {
background: white;
margin: 0.5em 0;
padding: 0.3em;
border-right: 1em solid black }
ul.navbar a {
text-decoration: none }
a:link {
color: blue }
a:visited {
color: purple }
address {
margin-top: 1em;
padding-top: 1em;
border-top: thin dotted }