Browse Source

Add an option on extractTask to avoid the display of marker errors

AlPri78 7 years ago
parent
commit
c87ad0984c
2 changed files with 4 additions and 3 deletions
  1. 1 1
      src/Shell/Task/ExtractTask.php
  2. 3 2
      tests/TestCase/Shell/Task/ExtractTaskTest.php

+ 1 - 1
src/Shell/Task/ExtractTask.php

@@ -316,7 +316,7 @@ class ExtractTask extends Shell
         $this->out();
         if ($this->_countMarkerError) {
             $this->err("{$this->_countMarkerError} marker error(s) detected.");
-            $this->err(" => Activate marker-error option to list errors.");
+            $this->err(" => Use the --marker-error option to display errors.");
         }
 
         $this->out('Done.');

+ 3 - 2
tests/TestCase/Shell/Task/ExtractTaskTest.php

@@ -26,7 +26,8 @@ use PHPUnit\Framework\MockObject\MockObject;
  * @property \Cake\Console\ConsoleIo|MockObject $io
  * @property string $path
  */
-class ExtractTaskTest extends TestCase {
+class ExtractTaskTest extends TestCase
+{
 
     /**
      * setUp method
@@ -386,7 +387,7 @@ class ExtractTaskTest extends TestCase {
      * @param string $val
      * @param int $nbLines
      */
-    public function echoTest( $val = '', $nbLines = 1)
+    public function echoTest($val = '', $nbLines = 1)
     {
         echo $val . str_repeat(PHP_EOL, $nbLines);
     }