Completed
Push — develop ( 7cacd3...b715b6 )
by Carsten
22:04 queued 14:12
created
module/Applications/src/Applications/Controller/ManageController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		$this->appOptions       = $appOptions;
72 72
 		$this->appEvents        = $appEvents;
73 73
 		$this->translator       = $translator;
74
-		$this->container         = $container;
74
+		$this->container = $container;
75 75
 	}
76 76
 	
77 77
 	/**
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
 
171 171
         
172
-        $format=$this->params()->fromQuery('format');
172
+        $format = $this->params()->fromQuery('format');
173 173
 
174 174
         if ($application->isDraft()) {
175 175
             $list = false;
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                    && ($network = $this->params()->fromQuery('network'))
298 298
                    && ($data    = $this->params()->fromPost('data'))
299 299
         ) {
300
-            $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network;
300
+            $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network;
301 301
             $profile      = new $profileClass();
302 302
             $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY));
303 303
         } else {
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         
367 367
         $event->setIsPostRequest($request->isPost());
368 368
         $event->setPostData($request->getPost());
369
-        $events->trigger($event->getName(),$event);
369
+        $events->trigger($event->getName(), $event);
370 370
 
371 371
         $params = $event->getFormData();
372 372
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
         
416 416
         $this->acl($application, 'forward');
417 417
         
418
-        $translator   = $this->translator;
418
+        $translator = $this->translator;
419 419
          
420 420
         if (!$emailAddress) {
421 421
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
     public function deleteAction()
456 456
     {
457 457
         $id          = $this->params('id');
458
-        $repositories= $this->repositories;
458
+        $repositories = $this->repositories;
459 459
         $repository  = $repositories->get('Applications/Application');
460 460
         $application = $repository->find($id);
461 461
         
@@ -465,8 +465,8 @@  discard block
 block discarded – undo
465 465
 
466 466
         $this->acl($application, 'delete');
467 467
 
468
-        $events   = $this->appEvents;
469
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]);
468
+        $events = $this->appEvents;
469
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]);
470 470
         
471 471
         $repositories->remove($application);
472 472
         
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/CommentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         return $viewModel;
101 101
     }
102 102
 	
103
-	public function setContainer( ContainerInterface $container )
103
+	public function setContainer(ContainerInterface $container)
104 104
 	{
105 105
 		$this->repositories = $container->get('repositories');
106 106
 		$this->formManager = $container->get('forms');
Please login to merge, or discard this patch.
module/Applications/src/Applications/Mail/Forward.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 	 *
137 137
 	 * @return Forward
138 138
 	 */
139
-    static public function factory(ContainerInterface $container,$requestedName,array $options=[])
139
+    static public function factory(ContainerInterface $container, $requestedName, array $options = [])
140 140
     {
141 141
         $ob = new self($options);
142 142
         $ob->setContainer($container);
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/AbstractRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
         return $this;
123 123
     }
124 124
 
125
-    public function remove($entity,$flush=false)
125
+    public function remove($entity, $flush = false)
126 126
     {
127 127
         $this->checkEntityType($entity);
128 128
         $this->dm->remove($entity);
129
-		if($flush){
129
+		if ($flush) {
130 130
 			$this->dm->flush($entity);
131 131
 		}
132 132
         return $this;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
     protected function checkEntityType($entity)
136 136
     {
137
-        if ( !($entity instanceOf $this->entityPrototype) ) {
137
+        if (!($entity instanceOf $this->entityPrototype)) {
138 138
             throw new \InvalidArgumentException(sprintf(
139 139
                                                     'Entity must be of type %s but recieved %s instead',
140 140
                                                     get_class($this->entityPrototype),
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/DoctrineMongoODM/DocumentManagerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  */
23 23
 class DocumentManagerFactory implements FactoryInterface
24 24
 {
25
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
25
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
26 26
 		$container->setAllowOverride(true);
27 27
 		$container->setFactory('doctrine.configuration.odm_default', new ConfigurationFactory('odm_default'));
28 28
 		$container->setAllowOverride(false);
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/RepositoryServiceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 class RepositoryServiceFactory implements FactoryInterface
22 22
 {
23 23
 	
24
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
24
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
25 25
 		$dm      = $container->get('Core/DocumentManager');
26 26
 		$service = new RepositoryService($dm);
27 27
 		
Please login to merge, or discard this patch.
module/Core/src/Core/Filter/XssFilterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 *
30 30
 	 * @return XssFilter
31 31
 	 */
32
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
32
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
33 33
 	{
34 34
 		$htmlPurifier = new Filter\HTMLPurifierFilter();
35 35
 		$htmlPurifier->setConfig(array("Cache.SerializerPath" => "cache/HtmlPurifier"));
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Tree/AbstractLeafs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 {
29 29
     use EntityTrait, ClonePropertiesTrait;
30 30
 
31
-    private $cloneProperties = [ '!items' ];
31
+    private $cloneProperties = ['!items'];
32 32
 
33 33
     /**
34 34
      * The leafs.
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $values = [];
87 87
         /* @var NodeInterface $item */
88 88
         foreach ($this->getItems() as $item) {
89
-        	if(!is_null($item)){
89
+        	if (!is_null($item)) {
90 90
 		        $values[] = $item->getValueWithParents();
91 91
 	        }
92 92
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 $parent = $nextParent;
116 116
             }
117 117
             $nameParts[] = $item->getName();
118
-            $items[]     = join(' | ' , $nameParts);
118
+            $items[]     = join(' | ', $nameParts);
119 119
 
120 120
         }
121 121
 
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/EntityHydratorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
     protected $hydrator;
23 23
 	
24
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
24
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
25 25
 	{
26 26
 		$this->hydrator = $this->getEntityHydrator();
27 27
 		$this->prepareHydrator();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function createService(ServiceLocatorInterface $serviceLocator)
39 39
     {
40
-		return $this($serviceLocator,EntityHydrator::class);
40
+		return $this($serviceLocator, EntityHydrator::class);
41 41
     }
42 42
 
43 43
     protected function prepareHydrator()
Please login to merge, or discard this patch.