22
33namespace PhpBrew ;
44
5- use Serializable ;
65use PhpBrew \BuildSettings \BuildSettings ;
6+ use Serializable ;
77
88/**
99 * A build object contains version information,
@@ -152,12 +152,12 @@ public function getSourceDirectory()
152152
153153 public function isBuildable ()
154154 {
155- return file_exists ($ this ->sourceDirectory . DIRECTORY_SEPARATOR . 'Makefile ' );
155+ return file_exists ($ this ->sourceDirectory . DIRECTORY_SEPARATOR . 'Makefile ' );
156156 }
157157
158158 public function getBuildLogPath ()
159159 {
160- $ dir = $ this ->getSourceDirectory (). DIRECTORY_SEPARATOR . 'build.log ' ;
160+ $ dir = $ this ->getSourceDirectory () . DIRECTORY_SEPARATOR . 'build.log ' ;
161161 return $ dir ;
162162 }
163163
@@ -168,12 +168,12 @@ public function setInstallPrefix($prefix)
168168
169169 public function getBinDirectory ()
170170 {
171- return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'bin ' ;
171+ return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'bin ' ;
172172 }
173173
174174 public function getEtcDirectory ()
175175 {
176- $ etc = $ this ->installPrefix . DIRECTORY_SEPARATOR . 'etc ' ;
176+ $ etc = $ this ->installPrefix . DIRECTORY_SEPARATOR . 'etc ' ;
177177 if (!file_exists ($ etc )) {
178178 mkdir ($ etc , 0755 , true );
179179 }
@@ -183,12 +183,12 @@ public function getEtcDirectory()
183183
184184 public function getVarDirectory ()
185185 {
186- return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'var ' ;
186+ return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'var ' ;
187187 }
188188
189189 public function getVarConfigDirectory ()
190190 {
191- return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'var ' . DIRECTORY_SEPARATOR . 'db ' ;
191+ return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'var ' . DIRECTORY_SEPARATOR . 'db ' ;
192192 }
193193
194194 public function getInstallPrefix ()
@@ -201,12 +201,12 @@ public function getInstallPrefix()
201201 */
202202 public function getCurrentConfigScanPath ()
203203 {
204- return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'var ' . DIRECTORY_SEPARATOR . 'db ' ;
204+ return $ this ->installPrefix . DIRECTORY_SEPARATOR . 'var ' . DIRECTORY_SEPARATOR . 'db ' ;
205205 }
206206
207207 public function getPath ($ subpath )
208208 {
209- return $ this ->installPrefix . DIRECTORY_SEPARATOR . $ subpath ;
209+ return $ this ->installPrefix . DIRECTORY_SEPARATOR . $ subpath ;
210210 }
211211
212212 /**
@@ -229,7 +229,7 @@ public function getIdentifier()
229229 $ names [] = $ n ;
230230 } else {
231231 $ v = preg_replace ('#\W+# ' , '_ ' , $ v );
232- $ str = $ n. '= ' . $ v ;
232+ $ str = $ n . '= ' . $ v ;
233233 $ names [] = $ str ;
234234 }
235235 }
@@ -246,7 +246,7 @@ public function getIdentifier()
246246
247247 public function getSourceExtensionDirectory ()
248248 {
249- return $ this ->sourceDirectory . DIRECTORY_SEPARATOR . 'ext ' ;
249+ return $ this ->sourceDirectory . DIRECTORY_SEPARATOR . 'ext ' ;
250250 }
251251
252252 public function setBuildSettings (BuildSettings $ settings )
@@ -259,7 +259,7 @@ public function setBuildSettings(BuildSettings $settings)
259259 // also contains the variant info,
260260 // but for backward compatibility, we still need a method to handle
261261 // the variant info file..
262- $ variantFile = $ this ->getInstallPrefix (). DIRECTORY_SEPARATOR . 'phpbrew.variants ' ;
262+ $ variantFile = $ this ->getInstallPrefix () . DIRECTORY_SEPARATOR . 'phpbrew.variants ' ;
263263 if (file_exists ($ variantFile )) {
264264 $ this ->settings ->loadVariantInfoFile ($ variantFile );
265265 }
@@ -329,7 +329,7 @@ public function import($data)
329329 public function getStateFile ()
330330 {
331331 if ($ dir = $ this ->getInstallPrefix ()) {
332- return $ dir. DIRECTORY_SEPARATOR . 'phpbrew_status ' ;
332+ return $ dir . DIRECTORY_SEPARATOR . 'phpbrew_status ' ;
333333 }
334334 }
335335
0 commit comments