Completed
Branch master (aa89a4)
by Magnus
02:35
created
src/Vader/VaderHandler.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -274,13 +274,13 @@
 block discarded – undo
274 274
 //     $val['color'] = 'red';
275 275
 // }
276 276
 
277
-   //  $cars = array
278
-   // (
279
-   // array("Volvo",22,18),
280
-   // array("BMW",15,13),
281
-   // array("Saab",5,2),
282
-   // array("Land Rover",17,15)
283
-   // );
277
+    //  $cars = array
278
+    // (
279
+    // array("Volvo",22,18),
280
+    // array("BMW",15,13),
281
+    // array("Saab",5,2),
282
+    // array("Land Rover",17,15)
283
+    // );
284 284
 
285 285
 
286 286
     // $unixTimestamp = $_POST['timestamp'];
Please login to merge, or discard this patch.
src/Vader/jsonVaderController.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * ANY METHOD mountpoint/
68 68
      * ANY METHOD mountpoint/index
69 69
      *
70
-         */
70
+     */
71 71
     // public function indexActionGet()
72 72
     // {
73 73
     //     // $request = $this->di->get("request");
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 
200 200
     public function jsonVaderActionPost() : object
201 201
     {
202
-           // $session = $this->di->session;
203
-           // $ipHandler = new \Malm18\IPChecker\IpHandler();
204
-           $request = $this->di->request;
205
-           $response = $this->di->response;
206
-           $theIP = $request->getPost("ip1");
207
-           $pastOrFuture = $request->getPost("pastOrFuture");
202
+            // $session = $this->di->session;
203
+            // $ipHandler = new \Malm18\IPChecker\IpHandler();
204
+            $request = $this->di->request;
205
+            $response = $this->di->response;
206
+            $theIP = $request->getPost("ip1");
207
+            $pastOrFuture = $request->getPost("pastOrFuture");
208 208
 
209 209
         // if (!is_null($theIP)) {
210 210
         //     $ipInfo = $ipHandler->checkIP($theIP);
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         //      // $session->set("type", $ipInfo['type']);
214 214
         // }
215 215
 
216
-           return $response->redirect("json-vader?ip=$theIP&pastOrFuture=$pastOrFuture");
216
+            return $response->redirect("json-vader?ip=$theIP&pastOrFuture=$pastOrFuture");
217 217
     }
218 218
 
219 219
     // public function jsonResultPageActionGet() : object
Please login to merge, or discard this patch.
src/Vader/VaderController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             // $session->set("country_name", $ipInfo['country_name']);
76 76
             // var_dump($session);
77 77
         }
78
-           return $response->redirect("vader/resultpage");
78
+            return $response->redirect("vader/resultpage");
79 79
     }
80 80
 
81 81
 
Please login to merge, or discard this patch.
src/IPChecker/IPHandler.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@  discard block
 block discarded – undo
7 7
 
8 8
 
9 9
     /**
10
-    * Check active.
11
-    *
12
-    */
10
+     * Check active.
11
+     *
12
+     */
13 13
     // public function checkIP($theIP)
14 14
     // {
15 15
     //     $theIP2 = $theIP . " svansen";
@@ -196,32 +196,32 @@  discard block
 block discarded – undo
196 196
     //     }
197 197
     // }
198 198
 
199
-   // /**
200
-   //  * mainRoll.
201
-   //  *
202
-   //  * @return void , void
203
-   //  */
204
-   //  public function mainRoll($human, $computer)
205
-   //  {
206
-   //      if ($computer->getActive() == true) {
207
-   //          $computer->setActive(false);
208
-   //          $human->setActive(true);
209
-   //      } else {
210
-   //          // $human->setTotalScore($human->getTotalScore + $human->getTurnScore);
211
-   //          $computer->setActive(true);
212
-   //          $human->setActive(false);
213
-   //      }
214
-   //      $computer->setTotalScore($computer->getTotalScore() + $computer->getTurnScore());
215
-   //      $human->setTotalScore($human->getTotalScore() + $human->getTurnScore());
216
-   //      $computer->setTurnScore(0);
217
-   //      $human->setTurnScore(0);
218
-   //      $computer->setRolls(0);
219
-   //      $human->setRolls(0);
220
-   //      $human->setDie1(null);
221
-   //      $human->setDie2(null);
222
-   //      $computer->setDie1(null);
223
-   //      $computer->setDie2(null);
224
-   //  }
199
+    // /**
200
+    //  * mainRoll.
201
+    //  *
202
+    //  * @return void , void
203
+    //  */
204
+    //  public function mainRoll($human, $computer)
205
+    //  {
206
+    //      if ($computer->getActive() == true) {
207
+    //          $computer->setActive(false);
208
+    //          $human->setActive(true);
209
+    //      } else {
210
+    //          // $human->setTotalScore($human->getTotalScore + $human->getTurnScore);
211
+    //          $computer->setActive(true);
212
+    //          $human->setActive(false);
213
+    //      }
214
+    //      $computer->setTotalScore($computer->getTotalScore() + $computer->getTurnScore());
215
+    //      $human->setTotalScore($human->getTotalScore() + $human->getTurnScore());
216
+    //      $computer->setTurnScore(0);
217
+    //      $human->setTurnScore(0);
218
+    //      $computer->setRolls(0);
219
+    //      $human->setRolls(0);
220
+    //      $human->setDie1(null);
221
+    //      $human->setDie2(null);
222
+    //      $computer->setDie1(null);
223
+    //      $computer->setDie2(null);
224
+    //  }
225 225
 
226 226
 
227 227
     // /**
Please login to merge, or discard this patch.
src/IPChecker/IPController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             // $session->set("country_name", $ipInfo['country_name']);
69 69
         }
70 70
 
71
-           return $response->redirect("ip-checker/resultpage");
71
+            return $response->redirect("ip-checker/resultpage");
72 72
     }
73 73
 
74 74
 
Please login to merge, or discard this patch.
src/IPChecker/IPJsonController.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * ANY METHOD mountpoint/
68 68
      * ANY METHOD mountpoint/index
69 69
      *
70
-         */
70
+     */
71 71
     // public function indexActionGet()
72 72
     // {
73 73
     //     // $request = $this->di->get("request");
@@ -181,11 +181,11 @@  discard block
 block discarded – undo
181 181
 
182 182
     public function ipJsonCheckerActionPost() : object
183 183
     {
184
-           // $session = $this->di->session;
185
-           // $ipHandler = new IpHandler();
186
-           $request = $this->di->request;
187
-           $response = $this->di->response;
188
-           $theIP = $request->getPost("ip1");
184
+            // $session = $this->di->session;
185
+            // $ipHandler = new IpHandler();
186
+            $request = $this->di->request;
187
+            $response = $this->di->response;
188
+            $theIP = $request->getPost("ip1");
189 189
 
190 190
         // if (!is_null($theIP)) {
191 191
         //     $ipInfo = $ipHandler->checkIP($theIP);
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         //      // $session->set("type", $ipInfo['type']);
196 196
         // }
197 197
 
198
-           return $response->redirect("ip-json-checker?ip=$theIP");
198
+            return $response->redirect("ip-json-checker?ip=$theIP");
199 199
     }
200 200
 
201 201
     // public function jsonResultPageActionGet() : object
Please login to merge, or discard this patch.