Completed
Push — master ( cf161c...bee2ac )
by Federico
02:31
created
dist/jate/modules/Module/Module.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,26 +17,26 @@
 block discarded – undo
17 17
       $this->__queryConstruct();
18 18
       $this->__fileConstruct();
19 19
     }
20
-    public function addModules( $_modules ) {
21
-      if(!is_array($_modules))
20
+    public function addModules($_modules) {
21
+      if (!is_array($_modules))
22 22
         throw new JException("Parameter must be an array.");
23 23
       foreach ($_modules as $value)
24 24
         $this->addModule($value);
25 25
     }
26
-    public function addModule( $_module ) {
27
-      if(!is_object($_module))
26
+    public function addModule($_module) {
27
+      if (!is_object($_module))
28 28
         throw new JException("Parameter must be a object.");
29
-      if(! is_subclass_of ($_module, "Module"))
29
+      if (!is_subclass_of($_module, "Module"))
30 30
         throw new JException("Parameter must be a object inherited from Module object.");
31 31
       $this->modules[$_module->name] = $_module;
32
-      if($this->currentConnection)
32
+      if ($this->currentConnection)
33 33
         $this->modules[$_module->name]->addConnectionMan($this->currentConnection);
34 34
     }
35
-    public function addConnectionMan( $_connection, $_name = "default") {
35
+    public function addConnectionMan($_connection, $_name = "default") {
36 36
       try {
37 37
         $this->__addConnectionMan($_connection, $_name);
38 38
         foreach ($this->modules as &$module)
39
-          if(isset($this->currentConnection))
39
+          if (isset($this->currentConnection))
40 40
             $module->addConnectionMan($this->currentConnection, $_name);
41 41
       } catch (Exception $e) {
42 42
         throw new JException($e->getMessage(), 1);
Please login to merge, or discard this patch.