Completed
Push — master ( 4efcc4...c0c479 )
by Vladimir
04:10
created
src/Command/CheckGeneratorCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $bundle = $this->getApplication()->getKernel()->getBundle($bundle);
58 58
 
59 59
         preg_match('#^(.*?)(\w+)$#', $checkPath, $m);
60
-        list($checkNamespace, $checkName) =  [$m[1], $m[2]];
60
+        list($checkNamespace, $checkName) = [$m[1], $m[2]];
61 61
 
62 62
         $checkNamespace = preg_replace('#\\\$#', '', $checkNamespace);
63 63
         $bundleNamespace = $bundle->getNamespace();
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
         $checkPath = sprintf('%s%s%s', $bundle->getPath(), DIRECTORY_SEPARATOR, $checkPath);
79 79
         $checkPath = str_replace('\\', DIRECTORY_SEPARATOR, $checkPath);
80 80
 
81
-        if(is_dir($checkPath)) {
81
+        if (is_dir($checkPath)) {
82 82
             $noBackup = !$input->getOption('no-backup');
83
-            if($noBackup && is_dir($checkPath)) {
83
+            if ($noBackup && is_dir($checkPath)) {
84 84
                 $output->writeln(sprintf('<error>check %s exist</error>. Use --no-backup flag to rewrite', $name));
85 85
                 exit(1);
86 86
             }
Please login to merge, or discard this patch.
src/Check/CheckFinder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 
14 14
     public function __construct(array $dirs = null)
15 15
     {
16
-        if($dirs) {
16
+        if ($dirs) {
17 17
             $this->searchDirs = array_merge($this->searchDirs, $dirs);
18 18
         }
19 19
 
20 20
         $this->parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
21
-        $this->traverser     = new NodeTraverser;
21
+        $this->traverser = new NodeTraverser;
22 22
     }
23 23
 
24 24
     /**
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
             public function leaveNode(\PhpParser\Node $node) {
42 42
 
43 43
                 if ($node instanceof \PhpParser\Node\Stmt\Namespace_) {
44
-                    $this->namespace = $node->name . '';
44
+                    $this->namespace = $node->name.'';
45 45
                 }
46 46
 
47 47
                 if ($node instanceof \PhpParser\Node\Stmt\Class_) {
48
-                    $this->class = $node->name . '';
48
+                    $this->class = $node->name.'';
49 49
                 }
50 50
             }
51 51
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
             public function getClass()
58 58
             {
59
-                if($this->namespace && $this->class) {
59
+                if ($this->namespace && $this->class) {
60 60
                     $res = sprintf('%s\%s', $this->namespace, $this->class);
61 61
                     return $res;
62 62
                 }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
             $class = $vis->getClass();
82 82
 
83
-            if(is_subclass_of($class, CheckConfigInterface::class)) {
83
+            if (is_subclass_of($class, CheckConfigInterface::class)) {
84 84
                 $res[] = $class;
85 85
             }
86 86
 
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
         $node = $builder
92 92
             ->root('checks', 'array')
93 93
             ->beforeNormalization()
94
-            ->always(function ($value) {
94
+            ->always(function($value) {
95 95
                 foreach ($value as $k=>$v) {
96 96
                     $newK = str_replace('(s)', '_factory', $k);
97
-                    if($newK != $k) {
97
+                    if ($newK != $k) {
98 98
                         $value[$newK] = $value[$k];
99 99
                         unset($value[$k]);
100 100
                     }
Please login to merge, or discard this patch.