Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into feature/console
Browse files Browse the repository at this point in the history
Conflicts:
	library/Zend/Mvc/Service/ModuleManagerFactory.php
	library/Zend/Mvc/View/Http/ViewManager.php
	tests/Zend/Mvc/ApplicationTest.php
  • Loading branch information
Thinkscape committed Jul 22, 2012
8 parents a97e69e + 700cf3a + 1582c31 + 016f50c + 9852497 + 073b126 + bd99c5c + 56451bd commit 920eae1
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Storage/Adapter/AdapterOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,6 @@ class AdapterOptions extends AbstractOptions
*/
protected $writable = true;

/**
* Cast to array
*
* @return array
*/
public function toArray()
{
$array = array();
$transform = function($letters) {
$letter = array_shift($letters);
return '_' . strtolower($letter);
};
foreach ($this as $key => $value) {
$normalizedKey = preg_replace_callback('/([A-Z])/', $transform, $key);
$array[$normalizedKey] = $value;
}
return $array;
}

/**
* Adapter using this instance
*
Expand Down

0 comments on commit 920eae1

Please sign in to comment.