@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @var string |
| 25 | 25 | */ |
| 26 | - protected $options="Jobs/Options"; |
|
| 26 | + protected $options = "Jobs/Options"; |
|
| 27 | 27 | |
| 28 | 28 | protected function configureForm($form, AbstractOptions $options) |
| 29 | 29 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function getHydrator() |
| 25 | 25 | { |
| 26 | 26 | if (!$this->hydrator) { |
| 27 | - $hydrator = new EntityHydrator(); |
|
| 27 | + $hydrator = new EntityHydrator(); |
|
| 28 | 28 | $this->setHydrator($hydrator); |
| 29 | 29 | } |
| 30 | 30 | return $this->hydrator; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | if ($document instanceof UserInterface) { |
| 42 | 42 | $repository = $args->getDocumentManager()->getRepository('Organizations\Entity\Organization'); |
| 43 | - $userId = $document->getId(); |
|
| 43 | + $userId = $document->getId(); |
|
| 44 | 44 | $reference = new OrganizationReference($userId, $repository); |
| 45 | 45 | |
| 46 | 46 | $document->setOrganization($reference); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @var String |
| 26 | 26 | */ |
| 27 | - protected $repositoryName="Organizations/Organization"; |
|
| 27 | + protected $repositoryName = "Organizations/Organization"; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Sortable fields |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | * @see \Core\Repository\Filter\AbstractPaginationQuery::createQuery() |
| 52 | 52 | * @param $params |
| 53 | 53 | * @param \Doctrine\ODM\MongoDB\Query\Builder $queryBuilder |
| 54 | - * @return mixed |
|
| 54 | + * @return \Doctrine\ODM\MongoDB\Query\Builder |
|
| 55 | 55 | */ |
| 56 | 56 | public function createQuery($params, $queryBuilder) |
| 57 | 57 | { |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | $fieldset->setLabel(ucfirst($label)); |
| 103 | 103 | } |
| 104 | 104 | $fieldset->setName($name) |
| 105 | - ->setObject($child); |
|
| 105 | + ->setObject($child); |
|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | $this->add($fieldset); |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | */ |
| 78 | 78 | if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) { |
| 79 | 79 | $queryBuilder->field('user')->equals($this->user->id); |
| 80 | - }else{ |
|
| 80 | + } else{ |
|
| 81 | 81 | $queryBuilder->field('permissions.view')->equals($this->user->id); |
| 82 | 82 | } |
| 83 | 83 | if ( |
@@ -75,10 +75,10 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName; |
| 77 | 77 | |
| 78 | - if (is_array($inputLabel)){ |
|
| 79 | - $priority = isset($inputLabel[1])?$inputLabel[1]:0; |
|
| 78 | + if (is_array($inputLabel)) { |
|
| 79 | + $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0; |
|
| 80 | 80 | $inputLabel = $inputLabel[0]; |
| 81 | - }else{ |
|
| 81 | + } else { |
|
| 82 | 82 | $priority = 0; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -90,19 +90,19 @@ discard block |
||
| 90 | 90 | ), |
| 91 | 91 | ); |
| 92 | 92 | if (is_bool($value)) { |
| 93 | - $input['type']= 'Checkbox'; |
|
| 93 | + $input['type'] = 'Checkbox'; |
|
| 94 | 94 | $input['attributes']['checked'] = $value; |
| 95 | 95 | } else { |
| 96 | 96 | $input['attributes']['value'] = $value; |
| 97 | 97 | } |
| 98 | - $this->add($input,['priority'=>$priority]); |
|
| 98 | + $this->add($input, ['priority'=>$priority]); |
|
| 99 | 99 | |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | foreach ($children as $name => $child) { |
| 103 | 103 | $objectClass = ltrim(get_class($settings), '\\'); |
| 104 | 104 | $moduleName = substr($objectClass, 0, strpos($objectClass, '\\')); |
| 105 | - $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset'; |
|
| 105 | + $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset'; |
|
| 106 | 106 | |
| 107 | 107 | if ($this->forms->has($fieldsetName)) { |
| 108 | 108 | $fieldset = $this->forms->get($fieldsetName); |
@@ -29,7 +29,6 @@ |
||
| 29 | 29 | * Attach to an event manager |
| 30 | 30 | * |
| 31 | 31 | * @param EventManagerInterface $events |
| 32 | - * @param integer $priority |
|
| 33 | 32 | */ |
| 34 | 33 | public function attach(EventManagerInterface $events) |
| 35 | 34 | { |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } |
| 78 | 78 | $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver'); |
| 79 | 79 | |
| 80 | - $template = $viewModel->getTemplate() . '.ajax'; |
|
| 80 | + $template = $viewModel->getTemplate().'.ajax'; |
|
| 81 | 81 | if ($resolver->resolve($template)) { |
| 82 | 82 | $viewModel->setTemplate($template); |
| 83 | 83 | } else { |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | class OrganizationName extends AbstractRepository |
| 16 | 16 | { |
| 17 | + /** |
|
| 18 | + * @param string $name |
|
| 19 | + */ |
|
| 17 | 20 | public function findbyName($name, $create = true) |
| 18 | 21 | { |
| 19 | 22 | $entity = $this->findOneBy(array('name' => $name)); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $name = "\\$namespace\\Entity\\$entityName"; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - $repository = $this->dm->getRepository($name); |
|
| 41 | + $repository = $this->dm->getRepository($name); |
|
| 42 | 42 | return $repository; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -30,11 +30,11 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | class Module |
| 32 | 32 | { |
| 33 | - /** |
|
| 34 | - * Loads module specific configuration. |
|
| 35 | - * |
|
| 36 | - * @return array |
|
| 37 | - */ |
|
| 33 | + /** |
|
| 34 | + * Loads module specific configuration. |
|
| 35 | + * |
|
| 36 | + * @return array |
|
| 37 | + */ |
|
| 38 | 38 | public function getConfig() |
| 39 | 39 | { |
| 40 | 40 | return ModuleConfigLoader::load(__DIR__ . '/config'); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function getConfig() |
| 39 | 39 | { |
| 40 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
| 40 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | return array( |
| 51 | 51 | 'Zend\Loader\StandardAutoloader' => array( |
| 52 | 52 | 'namespaces' => array( |
| 53 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
| 53 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
| 54 | 54 | ), |
| 55 | 55 | ), |
| 56 | 56 | ); |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | // 'driver' => 'odm_default', |
| 27 | 27 | // |
| 28 | 28 | // 'generate_proxies' => true, |
| 29 | - 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
| 29 | + 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
| 30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
| 31 | 31 | // |
| 32 | 32 | // 'generate_hydrators' => true, |
| 33 | - 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
| 33 | + 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
| 34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
| 35 | 35 | // |
| 36 | 36 | // 'default_db' => '', |