@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * @var AbstractDetector[] |
| 20 | 20 | */ |
| 21 | - protected $detectorTypes = []; |
|
| 21 | + protected $detectorTypes = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @param string $licensePlate |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | throw new \RuntimeException('Detector not found'); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $this->detectorTypes[] = $detectorType; |
|
| 42 | + $this->detectorTypes[ ] = $detectorType; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function getResults() |
| 49 | 49 | { |
| 50 | - $results = []; |
|
| 50 | + $results = [ ]; |
|
| 51 | 51 | |
| 52 | 52 | foreach ($this->detectorTypes as $detectorType) { |
| 53 | 53 | /** @var AbstractDetector $detector */ |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $response = $detector->getResponse(); |
| 57 | 57 | |
| 58 | 58 | if ($response->isValid()) { |
| 59 | - $results[] = $response; |
|
| 59 | + $results[ ] = $response; |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public static function fromString($licensePlate, array $detectorTypes) |
| 75 | 75 | { |
| 76 | - $results = []; |
|
| 76 | + $results = [ ]; |
|
| 77 | 77 | |
| 78 | 78 | foreach ($detectorTypes as $detectorType) { |
| 79 | 79 | if (!class_exists($detectorType)) { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $response = $detector->getResponse(); |
| 87 | 87 | |
| 88 | 88 | if ($response->isValid()) { |
| 89 | - $results[] = $response; |
|
| 89 | + $results[ ] = $response; |
|
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | */ |
| 98 | 98 | public function addDetail($detail) |
| 99 | 99 | { |
| 100 | - $this->details[] = $detail; |
|
| 100 | + $this->details[ ] = $detail; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $result = $this->getIndex(); |
| 84 | 84 | |
| 85 | 85 | if ($result !== false) { |
| 86 | - return static::$name[(int) $result]; |
|
| 86 | + return static::$name[ (int) $result ]; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return ''; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $result = $this->getIndex(); |
| 98 | 98 | |
| 99 | 99 | if ($result !== false) { |
| 100 | - return static::$type[(int) $result]; |
|
| 100 | + return static::$type[ (int) $result ]; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | return GermanyDetector::PLATE_TYPE_UNKNOWN; |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | $plateParts = $this->seperatedLicensePlate; |
| 29 | 29 | |
| 30 | 30 | /** @var AbstractGermanyPlate $plateClassname */ |
| 31 | - $plateClassname = __NAMESPACE__ . '\\Germany\\' . 'Plate' . $this->mb_ucfirst(mb_strtolower($plateParts[0])); |
|
| 31 | + $plateClassname = __NAMESPACE__ . '\\Germany\\' . 'Plate' . $this->mb_ucfirst(mb_strtolower($plateParts[ 0 ])); |
|
| 32 | 32 | |
| 33 | 33 | if (class_exists($plateClassname)) { |
| 34 | - $licensePlate = count($plateParts) > 2 ? $plateParts[0] . ' ' . $plateParts[1] . ' ' . $plateParts[2] : $plateParts[0] . ' ' . $plateParts[1]; |
|
| 34 | + $licensePlate = count($plateParts) > 2 ? $plateParts[ 0 ] . ' ' . $plateParts[ 1 ] . ' ' . $plateParts[ 2 ] : $plateParts[ 0 ] . ' ' . $plateParts[ 1 ]; |
|
| 35 | 35 | |
| 36 | 36 | /** @var AbstractGermanyPlate $plate */ |
| 37 | 37 | $plate = new $plateClassname($licensePlate); |