Skip to content

Commit

Permalink
Documentation for Cache decorator (Example DI).
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Egorov committed May 27, 2019
1 parent 1b8fc53 commit 386a650
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/entity/Address.php
Expand Up @@ -74,8 +74,7 @@ public function getComponents(): array

public function getKindName($kind){
if(isset($this->components[$kind])){
$component=ArrayHelper::getValue($this->components,$kind.'.0');

$component=$this->components[$kind][count($this->components[$kind])-1];
return $component->getName();
}

Expand Down
2 changes: 0 additions & 2 deletions tests/unit/GeocodeTest.php
Expand Up @@ -36,8 +36,6 @@ public function testGet()
$geo->get('Новокузнецк');
});



// $geo->proxyConf=[
// 'url'=>'195.123.228.201',
// 'port'=>'3128',
Expand Down

0 comments on commit 386a650

Please sign in to comment.