Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jan 14, 2017
2 parents 37891e5 + ba3370e commit 2126222
Show file tree
Hide file tree
Showing 40 changed files with 1,982 additions and 3,731 deletions.
28 changes: 28 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
build:
environment:
php:
version: 5.6
tests:
override:
-
command: 'phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
filter:
excluded_paths: [tests/*, docs/*]
checks:
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
19 changes: 15 additions & 4 deletions demo/math.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,25 @@ protected function configure()
$this->instance('lcmClass', LCMMath::class, ['@math.gcdClass']);
});

$this->addBuildCallback('gcd', function ()
$this->value('gcd', function ()
{
return $this->call('math.gcdClass.call', [$this->a(), $this->b()]);
return $this->call('math.gcdClass.call', ['@a', $this->b()]);
});

$this->addBuildCallback('lcm', function ()
$this->value('lcm', function ()
{
return $this->call('math.lcmClass.call', [$this->a(), $this->b()]);
return $this->call('math.lcmClass.call', [$this->a(), '@b']);
});

$this->callback('substr', 'mb_substr');
$this->callback('length', function ($object)
{
if (is_array($object))
{
return count($object);
}

return mb_strlen($object);
});
}
}
Expand Down
22 changes: 4 additions & 18 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ <h3>Namespaces</h3>

</li>
</ul></li>
<li>
<a href="namespace-PHP.html">
PHP </a>

</li>
</ul>
</div>

Expand All @@ -45,24 +40,15 @@ <h3>Namespaces</h3>
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Deimos.DI.Container.html">Deimos\DI\Container</a></li>
<li><a href="class-Deimos.DI.Argument.html">Deimos\DI\Argument</a></li>
<li><a href="class-Deimos.DI.ContainerEmpty.html">Deimos\DI\ContainerEmpty</a></li>
<li><a href="class-Deimos.DI.DI.html">Deimos\DI\DI</a></li>
<li><a href="class-Deimos.DI.Group.html">Deimos\DI\Group</a></li>
<li><a href="class-Deimos.DI.Reflection.html">Deimos\DI\Reflection</a></li>
<li><a href="class-Deimos.DI.Instance.html">Deimos\DI\Instance</a></li>
</ul>

<h3>Interfaces</h3>
<ul>
<li><a href="class-Throwable.html">Throwable</a></li>
</ul>


<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-InvalidArgumentException.html">InvalidArgumentException</a></li>
<li><a href="class-LogicException.html">LogicException</a></li>
</ul>


</div>
Expand Down Expand Up @@ -120,7 +106,7 @@ <h1>Page not found</h1>
</div>
</div>
</div>
<script src="resources/combined.js?646c7375b6a1772b9bf9fd52bc31786b7948c565"></script>
<script src="resources/combined.js?5fc83f31f9aa922fbb57ac349cc156ec8d822ca0"></script>
<script src="elementlist.js"></script>
</body>
</html>
20 changes: 3 additions & 17 deletions docs/annotation-group-deprecated.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ <h3>Namespaces</h3>

</li>
</ul></li>
<li>
<a href="namespace-PHP.html">
PHP </a>

</li>
</ul>
</div>

Expand All @@ -44,24 +39,15 @@ <h3>Namespaces</h3>
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Deimos.DI.Container.html">Deimos\DI\Container</a></li>
<li><a href="class-Deimos.DI.Argument.html">Deimos\DI\Argument</a></li>
<li><a href="class-Deimos.DI.ContainerEmpty.html">Deimos\DI\ContainerEmpty</a></li>
<li><a href="class-Deimos.DI.DI.html">Deimos\DI\DI</a></li>
<li><a href="class-Deimos.DI.Group.html">Deimos\DI\Group</a></li>
<li><a href="class-Deimos.DI.Reflection.html">Deimos\DI\Reflection</a></li>
<li><a href="class-Deimos.DI.Instance.html">Deimos\DI\Instance</a></li>
</ul>

<h3>Interfaces</h3>
<ul>
<li><a href="class-Throwable.html">Throwable</a></li>
</ul>


<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-InvalidArgumentException.html">InvalidArgumentException</a></li>
<li><a href="class-LogicException.html">LogicException</a></li>
</ul>


</div>
Expand Down
20 changes: 3 additions & 17 deletions docs/annotation-group-todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ <h3>Namespaces</h3>

</li>
</ul></li>
<li>
<a href="namespace-PHP.html">
PHP </a>

</li>
</ul>
</div>

Expand All @@ -44,24 +39,15 @@ <h3>Namespaces</h3>
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Deimos.DI.Container.html">Deimos\DI\Container</a></li>
<li><a href="class-Deimos.DI.Argument.html">Deimos\DI\Argument</a></li>
<li><a href="class-Deimos.DI.ContainerEmpty.html">Deimos\DI\ContainerEmpty</a></li>
<li><a href="class-Deimos.DI.DI.html">Deimos\DI\DI</a></li>
<li><a href="class-Deimos.DI.Group.html">Deimos\DI\Group</a></li>
<li><a href="class-Deimos.DI.Reflection.html">Deimos\DI\Reflection</a></li>
<li><a href="class-Deimos.DI.Instance.html">Deimos\DI\Instance</a></li>
</ul>

<h3>Interfaces</h3>
<ul>
<li><a href="class-Throwable.html">Throwable</a></li>
</ul>


<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-InvalidArgumentException.html">InvalidArgumentException</a></li>
<li><a href="class-LogicException.html">LogicException</a></li>
</ul>


</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">

<title>Class Deimos\DI\Reflection</title>
<title>Class Deimos\DI\Argument</title>

<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">

Expand All @@ -30,11 +30,6 @@ <h3>Namespaces</h3>

</li>
</ul></li>
<li>
<a href="namespace-PHP.html">
PHP </a>

</li>
</ul>
</div>

Expand All @@ -44,10 +39,11 @@ <h3>Namespaces</h3>
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Deimos.DI.Container.html">Container</a></li>
<li class="active"><a href="class-Deimos.DI.Argument.html">Argument</a></li>
<li><a href="class-Deimos.DI.ContainerEmpty.html">ContainerEmpty</a></li>
<li><a href="class-Deimos.DI.DI.html">DI</a></li>
<li><a href="class-Deimos.DI.Group.html">Group</a></li>
<li class="active"><a href="class-Deimos.DI.Reflection.html">Reflection</a></li>
<li><a href="class-Deimos.DI.Instance.html">Instance</a></li>
</ul>


Expand Down Expand Up @@ -99,7 +95,7 @@ <h3>Classes</h3>
</div>

<div id="content" class="class">
<h1>Class Reflection</h1>
<h1>Class Argument</h1>



Expand All @@ -117,47 +113,77 @@ <h1>Class Reflection</h1>
<b>Namespace:</b> <a href="namespace-Deimos.html">Deimos</a>\<a href="namespace-Deimos.DI.html">DI</a><br>


<b>Located at</b> <a href="source-class-Deimos.DI.Reflection.html#5-21" title="Go to source code">DI/Reflection.php</a>
<b>Located at</b> <a href="source-class-Deimos.DI.Argument.html#5-52" title="Go to source code">DI/Argument.php</a>
<br>
</div>



<table class="summary methods" id="methods">
<caption>Methods summary</caption>
<tr data-order="classInit" id="_classInit">
<tr data-order="__construct" id="___construct">

<td class="attributes"><code>
public static
public

object


</code>
</td>

<td class="name"><div>
<a class="anchor" href="#_classInit">#</a>
<code><a href="source-class-Deimos.DI.Reflection.html#8-19" title="Go to source code">classInit</a>( <span> <var>$class</var></span>, <span> <var>$arguments</var></span> )</code>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-Deimos.DI.Argument.html#18-28" title="Go to source code">__construct</a>( <span><code><a href="class-Deimos.DI.DI.html">Deimos\DI\DI</a></code> <var>$container</var></span>, <span>array <var>$rows</var></span> )</code>

<div class="description short">

<p>Argument constructor.</p>
</div>

<div class="description detailed hidden">

<p>Argument constructor.</p>


<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$class</var></dt>
<dt><var>$container</var></dt>
<dd></dd>
<dt><var>$arguments</var></dt>
<dt><var>$rows</var></dt>
<dd></dd>
</dl></div>





</div>
</div></td>
</tr>
<tr data-order="get" id="_get">

<td class="attributes"><code>
public

array

</code>
</td>

<td class="name"><div>
<a class="anchor" href="#_get">#</a>
<code><a href="source-class-Deimos.DI.Argument.html#30-50" title="Go to source code">get</a>( )</code>

<div class="description short">

</div>

<div class="description detailed hidden">




<h4>Returns</h4>
<div class="list">
object
array
</div>


Expand All @@ -179,6 +205,59 @@ <h4>Returns</h4>



<table class="summary properties" id="properties">
<caption>Properties summary</caption>
<tr data-order="di" id="$di">
<td class="attributes"><code>
protected
<code><a href="class-Deimos.DI.DI.html">Deimos\DI\DI</a></code>
</code></td>

<td class="name">
<a href="source-class-Deimos.DI.Argument.html#8-11" title="Go to source code"><var>$di</var></a>

<div class="description short">

</div>

<div class="description detailed hidden">


</div>
</td>
<td class="value">
<div>
<a href="#$di" class="anchor">#</a>
<code></code>
</div>
</td>
</tr>
<tr data-order="rows" id="$rows">
<td class="attributes"><code>
protected
array
</code></td>

<td class="name">
<a href="source-class-Deimos.DI.Argument.html#13-16" title="Go to source code"><var>$rows</var></a>

<div class="description short">

</div>

<div class="description detailed hidden">


</div>
</td>
<td class="value">
<div>
<a href="#$rows" class="anchor">#</a>
<code></code>
</div>
</td>
</tr>
</table>



Expand Down
Loading

0 comments on commit 2126222

Please sign in to comment.