Skip to content

Commit

Permalink
Remove concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguy committed May 19, 2015
1 parent 9c39cdb commit 9da4563
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RedBeanPHP/Logger/RDefault/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function fillInValue( $value )
protected function output( $str )
{
$this->logs[] = $str;
if ( !$this->mode ) echo $str .'<br />';
if ( !$this->mode ) echo $str ,'<br />';
}

/**
Expand Down
10 changes: 5 additions & 5 deletions replica2.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

function addFile($file) {
global $code;
echo 'Added '. $file . ' to package... '.PHP_EOL;
echo 'Added ', $file , ' to package... ',PHP_EOL;
$raw = file_get_contents($file);
$raw = preg_replace('/namespace\s+([a-zA-Z0-9\\\;]+);/m', 'namespace $1 {', $raw);
$raw .= '}';
Expand Down Expand Up @@ -106,16 +106,16 @@ class R extends \RedBeanPHP\Facade{};

$code = '<?php'.str_replace('<?php', '', $code);

echo 'Okay, seems we have all the code.. now writing file: rb.php' .PHP_EOL;
echo 'Okay, seems we have all the code.. now writing file: rb.php' ,PHP_EOL;

$b = file_put_contents('rb.php', $code);

echo 'Written: '.$b.' bytes.'.PHP_EOL;
echo 'Written: ',$b,' bytes.',PHP_EOL;

if ($b > 0) {
echo 'Done!' .PHP_EOL;
echo 'Done!' ,PHP_EOL;
} else {
echo 'Hm, something seems to have gone wrong... '.PHP_EOL;
echo 'Hm, something seems to have gone wrong... ',PHP_EOL;
}

}
Expand Down

0 comments on commit 9da4563

Please sign in to comment.