Completed
Push — master ( ca0828...0214c5 )
by Alessandro
02:55
created
src/PHP/PhpCodeSnifferReviewNoBlade.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      *
61 61
      * @param  string               $option
62 62
      * @param  string               $value
63
-     * @return PhpCodeSnifferReview
63
+     * @return PhpCodeSnifferReviewNoBlade
64 64
      */
65 65
     public function setOption($option, $value)
66 66
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function canReviewFile(FileInterface $file)
83 83
     {
84
-        return ($file->getExtension() === 'php' && substr($file->getFileName(),-strlen('blade.php'))!='blade.php');
84
+        return ($file->getExtension() === 'php' && substr($file->getFileName(), -strlen('blade.php')) != 'blade.php');
85 85
     }
86 86
 
87 87
     /**
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
         $process = $this->getProcess($cmd);
102 102
         $process->run();
103 103
 
104
-        if (! $process->isSuccessful()) {
104
+        if (!$process->isSuccessful()) {
105 105
             // Create the array of outputs and remove empty values.
106 106
             $output = json_decode($process->getOutput(), true);
107 107
 
108
-            $filter = function ($acc, $file) {
108
+            $filter = function($acc, $file) {
109 109
                 if ($file['errors'] > 0 || $file['warnings'] > 0) {
110 110
                     return $acc + $file['messages'];
111 111
                 }
Please login to merge, or discard this patch.