Skip to content

Commit

Permalink
Shorten variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 8, 2017
1 parent 89250d1 commit f35fd19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/View/Form/ContextFactory.php
Expand Up @@ -31,7 +31,7 @@ class ContextFactory
*
* @var array
*/
protected $contextProviders = [];
protected $providers = [];

/**
* Constructor.
Expand Down Expand Up @@ -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;
}

/**
Expand All @@ -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) {
Expand Down

0 comments on commit f35fd19

Please sign in to comment.