Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 85090bb

Browse files
committed
Fix: cs, according to what php-cs-fixer things is best!
1 parent a0e17ad commit 85090bb

21 files changed

+69
-66
lines changed

src/ZendDiagnostics/Check/AbstractMemoryCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private function formatBytes($bytes)
101101
{
102102
$size = 'B';
103103

104-
foreach (array('B','KB','MB','GB') as $size) {
104+
foreach (array('B', 'KB', 'MB', 'GB') as $size) {
105105
if ($bytes < 1024) {
106106
break;
107107
}

src/ZendDiagnostics/Check/IniFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class IniFile extends AbstractFileCheck
1717
*/
1818
protected function validateFile($file)
1919
{
20-
if (!is_array($ini = parse_ini_file($file)) or count($ini) < 1 ) {
20+
if (!is_array($ini = parse_ini_file($file)) or count($ini) < 1) {
2121
return new Failure(sprintf('Could not parse INI file "%s"!', $file));
2222
}
2323

src/ZendDiagnostics/Check/PhpFlag.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,13 @@ public function __construct($settingName, $expectedValue)
4141
);
4242
}
4343
$this->settings = iterator_to_array($settingName);
44-
4544
} elseif (!is_scalar($settingName)) {
4645
if (!is_array($settingName)) {
4746
throw new InvalidArgumentException(
4847
'Expected setting name as string, array or traversable, got ' . gettype($settingName)
4948
);
5049
}
5150
$this->settings = $settingName;
52-
5351
} else {
5452
$this->settings = array($settingName);
5553
}

src/ZendDiagnostics/Check/PhpVersion.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function __construct($expectedVersion, $operator = '>=')
4343
);
4444
}
4545
$this->version = $expectedVersion;
46-
4746
} elseif (!is_scalar($expectedVersion)) {
4847
if (!is_array($expectedVersion)) {
4948
throw new InvalidArgumentException(
@@ -52,7 +51,6 @@ public function __construct($expectedVersion, $operator = '>=')
5251
}
5352

5453
$this->version = $expectedVersion;
55-
5654
} else {
5755
$this->version = array($expectedVersion);
5856
}

src/ZendDiagnostics/Result/AbstractResult.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,4 @@ public function setMessage($message)
7171
{
7272
$this->message = $message;
7373
}
74-
7574
}

src/ZendDiagnostics/Result/Collection.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ protected function validateIndex($index)
193193
if (!$index instanceof CheckInterface) {
194194
$what = is_object($index) ? 'object of type ' . get_class($index) : gettype($index);
195195
throw new InvalidArgumentException(sprintf(
196-
'Cannot use %s as index for this collection. Expected instance of CheckInterface.'
197-
, $what));
196+
'Cannot use %s as index for this collection. Expected instance of CheckInterface.', $what));
198197
}
199198

200199
return $index;
@@ -212,8 +211,7 @@ protected function validateValue($checkResult)
212211
if (!is_object($checkResult) || !$checkResult instanceof ResultInterface) {
213212
$what = is_object($checkResult) ? 'object of type ' . get_class($checkResult) : gettype($checkResult);
214213
throw new InvalidArgumentException(sprintf(
215-
'This collection cannot hold %s. Expected instance of %s\ResultInterface'
216-
, $what, __NAMESPACE__));
214+
'This collection cannot hold %s. Expected instance of %s\ResultInterface', $what, __NAMESPACE__));
217215
}
218216

219217
return $checkResult;

src/ZendDiagnostics/Result/Failure.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
*/
55
namespace ZendDiagnostics\Result;
66

7-
class Failure extends AbstractResult implements FailureInterface {}
7+
class Failure extends AbstractResult implements FailureInterface
8+
{
9+
}

src/ZendDiagnostics/Result/Skip.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
*/
55
namespace ZendDiagnostics\Result;
66

7-
class Skip extends AbstractResult implements SkipInterface {}
7+
class Skip extends AbstractResult implements SkipInterface
8+
{
9+
}

src/ZendDiagnostics/Result/Success.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
*/
55
namespace ZendDiagnostics\Result;
66

7-
class Success extends AbstractResult implements SuccessInterface {}
7+
class Success extends AbstractResult implements SuccessInterface
8+
{
9+
}

src/ZendDiagnostics/Result/Warning.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
*/
55
namespace ZendDiagnostics\Result;
66

7-
class Warning extends AbstractResult implements WarningInterface {}
7+
class Warning extends AbstractResult implements WarningInterface
8+
{
9+
}

0 commit comments

Comments
 (0)