Completed
Push — master ( 653e9c...250e23 )
by Mariano
06:12
created
src/Filter/StringReplace.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
3
+     * This file is part of php-simple-request.
4 4
 *
5 5
 * php-simple-request is free software: you can redistribute it and/or modify
6 6
 * it under the terms of the GNU Lesser General Public License as published by
Please login to merge, or discard this patch.
src/Util/FilterBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             throw new FilterDoesNotExistException("Filter class {$type} does not exist");
45 45
         }
46 46
         $filter = new $type;
47
-        if (! ($filter instanceof FilterInterface)) {
47
+        if (!($filter instanceof FilterInterface)) {
48 48
             throw new FilterDoesNotExistException(
49 49
                 "Filter class {$type} must implement " . FilterInterface::class
50 50
             );
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Util/ValidatorBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             throw new ValidatorDoesNotExistException("Validator class {$type} does not exist");
44 44
         }
45 45
         $validator = new $type;
46
-        if (! ($validator instanceof ValidatorInterface)) {
46
+        if (!($validator instanceof ValidatorInterface)) {
47 47
             throw new ValidatorDoesNotExistException(
48 48
                 "Validator class {$type} must implement " . ValidatorInterface::class
49 49
             );
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Validator/AllOf.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) All later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT All WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) All later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT All WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Validator/Not.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
      */
46 46
     public function validate($value)
47 47
     {
48
-        return ! $this->validator->validate($value);
48
+        return !$this->validator->validate($value);
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Validator/Type.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
37 37
      * @var array
38 38
      */
39 39
     private $validTypes = [
40
-        'array' => [ 'array' ],
41
-        'object' => [ 'object' ],
42
-        'integer' => [ 'integer' ],
43
-        'number' => [ 'integer', 'double' ],
44
-        'string' => [ 'string' ],
40
+        'array' => ['array'],
41
+        'object' => ['object'],
42
+        'integer' => ['integer'],
43
+        'number' => ['integer', 'double'],
44
+        'string' => ['string'],
45 45
         'boolean' => ['boolean'],
46 46
         'null' => ['NULL'],
47 47
     ];
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Validator/Url.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Annotation/AnnotationWithAssociatedClass.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.
src/Annotation/Filter/Capitalize.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of php-simple-request.
4
- *
5
- * php-simple-request is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * php-simple-request is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of php-simple-request.
4
+     *
5
+     * php-simple-request is free software: you can redistribute it and/or modify
6
+     * it under the terms of the GNU Lesser General Public License as published by
7
+     * the Free Software Foundation, either version 3 of the License, or
8
+     * (at your option) any later version.
9
+     *
10
+     * php-simple-request is distributed in the hope that it will be useful,
11
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
+     * GNU General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU General Public License
16
+     * along with php-simple-request.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 namespace Mcustiel\SimpleRequest\Validator;
19 19
 
20 20
 /**
Please login to merge, or discard this patch.