Completed
Push — master ( c42001...1bb9e8 )
by arto
04:45
created
source/Service/Builder/ParserBuilderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function create()
22 22
     {
23
-        $stringUtility    = new StringUtility();
23
+        $stringUtility = new StringUtility();
24 24
 
25 25
         return new ParserBuilder(
26 26
             new DetailListOfLineParser(
Please login to merge, or discard this patch.
source/Service/Builder/RemoteStorageBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __construct()
22 22
     {
23
-        $factory    = new BuilderFactory();
23
+        $factory = new BuilderFactory();
24 24
 
25 25
         $this->fetcher = new HttpFetcher(
26 26
             $factory->create()
Please login to merge, or discard this patch.
source/Service/Builder/ParserBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function setStorageUpfront(StorageInterface $storage)
74 74
     {
75
-        $this->storage  = $storage;
75
+        $this->storage = $storage;
76 76
     }
77 77
 
78 78
     /**
@@ -94,25 +94,25 @@  discard block
 block discarded – undo
94 94
 
95 95
         //begin of business logic
96 96
         if ($storage->hasListOfDetail()) {
97
-            $listOfDetailOrNull   = $detailListOfLineParser->parse(
97
+            $listOfDetailOrNull = $detailListOfLineParser->parse(
98 98
                 $storage->getListOfDetail()
99 99
             );
100 100
         }
101 101
 
102 102
         if ($storage->hasListOfInformation()) {
103
-            $informationOrNull  = $informationListOfLineParser->parse(
103
+            $informationOrNull = $informationListOfLineParser->parse(
104 104
                 $storage->getListOfInformation()
105 105
             );
106 106
         }
107 107
 
108 108
         if ($storage->hasListOfScoreboard()) {
109
-            $scoreboardOrNull   = $scoreboardListOfLineParser->parse(
109
+            $scoreboardOrNull = $scoreboardListOfLineParser->parse(
110 110
                 $storage->getListOfScoreboard()
111 111
             );
112 112
         }
113 113
 
114 114
         if ($storage->hasListOfStatistic()) {
115
-            $statisticOrNull    = $statisticListOfLineParser->parse(
115
+            $statisticOrNull = $statisticListOfLineParser->parse(
116 116
                 $storage->getListOfStatistic()
117 117
             );
118 118
         }
Please login to merge, or discard this patch.
source/Service/Content/Fetcher/AbstractFetcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
     public function fetch()
18 18
     {
19 19
         //begin of business logic
20
-        $contentAsString        = strip_tags($this->fetchContentAsStringOrThrowRuntimeException());
20
+        $contentAsString = strip_tags($this->fetchContentAsStringOrThrowRuntimeException());
21 21
         $contentAsArray = explode(PHP_EOL, $contentAsString);
22 22
 
23 23
         $lines = array_filter(
24 24
             $contentAsArray,
25
-            function ($item) {
25
+            function($item) {
26 26
                 return (strlen(trim($item)) > 0);
27 27
             }
28 28
         );
Please login to merge, or discard this patch.
source/Service/Content/Fetcher/FileFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     protected function fetchContentAsStringOrThrowRuntimeException()
29 29
     {
30 30
         //begin of dependencies
31
-        $path   = $this->path;
31
+        $path = $this->path;
32 32
         //end of dependencies
33 33
 
34 34
         //begin of business logic
Please login to merge, or discard this patch.
source/Service/Content/Storage/FullStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $this->clear();
38 38
 
39
-        $this->stringUtility    = $stringUtility;
39
+        $this->stringUtility = $stringUtility;
40 40
     }
41 41
 
42 42
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function clear()
90 90
     {
91
-        $this->currentIndexKeyForListOfDetail  = null;
91
+        $this->currentIndexKeyForListOfDetail = null;
92 92
 
93 93
         $this->listOfDetail         = [];
94 94
         $this->listOfInformation    = [];
Please login to merge, or discard this patch.
source/Service/Content/Processor/Processor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
 
62 62
         if ($stateMachine->theCurrentStateIsDetail()) {
63 63
             $storage->addDetail($line);
64
-        } else if($stateMachine->theCurrentStateIsInformation()) {
64
+        } else if ($stateMachine->theCurrentStateIsInformation()) {
65 65
             $storage->addInformation($line);
66
-        } else if($stateMachine->theCurrentStateIsScoreboard()) {
66
+        } else if ($stateMachine->theCurrentStateIsScoreboard()) {
67 67
             $storage->addScoreboard($line);
68
-        } else if($stateMachine->theCurrentStateIsStatistic()) {
68
+        } else if ($stateMachine->theCurrentStateIsStatistic()) {
69 69
             $storage->addStatistic($line);
70 70
         }
71 71
 
Please login to merge, or discard this patch.
source/Service/Content/Parser/ScoreboardListOfLineParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
         $listOfLineHasMinimalSize = (count($listOfLine) > 12);
25 25
 
26 26
         if ($listOfLineHasMinimalSize) {
27
-            $listOMandatoryProperties   = [
27
+            $listOMandatoryProperties = [
28 28
                 'list_of_legend'    => [],
29 29
                 'line_of_process'   => ''
30 30
             ];
31 31
 
32
-            $collectListOfLegend    = false;
32
+            $collectListOfLegend = false;
33 33
 
34 34
             foreach ($listOfLine as $line) {
35 35
                 if ($collectListOfLegend) {
Please login to merge, or discard this patch.
source/Service/Content/Parser/DetailListOfLineParser.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
         //begin of business logic
43 43
         foreach ($listOfLine as $line) {
44 44
             try {
45
-                $listOfParsedDetailLines[]  = $detailLineParser->parse($line);
45
+                $listOfParsedDetailLines[] = $detailLineParser->parse($line);
46 46
             } catch (InvalidArgumentException $invalidArgumentException) {
47 47
                 //echo get_class($detailLineParser) . ' could not parse the following line:' . PHP_EOL;
48 48
                 //echo '    ' . $line . PHP_EOL;
Please login to merge, or discard this patch.