Skip to content
Permalink
Browse files

Shorten variable name.

  • Loading branch information...
ADmad committed Aug 8, 2017
1 parent 89250d1 commit f35fd194e2789c7873783587d4c6bd9b92ded067
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/View/Form/ContextFactory.php
@@ -31,7 +31,7 @@ class ContextFactory
*
* @var array
*/
protected $contextProviders = [];
protected $providers = [];
/**
* Constructor.
@@ -111,8 +111,8 @@ public static function createWithDefaults(array $providers = [])
*/
public function addProvider($type, callable $check)
{
$this->contextProviders = [$type => ['type' => $type, 'callable' => $check]]
+ $this->contextProviders;
$this->providers = [$type => ['type' => $type, 'callable' => $check]]
+ $this->providers;
}
/**
@@ -130,7 +130,7 @@ public function get(ServerRequest $request, array $data = [])
{
$data += ['entity' => null];
foreach ($this->contextProviders as $provider) {
foreach ($this->providers as $provider) {
$check = $provider['callable'];
$context = $check($request, $data);
if ($context) {

0 comments on commit f35fd19

Please sign in to comment.
You can’t perform that action at this time.