Completed
Push — develop ( 95d5bd...e84e9c )
by Stuart
01:55
created
src/OsType/ValueBuilders/BuildTypeFromEtcRedhatRelease.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      */
127 127
     private static function matchTypeToRegex($type, $regex, $fileContents)
128 128
     {
129
-        $matches=[];
129
+        $matches = [];
130 130
         if (!preg_match($regex, $fileContents, $matches)) {
131 131
             return null;
132 132
         }
Please login to merge, or discard this patch.
src/OsType/ValueBuilders/BuildTypeFromEtcIssue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      */
127 127
     private static function matchTypeToRegex($type, $regex, $fileContents)
128 128
     {
129
-        $matches=[];
129
+        $matches = [];
130 130
         if (!preg_match($regex, $fileContents, $matches)) {
131 131
             return null;
132 132
         }
Please login to merge, or discard this patch.
src/Exceptions/E4xx_CannotParseNetInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
     public function __construct($lines, Exception $e)
59 59
     {
60 60
         $message = "cannot parse net interface; error is: " . $e->getMessage();
61
-        return parent::__construct(400, $message, [ 'cause' => $e, 'input' => $lines ]);
61
+        return parent::__construct(400, $message, ['cause' => $e, 'input' => $lines]);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Exceptions/E5xx_CannotParseNetInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,6 @@
 block discarded – undo
59 59
     public function __construct($lines, Exception $e)
60 60
     {
61 61
         $message = "cannot parse net interface; error is: " . $e->getMessage();
62
-        return parent::__construct(500, $message, [ 'cause' => $e, 'input' => $lines ]);
62
+        return parent::__construct(500, $message, ['cause' => $e, 'input' => $lines]);
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/IpRoute/Parsers/ParseNetInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,11 +149,11 @@
 block discarded – undo
149 149
                         $linkLines[] = $line;
150 150
                         break;
151 151
                     case ClassifyIpAddrLine::INET_START:
152
-                        $inetLines[] = [ $line ];
152
+                        $inetLines[] = [$line];
153 153
                         $optionsTarget = 'inetLines';
154 154
                         break;
155 155
                     case ClassifyIpAddrLine::INET6_START:
156
-                        $inet6Lines[] = [ $line ];
156
+                        $inet6Lines[] = [$line];
157 157
                         $optionsTarget = 'inet6Lines';
158 158
                         break;
159 159
                     case ClassifyIpAddrLine::INET_OPTIONS:
Please login to merge, or discard this patch.
src/Exceptions/E4xx_CannotParseIpAddrOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
     public function __construct($lines, Exception $e)
59 59
     {
60 60
         $message = "cannot parse net interface; error is: " . $e->getMessage();
61
-        return parent::__construct(400, $message, [ 'cause' => $e, 'input' => $lines ]);
61
+        return parent::__construct(400, $message, ['cause' => $e, 'input' => $lines]);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Exceptions/E5xx_CannotParseIpAddrOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,6 @@
 block discarded – undo
59 59
     public function __construct($lines, Exception $e)
60 60
     {
61 61
         $message = "cannot parse net interface; error is: " . $e->getMessage();
62
-        return parent::__construct(500, $message, [ 'cause' => $e, 'input' => $lines ]);
62
+        return parent::__construct(500, $message, ['cause' => $e, 'input' => $lines]);
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/IpRoute/Parsers/ParseIpAddrOutput.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
              // group the output into smaller chunks for parsing
105 105
              $groups = self::groupOutputIntoInterfaces($output);
106 106
 
107
-             foreach($groups as $interfaceLines) {
107
+             foreach ($groups as $interfaceLines) {
108 108
                  $interface = ParseNetInterface::from($interfaceLines);
109 109
                  $retval[] = $interface;
110 110
              }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
       */
132 132
      private static function groupOutputIntoInterfaces($lines)
133 133
      {
134
-         $interfaces=[];
134
+         $interfaces = [];
135 135
 
136 136
          // what do we have?
137 137
          foreach ($lines as $line) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
              $lineType = ClassifyIpAddrLine::from($line);
145 145
              switch ($lineType) {
146 146
                  case ClassifyIpAddrLine::LINK_START:
147
-                     $interfaces[] = [ $line ];
147
+                     $interfaces[] = [$line];
148 148
                      break;
149 149
                  default:
150 150
                      $interfaces[count($interfaces) - 1][] = $line;
Please login to merge, or discard this patch.