Completed
Pull Request — development (#546)
by Nick
06:41
created
htdocs/src/Oc/Language/LanguageEntity.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,15 +94,15 @@
 block discarded – undo
94 94
      */
95 95
     public function fromDatabaseArray(array $data)
96 96
     {
97
-        $this->short = (string) strtolower($data['short']);
98
-        $this->name = (string) $data['name'];
99
-        $this->nativeName = (string) $data['native_name'];
100
-        $this->de = (string) $data['de'];
101
-        $this->en = (string) $data['en'];
102
-        $this->translationId = (int) $data['trans_id'];
103
-        $this->listDefaultDe = (bool) $data['list_default_de'];
104
-        $this->listDefaultEn = (bool) $data['list_default_en'];
105
-        $this->isTranslated = (bool) $data['is_translated'];
97
+        $this->short = (string)strtolower($data['short']);
98
+        $this->name = (string)$data['name'];
99
+        $this->nativeName = (string)$data['native_name'];
100
+        $this->de = (string)$data['de'];
101
+        $this->en = (string)$data['en'];
102
+        $this->translationId = (int)$data['trans_id'];
103
+        $this->listDefaultDe = (bool)$data['list_default_de'];
104
+        $this->listDefaultEn = (bool)$data['list_default_en'];
105
+        $this->isTranslated = (bool)$data['is_translated'];
106 106
 
107 107
         return $this;
108 108
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Country/CountryEntity.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,15 +94,15 @@
 block discarded – undo
94 94
      */
95 95
     public function fromDatabaseArray(array $data)
96 96
     {
97
-        $this->short = (string) $data['short'];
98
-        $this->name = (string) $data['name'];
99
-        $this->de = (string) $data['de'];
100
-        $this->en = (string) $data['en'];
101
-        $this->translationId = (int) $data['trans_id'];
102
-        $this->listDefaultDe = (bool) $data['list_default_de'];
103
-        $this->listDefaultEn = (bool) $data['list_default_en'];
104
-        $this->sortDe = (string) $data['sort_de'];
105
-        $this->sortEn = (string) $data['sort_en'];
97
+        $this->short = (string)$data['short'];
98
+        $this->name = (string)$data['name'];
99
+        $this->de = (string)$data['de'];
100
+        $this->en = (string)$data['en'];
101
+        $this->translationId = (int)$data['trans_id'];
102
+        $this->listDefaultDe = (bool)$data['list_default_de'];
103
+        $this->listDefaultEn = (bool)$data['list_default_en'];
104
+        $this->sortDe = (string)$data['sort_de'];
105
+        $this->sortEn = (string)$data['sort_en'];
106 106
 
107 107
         return $this;
108 108
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Page/BlockEntity.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             'page_id' => $this->pageId,
70 70
             'title' => $this->title,
71 71
             'html' => $this->html,
72
-            'position' => (int) $this->position,
72
+            'position' => (int)$this->position,
73 73
             'updated_at' => $this->updatedAt->format(DateTime::ATOM),
74 74
             'active' => $this->active
75 75
         ];
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function fromDatabaseArray(array $data)
86 86
     {
87
-        $this->id = (int) $data['id'];
88
-        $this->pageId = (int) $data['page_id'];
89
-        $this->title = (string) $data['title'];
90
-        $this->html = (string) $data['html'];
91
-        $this->position = (int) $data['position'];
87
+        $this->id = (int)$data['id'];
88
+        $this->pageId = (int)$data['page_id'];
89
+        $this->title = (string)$data['title'];
90
+        $this->html = (string)$data['html'];
91
+        $this->position = (int)$data['position'];
92 92
         $this->updatedAt = new DateTime($data['updated_at']);
93
-        $this->active = (bool) $data['active'];
93
+        $this->active = (bool)$data['active'];
94 94
 
95 95
         return $this;
96 96
     }
Please login to merge, or discard this patch.
htdocs/okapi/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$GLOBALS['rootpath'] = __DIR__.'/../';
3
+$GLOBALS['rootpath'] = __DIR__ . '/../';
4 4
 
5 5
 require_once __DIR__ . '/../vendor/autoload.php';
6 6
 
7
-require_once __DIR__ .'/../vendor/opencaching/okapi/okapi/index.php';
7
+require_once __DIR__ . '/../vendor/opencaching/okapi/okapi/index.php';
Please login to merge, or discard this patch.