Passed
Push — master ( b60607...02889e )
by Dominik
02:25
created
public/index_dev.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 function checkAllowedIp($remoteAddress)
6 6
 {
7
-    if(in_array($remoteAddress, array('127.0.0.1', 'fe80::1', '::1'), true)) {
7
+    if (in_array($remoteAddress, array('127.0.0.1', 'fe80::1', '::1'), true)) {
8 8
         return true;
9 9
     }
10 10
     $matches = array();
11 11
     // http://en.wikipedia.org/wiki/Private_network
12
-    if(preg_match('/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/', $remoteAddress, $matches) === 1) {
13
-        for($i=1;$i<5;$i++) {
12
+    if (preg_match('/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/', $remoteAddress, $matches) === 1) {
13
+        for ($i = 1; $i < 5; $i++) {
14 14
             $matches[$i] = (int) $matches[$i];
15 15
         }
16 16
         // localhost
17
-        if($matches[1] === 127) {
17
+        if ($matches[1] === 127) {
18 18
             return true;
19 19
         }
20
-        if($matches[1] === 10) {
20
+        if ($matches[1] === 10) {
21 21
             return true;
22 22
         }
23
-        if($matches[1] === 172 && $matches[2] >= 16 && $matches[2] <= 31) {
23
+        if ($matches[1] === 172 && $matches[2] >= 16 && $matches[2] <= 31) {
24 24
             return true;
25 25
         }
26
-        if($matches[1] === 192 && $matches[2] === 168) {
26
+        if ($matches[1] === 192 && $matches[2] === 168) {
27 27
             return true;
28 28
         }
29 29
     }
@@ -42,6 +42,6 @@  discard block
 block discarded – undo
42 42
 $env = 'dev';
43 43
 
44 44
 /** @var \Slim\App $app */
45
-$app = require_once __DIR__ . '/../app/app.php';
45
+$app = require_once __DIR__.'/../app/app.php';
46 46
 
47 47
 $app->run();
Please login to merge, or discard this patch.
public/index_test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 if (php_sapi_name() !== 'cli-server') {
6 6
     header('HTTP/1.0 403 Forbidden');
@@ -12,6 +12,6 @@  discard block
 block discarded – undo
12 12
 $env = 'test';
13 13
 
14 14
 /** @var \Slim\App $app */
15
-$app = require_once __DIR__ . '/../app/app.php';
15
+$app = require_once __DIR__.'/../app/app.php';
16 16
 
17 17
 $app->run();
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 $loader = require_once __DIR__.'/../app/autoload.php';
6 6
 
7 7
 $env = 'prod';
8 8
 
9 9
 /** @var \Slim\App $app */
10
-$app = require_once __DIR__ . '/../app/app.php';
10
+$app = require_once __DIR__.'/../app/app.php';
11 11
 
12 12
 $app->run();
Please login to merge, or discard this patch.
app/app.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
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton;
6 6
 
Please login to merge, or discard this patch.
app/Serialization/LinkGenerator.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
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton\Serialization;
6 6
 
Please login to merge, or discard this patch.
app/middlewares.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
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton;
6 6
 
Please login to merge, or discard this patch.
app/Model/Course.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
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton\Model;
6 6
 
Please login to merge, or discard this patch.
app/Search/CourseSearch.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
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton\Search;
6 6
 
Please login to merge, or discard this patch.
app/Repository/CourseRepository.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
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton\Repository;
6 6
 
Please login to merge, or discard this patch.