Completed
Pull Request — 4.0 (#48)
by Marc
05:40
created
src/Mouf/Database/TDBM/Controllers/TdbmController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -134,19 +134,19 @@
 block discarded – undo
134 134
         if (strpos($daonamespace, '\\') === 0) {
135 135
             $daonamespace = substr($daonamespace, 1);
136 136
         }
137
-        if (strpos($daonamespace, '\\') === strlen($daonamespace) - 1) {
138
-            $daonamespace = substr($daonamespace, 0, strlen($daonamespace) - 1);
137
+        if (strpos($daonamespace, '\\') === strlen($daonamespace)-1) {
138
+            $daonamespace = substr($daonamespace, 0, strlen($daonamespace)-1);
139 139
         }
140 140
         if (strpos($beannamespace, '\\') === 0) {
141 141
             $beannamespace = substr($beannamespace, 1);
142 142
         }
143
-        if (strpos($beannamespace, '\\') === strlen($beannamespace) - 1) {
144
-            $beannamespace = substr($beannamespace, 0, strlen($beannamespace) - 1);
143
+        if (strpos($beannamespace, '\\') === strlen($beannamespace)-1) {
144
+            $beannamespace = substr($beannamespace, 0, strlen($beannamespace)-1);
145 145
         }
146 146
 
147 147
         $tdbmService = new InstanceProxy($name);
148 148
         /* @var $tdbmService TDBMService */
149
-        $tables = $tdbmService->generateAllDaosAndBeans($daofactoryclassname, $daonamespace, $beannamespace, $storeInUtc, (!$defaultPath?$storePath:null));
149
+        $tables = $tdbmService->generateAllDaosAndBeans($daofactoryclassname, $daonamespace, $beannamespace, $storeInUtc, (!$defaultPath ? $storePath : null));
150 150
 
151 151
         $moufManager->declareComponent($daofactoryinstancename, $daonamespace.'\\'.$daofactoryclassname, false, MoufManager::DECLARE_ON_EXIST_KEEP_INCOMING_LINKS);
152 152
 
Please login to merge, or discard this patch.