Browse Source

added PHPunit dependency in composer and fixed style

Marc 11 years ago
parent
commit
006ad1b5e1
2 changed files with 5 additions and 3 deletions
  1. 3 2
      Service/GearmanDescriber.php
  2. 2 1
      composer.json

+ 3 - 2
Service/GearmanDescriber.php

@@ -38,6 +38,7 @@ class GearmanDescriber
         $this->kernel = $kernel;
     }
 
+
     /**
      * Describe Job.
      *
@@ -62,7 +63,7 @@ class GearmanDescriber
         $output->writeln('<info>    @job\methodName : ' . $job['methodName'] . '</info>');
         $output->writeln('<info>    @job\callableName : ' . $job['realCallableName'] . '</info>');
 
-        if(false === is_null($job['jobPrefix'])){
+        if( $job['jobPrefix']) {
             $output->writeln('<info>    @job\jobPrefix : ' . $job['jobPrefix'] . '</info>');
         }
 
@@ -166,4 +167,4 @@ class GearmanDescriber
         $output->writeln('<comment>        ' . $worker['description'] . '</comment>');
         $output->writeln('');
     }
-}
+}

+ 2 - 1
composer.json

@@ -26,7 +26,8 @@
         "symfony/config": ">=2.1",
         "symfony/http-kernel": ">=2.1",
         "symfony/dependency-injection": ">=2.1",
-        "liip/doctrine-cache-bundle": "1.0.3"
+        "liip/doctrine-cache-bundle": "1.0.3",
+    	"phpunit/phpunit": "3.7.*"
     },
     "target-dir": "Mmoreram/GearmanBundle",
     "autoload": {