Skip to content

Commit 24413b9

Browse files
committed
coding style: fixed spaces & use statements order
1 parent d4c3ee3 commit 24413b9

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function tryLoad($type)
8989

9090
if ($this->autoRebuild) {
9191
if (!$info || !is_file($info['file'])) {
92-
$missing = & $this->missing[$type];
92+
$missing = &$this->missing[$type];
9393
$missing++;
9494
if (!$this->refreshed && $missing <= self::RETRY_LIMIT) {
9595
$this->refresh();
@@ -282,7 +282,7 @@ private function scanPhp($code)
282282
$level = $minLevel = 0;
283283
$classes = [];
284284

285-
if (preg_match('#//nette'.'loader=(\S*)#', $code, $matches)) {
285+
if (preg_match('#//nette' . 'loader=(\S*)#', $code, $matches)) {
286286
foreach (explode(',', $matches[1]) as $name) {
287287
$classes[] = $name;
288288
}
@@ -440,5 +440,4 @@ protected function getCacheKey()
440440
{
441441
return [$this->ignoreDirs, $this->acceptFiles, $this->scanPaths, $this->excludeDirs];
442442
}
443-
444443
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
22

33
class ExcludedClass
4-
{}
4+
{
5+
}

tests/Loaders/files/namespaces1.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
namespace
44
{
55
class TestClass
6-
{}
6+
{
7+
}
78
}
89

910
namespace MySpace1
1011
{
1112
class TestClass1
12-
{}
13+
{
14+
}
1315
}

tests/Loaders/files/namespaces2.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
namespace MySpace2;
44

55
class TestClass2
6-
{}
6+
{
7+
}
78

89
namespace MySpace3;
910

1011
class TestClass3
11-
{}
12+
{
13+
}

0 commit comments

Comments
 (0)