Completed
Push — 3.2 ( 7b06ed...40a0aa )
by David
09:20
created
src/Mouf/Database/TDBM/Utils/TDBMDaoGenerator.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 		// Ok, let's return the list of all tables.
115 115
 		// These will be used by the calling script to create Mouf instances.
116 116
 		$root = simplexml_load_string("<tdbm></tdbm>");
117
-    	foreach ($tableList as $table) {
118
-    		$root->addChild("table", $table);
119
-    	}
117
+		foreach ($tableList as $table) {
118
+			$root->addChild("table", $table);
119
+		}
120 120
 		
121 121
 		return $root;
122 122
 	}
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
 		$beanName = $this->getBeanNameFromTableName($tableName);
133 133
 		$baseBeanName = $this->getBaseBeanNameFromTableName($tableName);
134 134
 
135
-        $connection = $this->dbConnection;
136
-        if ($connection instanceof CachedConnection){
137
-            $connection->cacheService->purgeAll();
138
-        }
135
+		$connection = $this->dbConnection;
136
+		if ($connection instanceof CachedConnection){
137
+			$connection->cacheService->purgeAll();
138
+		}
139 139
 		
140 140
 		$this->generateBean($beanName.".php", $beanName, $baseBeanName.".php", $baseBeanName, $tableName);
141 141
 		$this->generateDao($daoName.".php", $daoName."Base.php", $beanName.".php", $daoName, $daoName."Base", $beanName, $tableName);
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMObject.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -563,46 +563,46 @@
 block discarded – undo
563 563
 	}
564 564
 	
565 565
 		/**
566
-	 * Implements array behaviour for our object.
567
-	 * 
568
-	 * @param string $offset
569
-	 * @param string $value
570
-	 */
566
+		 * Implements array behaviour for our object.
567
+		 * 
568
+		 * @param string $offset
569
+		 * @param string $value
570
+		 */
571 571
 	public function offsetSet($offset, $value) {
572 572
 		$this->__set($offset, $value);
573
-    }
573
+	}
574 574
 	/**
575 575
 	 * Implements array behaviour for our object.
576 576
 	 * 
577 577
 	 * @param string $offset
578 578
 	 */
579
-    public function offsetExists($offset) {
580
-    	$this->_dbLoadIfNotLoaded();
581
-        return isset($this->db_row[$offset]);
582
-    }
579
+	public function offsetExists($offset) {
580
+		$this->_dbLoadIfNotLoaded();
581
+		return isset($this->db_row[$offset]);
582
+	}
583 583
 	/**
584 584
 	 * Implements array behaviour for our object.
585 585
 	 * 
586 586
 	 * @param string $offset
587 587
 	 */
588
-    public function offsetUnset($offset) {
588
+	public function offsetUnset($offset) {
589 589
 		$this->__set($offset, null);
590
-    }
590
+	}
591 591
 	/**
592 592
 	 * Implements array behaviour for our object.
593 593
 	 * 
594 594
 	 * @param string $offset
595 595
 	 */
596
-    public function offsetGet($offset) {
597
-        return $this->__get($offset);
598
-    }
596
+	public function offsetGet($offset) {
597
+		return $this->__get($offset);
598
+	}
599 599
 	
600 600
 	private $_validIterator = false;
601 601
 	/**
602 602
 	 * Implements iterator behaviour for our object (so we can each column).
603 603
 	 */
604 604
 	public function rewind() {
605
-    	$this->_dbLoadIfNotLoaded();
605
+		$this->_dbLoadIfNotLoaded();
606 606
 		if (count($this->db_row)>0) {
607 607
 			$this->_validIterator = true;
608 608
 		} else {
Please login to merge, or discard this patch.