@@ -72,8 +72,6 @@ |
||
| 72 | 72 | * use /etc/issue (if it exists) to work out what operating system we |
| 73 | 73 | * are looking at |
| 74 | 74 | * |
| 75 | - * @param string $path |
|
| 76 | - * path to the file to parse |
|
| 77 | 75 | * @return null|OsType |
| 78 | 76 | * OsType if we can determine the operating system |
| 79 | 77 | * null if we cannot |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | |
| 109 | 109 | // do we have a match? |
| 110 | 110 | foreach (self::$osTypes as $regex => $type) { |
| 111 | - $matches=[]; |
|
| 111 | + $matches = []; |
|
| 112 | 112 | if (!preg_match($regex, $fileContents, $matches)) { |
| 113 | 113 | continue; |
| 114 | 114 | } |
@@ -69,8 +69,6 @@ |
||
| 69 | 69 | * use /etc/redhat-release (if it exists) to work out what flavour of |
| 70 | 70 | * RedHat Linux we are looking at |
| 71 | 71 | * |
| 72 | - * @param string $path |
|
| 73 | - * path to the file to parse |
|
| 74 | 72 | * @return null|OsType |
| 75 | 73 | * OsType if we can determine the operating system |
| 76 | 74 | * null if we cannot |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | |
| 106 | 106 | // do we have a match? |
| 107 | 107 | foreach (self::$osTypes as $regex => $type) { |
| 108 | - $matches=[]; |
|
| 108 | + $matches = []; |
|
| 109 | 109 | if (!preg_match($regex, $fileContents, $matches)) { |
| 110 | 110 | continue; |
| 111 | 111 | } |