Completed
Push — master ( 3755f4...b380a9 )
by Neomerx
03:21
created
sample/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
sample/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
sample/Validation/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.