@@ -118,9 +118,9 @@ |
||
| 118 | 118 | $entity = $this->getTargetEntity(); |
| 119 | 119 | |
| 120 | 120 | $entity->setUser($value['user']) |
| 121 | - ->setName($value['name']) |
|
| 122 | - ->setType($value['type']) |
|
| 123 | - ->setFile($value['file']); |
|
| 121 | + ->setName($value['name']) |
|
| 122 | + ->setType($value['type']) |
|
| 123 | + ->setFile($value['file']); |
|
| 124 | 124 | |
| 125 | 125 | return $entity; |
| 126 | 126 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | // ensures garbage removal |
| 80 | 80 | register_shutdown_function( |
| 81 | - function ($filename) { |
|
| 81 | + function($filename) { |
|
| 82 | 82 | @unlink($filename); |
| 83 | 83 | }, |
| 84 | 84 | $tmp |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | { |
| 85 | 85 | /* @var $serviceLocator \Zend\Form\FormElementManager */ |
| 86 | 86 | $service = $serviceLocator->getServiceLocator(); |
| 87 | - $options=null; |
|
| 87 | + $options = null; |
|
| 88 | 88 | if ($this->options) { |
| 89 | 89 | $options = $service->get($this->options); |
| 90 | 90 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | $view = $e->getApplication()->getServiceManager()->get('ViewManager')->getView(); |
| 96 | 96 | $view->addRenderingStrategy(array($strategy, 'selectRenderer'), 10); |
| 97 | - $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
| 97 | + $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
| 98 | 98 | |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class StringListener implements ListenerAggregateInterface |
| 10 | 10 | { |
| 11 | - protected $listeners = array(); |
|
| 11 | + protected $listeners = array(); |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Attach to an event manager |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | if (!empty($capture)) { |
| 52 | 52 | if ($viewModel->isAppend()) { |
| 53 | 53 | $oldResult = $viewModel->{$capture}; |
| 54 | - $viewModel->setVariable($capture, $oldResult . $result); |
|
| 54 | + $viewModel->setVariable($capture, $oldResult.$result); |
|
| 55 | 55 | } else { |
| 56 | 56 | $viewModel->setVariable($capture, $result); |
| 57 | 57 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | |
| 61 | - $dm = $eventArgs->getDocumentManager(); |
|
| 61 | + $dm = $eventArgs->getDocumentManager(); |
|
| 62 | 62 | $uow = $dm->getUnitOfWork(); |
| 63 | 63 | $changeset = $uow->getDocumentChangeset($document); |
| 64 | 64 | $filter = $this->getKeywordsFilter(); |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | $document->preUpdate($prePersist); |
| 43 | 43 | |
| 44 | 44 | if (!$prePersist) { |
| 45 | - $dm = $eventArgs->getDocumentManager(); |
|
| 46 | - $uow = $dm->getUnitOfWork(); |
|
| 45 | + $dm = $eventArgs->getDocumentManager(); |
|
| 46 | + $uow = $dm->getUnitOfWork(); |
|
| 47 | 47 | $uow->recomputeSingleDocumentChangeSet($dm->getClassMetadata(get_class($document)), $document); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | foreach ($this->fileNames as $obj) { |
| 61 | 61 | if (is_string($obj)) { |
| 62 | 62 | if (array_key_exists($obj, $this->fileObjects)) { |
| 63 | - $erg[] = $this->fileObjects[$obj]; |
|
| 63 | + $erg[] = $this->fileObjects[$obj]; |
|
| 64 | 64 | } |
| 65 | 65 | } else { |
| 66 | 66 | $erg[] = $obj; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function __invoke($gender) |
| 24 | 24 | { |
| 25 | - $return=""; |
|
| 25 | + $return = ""; |
|
| 26 | 26 | switch ($gender) { |
| 27 | 27 | case "male": |
| 28 | 28 | $return = "Mr."; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function setName($name) |
| 35 | 35 | { |
| 36 | - $this->name=$name; |
|
| 36 | + $this->name = $name; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function setLevel($level) |
| 53 | 53 | { |
| 54 | - $this->level=$level; |
|
| 54 | + $this->level = $level; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |