Browse Source

FIX PSR2

1.0
drAlberT 9 years ago
parent
commit
f6d969e99b
  1. 1
      Mage/Compiler.php
  2. 5
      Mage/Console.php
  3. 1
      Mage/Task/BuiltIn/General/ManuallyTask.php
  4. 1
      tests/MageTest/Command/AbstractCommandTest.php

1
Mage/Compiler.php

@ -21,7 +21,6 @@ use RecursiveDirectoryIterator;
*/ */
class Compiler class Compiler
{ {
/** /**
* Compiles the library * Compiles the library
* *

5
Mage/Console.php

@ -13,7 +13,6 @@ namespace Mage;
use Mage\Command\Factory; use Mage\Command\Factory;
use Mage\Command\RequiresEnvironment; use Mage\Command\RequiresEnvironment;
use Mage\Console\Colors; use Mage\Console\Colors;
use Exception; use Exception;
use RecursiveDirectoryIterator; use RecursiveDirectoryIterator;
use SplFileInfo; use SplFileInfo;
@ -95,7 +94,6 @@ class Console
try { try {
// Load configuration // Load configuration
$config->load($arguments); $config->load($arguments);
} catch (Exception $exception) { } catch (Exception $exception) {
$configError = $exception->getMessage(); $configError = $exception->getMessage();
} }
@ -119,7 +117,6 @@ class Console
if ($showGreetings) { if ($showGreetings) {
if (!self::$logEnabled) { if (!self::$logEnabled) {
self::output('Starting <blue>Magallanes</blue>', 0, 2); self::output('Starting <blue>Magallanes</blue>', 0, 2);
} else { } else {
self::output('Starting <blue>Magallanes</blue>', 0, 1); self::output('Starting <blue>Magallanes</blue>', 0, 1);
self::log("Logging enabled"); self::log("Logging enabled");
@ -130,7 +127,6 @@ class Console
// Run Command - Check if there is a Configuration Error // Run Command - Check if there is a Configuration Error
if ($configError !== false) { if ($configError !== false) {
self::output('<red>' . $configError . '</red>', 1, 2); self::output('<red>' . $configError . '</red>', 1, 2);
} else { } else {
// Run Command and check for Command Requirements // Run Command and check for Command Requirements
try { try {
@ -314,5 +310,4 @@ class Console
|| self::$config->general('verbose_logging') || self::$config->general('verbose_logging')
|| self::$config->environmentConfig('verbose_logging', false); || self::$config->environmentConfig('verbose_logging', false);
} }
} }

1
Mage/Task/BuiltIn/General/ManuallyTask.php

@ -32,7 +32,6 @@ use Mage\Task\AbstractTask;
*/ */
class ManuallyTask extends AbstractTask class ManuallyTask extends AbstractTask
{ {
/** /**
* (non-PHPdoc) * (non-PHPdoc)
* @see \Mage\Task\AbstractTask::getName() * @see \Mage\Task\AbstractTask::getName()

1
tests/MageTest/Command/AbstractCommandTest.php

@ -266,6 +266,5 @@ class AbstractCommandTest extends BaseTest
$actualMessage = $command->getInfoMessage(); $actualMessage = $command->getInfoMessage();
$this->assertEquals($expectedMessage, $actualMessage); $this->assertEquals($expectedMessage, $actualMessage);
} }
} }

Loading…
Cancel
Save