Completed
Push — develop ( 8c914c...95d5bd )
by Stuart
01:57
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/NetInterfaces/Values/NetLink.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -113,6 +113,11 @@
 block discarded – undo
113 113
      */
114 114
     protected $hardwareBroadcastAddress;
115 115
 
116
+    /**
117
+     * @param integer $interfaceIndex
118
+     * @param string $interfaceName
119
+     * @param string|null $interfaceMaster
120
+     */
116 121
     public function __construct($interfaceIndex, $interfaceName, $interfaceMaster, $interfaceFlags, $interfaceProperties, $linkType, $physicalAddress, $hardwareBroadcastAddress)
117 122
     {
118 123
         $this->interfaceIndex = $interfaceIndex;
Please login to merge, or discard this patch.
src/IpRoute/Parsers/ParseInet6Address.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @param  string $inet6Lines
102 102
      *         the line(s) to parse
103
-     * @return InetAddress
103
+     * @return Inet6Address
104 104
      *         the inet address defined in the output
105 105
      */
106 106
     private static function fromString($inet6Lines)
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      *
116 116
      * @param  array|Traversable $inet6Lines
117 117
      *         the line(s) to parse
118
-     * @return InetAddress
118
+     * @return Inet6Address
119 119
      *         the inet address defined in the output
120 120
      */
121 121
     private static function fromTraversable($inet6Lines)
Please login to merge, or discard this patch.
src/IpRoute/Parsers/ParseNetInterface.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
      *
240 240
      * @param  array $lines
241 241
      *         the 'ip addr' lines for the physical link
242
-     * @return NetLink
242
+     * @return \GanbaroDigital\OperatingSystem\NetInterfaces\Values\NetLink
243 243
      *         the value object extracted from the lines of output
244 244
      */
245 245
     private static function convertToLink($lines)
Please login to merge, or discard this 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_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/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.