Completed
Branch master (d4d7f9)
by Alessandro
04:40
created
src/Paraunit/Filter/Filter.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -132,6 +132,7 @@
 block discarded – undo
132 132
      * @param \DOMNode $testSuiteNode
133 133
      * @param string $nodeName
134 134
      * @param string | null $defaultValue
135
+     * @param string $defaultValue
135 136
      *
136 137
      * @return string
137 138
      */
Please login to merge, or discard this patch.
src/Paraunit/Lifecycle/EngineEvent.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-     * @param $contextParameterName
60
+     * @param string $contextParameterName
61 61
      *
62 62
      * @return mixed
63 63
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     public function get($contextParameterName)
65 65
     {
66 66
         if (!$this->has($contextParameterName)) {
67
-            throw new \LogicException('Cannot find parameter: '.$contextParameterName);
67
+            throw new \LogicException('Cannot find parameter: ' . $contextParameterName);
68 68
         }
69 69
 
70 70
         return $this->context[$contextParameterName];
Please login to merge, or discard this patch.
src/Paraunit/Runner/Runner.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-     * @param $debug
137
+     * @param boolean $debug
138 138
      *
139 139
      * @return ParaunitProcessAbstract
140 140
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             new EngineEvent($files, $outputInterface, array('start' => $start,))
73 73
         );
74 74
 
75
-        while ( ! empty($this->processStack) || ! empty($this->processRunning)) {
75
+        while (!empty($this->processStack) || !empty($this->processRunning)) {
76 76
 
77 77
             if ($process = $this->runProcess($debug)) {
78 78
                 $this->eventDispatcher->dispatch(ProcessEvent::PROCESS_STARTED, new ProcessEvent($process));
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     protected function runProcess($debug)
142 142
     {
143
-        if ($this->maxProcessNumber > count($this->processRunning) && ! empty($this->processStack)) {
143
+        if ($this->maxProcessNumber > count($this->processRunning) && !empty($this->processStack)) {
144 144
             /** @var ParaunitProcessInterface $process */
145 145
             $process = array_pop($this->processStack);
146 146
             $process->start();
Please login to merge, or discard this patch.
Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
5 5
 use Symfony\Component\Config\FileLocator;
6 6
 
7
-function getContainer(){
7
+function getContainer() {
8 8
 
9 9
     $container = new ContainerBuilder();
10 10
 
11
-    $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/src/Paraunit/Resources/config/'));
11
+    $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/src/Paraunit/Resources/config/'));
12 12
     $loader->load('services.yml');
13 13
 
14 14
     $container->addCompilerPass(
Please login to merge, or discard this patch.
Paraunit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/vendor/autoload.php';
3
+require __DIR__ . '/vendor/autoload.php';
Please login to merge, or discard this patch.
src/Paraunit/Process/ProcessFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function createProcess($testFilePath)
35 35
     {
36
-        if ( ! $this->phpunitConfigFile instanceof PHPUnitConfigFile) {
36
+        if (!$this->phpunitConfigFile instanceof PHPUnitConfigFile) {
37 37
             throw new \Exception('PHPUnit config missing');
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Paraunit/Parser/TestResultsParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if (!empty($matches)) {
43 43
             // fix per PHPUNIT < 4.7, strip della riga della config
44 44
             if (substr($matches[0], 0, 24) == $this::PHPUNIT_CONFIG_LOAD) {
45
-                $results = preg_replace('/^'.preg_quote($this::PHPUNIT_CONFIG_LOAD).'.*\n\n/', '', $matches[0]);
45
+                $results = preg_replace('/^' . preg_quote($this::PHPUNIT_CONFIG_LOAD) . '.*\n\n/', '', $matches[0]);
46 46
             } else {
47 47
                 $results = $matches[0];
48 48
             }
Please login to merge, or discard this patch.
src/Paraunit/Parser/SegmentationFaultParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $segFault = array();
22 22
         preg_match(self::SEGFAULT_REGEX, $output, $segFault);
23 23
         if (!empty($segFault)) {
24
-            $process->addSegmentationFault($process->getFilename().' - '.$segFault[0]);
24
+            $process->addSegmentationFault($process->getFilename() . ' - ' . $segFault[0]);
25 25
 
26 26
             return false;
27 27
         }
Please login to merge, or discard this patch.
src/Paraunit/Tests/Stub/ConsoleOutputStub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function writeln($messages, $type = self::OUTPUT_NORMAL)
25 25
     {
26
-        $this->outputBuffer .= "\n".$messages;
26
+        $this->outputBuffer .= "\n" . $messages;
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.