@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Interfaces\ValidatorInterface; |
@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Interfaces\ValidatorInterface; |
@@ -1,20 +1,20 @@ |
||
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 | /** |
@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Interfaces\ValidatorInterface; |
@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Exception\UnspecifiedValidatorException; |
@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Interfaces\ValidatorInterface; |
@@ -1,20 +1,20 @@ |
||
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 | /** |
@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Interfaces\ValidatorInterface; |
@@ -37,11 +37,11 @@ |
||
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 | ]; |
@@ -1,20 +1,20 @@ |
||
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 | use Mcustiel\SimpleRequest\Interfaces\ValidatorInterface; |