@@ -77,12 +77,12 @@ discard block |
||
77 | 77 | 'interests' => v::isListOfStrings(), |
78 | 78 | ]; |
79 | 79 | |
80 | - $this->console('Invalid data' . PHP_EOL); |
|
80 | + $this->console('Invalid data'.PHP_EOL); |
|
81 | 81 | $this->printErrors( |
82 | 82 | v::validator(v::arrayX($rules))->validate($invalidInput) |
83 | 83 | ); |
84 | 84 | |
85 | - $this->console(PHP_EOL . 'Valid data' . PHP_EOL); |
|
85 | + $this->console(PHP_EOL.'Valid data'.PHP_EOL); |
|
86 | 86 | $this->printErrors( |
87 | 87 | v::validator(v::arrayX($rules))->validate($validInput) |
88 | 88 | ); |
@@ -120,11 +120,11 @@ discard block |
||
120 | 120 | $paramValue = $error->getParameterValue(); |
121 | 121 | $errorMsg = $translator->translate($error); |
122 | 122 | |
123 | - $this->console("Param `$paramName` failed for `$paramValue` with: $errorMsg" . PHP_EOL); |
|
123 | + $this->console("Param `$paramName` failed for `$paramValue` with: $errorMsg".PHP_EOL); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | if ($hasErrors === false) { |
127 | - $this->console('No errors' . PHP_EOL); |
|
127 | + $this->console('No errors'.PHP_EOL); |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php namespace Sample; |
2 | 2 | |
3 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
3 | +require_once __DIR__.'/vendor/autoload.php'; |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright 2015-2016 [email protected] (www.neomerx.com) |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public static function isEmail() |
32 | 32 | { |
33 | - $condition = function ($input) { |
|
33 | + $condition = function($input) { |
|
34 | 34 | return filter_var($input, FILTER_VALIDATE_EMAIL) !== false; |
35 | 35 | }; |
36 | 36 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public static function isExistingPaymentPlan() |
64 | 64 | { |
65 | 65 | // emulate database request |
66 | - $existsInDatabase = function ($recordId) { |
|
66 | + $existsInDatabase = function($recordId) { |
|
67 | 67 | return $recordId < 3; |
68 | 68 | }; |
69 | 69 |