Skip to content

Commit

Permalink
Merge pull request #14 from dereuromark/master
Browse files Browse the repository at this point in the history
CakePHP CS
  • Loading branch information
uzyn committed Jan 6, 2014
2 parents b4a0d07 + 28695f9 commit 5bc4d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Config/bootstrap.php
@@ -1,4 +1,4 @@
<?php
if (file_exists(APP.'Vendor'.DS.'autoload.php')) {
if (file_exists(APP . 'Vendor' . DS . 'autoload.php')) {
App::import('Vendor', 'autoload');
}
8 changes: 4 additions & 4 deletions Console/Command/ComposerShell.php
Expand Up @@ -25,7 +25,7 @@ public function initialize() {
if (Configure::read('Composer.phar_dir') !== null) {
$this->pharDir = Configure::read('Composer.phar_dir');
} else {
$this->pharDir = dirname(dirname(dirname(__FILE__))).DS.'Vendor'.DS.'Composer'.DS;
$this->pharDir = dirname(dirname(dirname(__FILE__))) . DS . 'Vendor' . DS . 'Composer' . DS;
}
}
}
Expand Down Expand Up @@ -170,7 +170,7 @@ protected function _checkComposerPhar() {
$version = $this->_getComposerVersion();

if (stripos($version, 'Composer') === false || stripos($version, 'version') === false) {
if(file_exists("{$this->pharDir}composer.phar")) {
if (file_exists("{$this->pharDir}composer.phar")) {
$this->out('<warning>Composer is installed, but there was an error executing it.</warning>');
} else {
$this->out('<warning>Composer is not installed.</warning>');
Expand All @@ -197,7 +197,7 @@ protected function _checkComposerPhar() {
*/
protected function _checkComposerJSON() {
if (file_exists('composer.json')) $jsonLocation = 'composer.json';
else $jsonLocation = APP.'composer.json';
else $jsonLocation = APP . 'composer.json';

$jsonSave = false;
if (file_exists($jsonLocation)) {
Expand Down Expand Up @@ -228,7 +228,7 @@ protected function _checkComposerJSON() {
}

if ($jsonSave) {
if (strnatcmp(phpversion(),'5.4.0') >= 0) {
if (strnatcmp(phpversion(), '5.4.0') >= 0) {
$encoded = json_encode($json, JSON_PRETTY_PRINT);
} else {
$encoded = json_encode($json);
Expand Down

0 comments on commit 5bc4d29

Please sign in to comment.