Completed
Pull Request — v3 (#296)
by
unknown
04:12
created
src/GameQ/Exception/Protocol.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- *
18
- *
19
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     *
18
+     *
19
+     */
20 20
 
21 21
 namespace GameQ;
22 22
 
Please login to merge, or discard this patch.
src/GameQ/Filters/Normalize.php 2 patches
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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         if (isset($result['players']) && count($result['players']) > 0) {
65 65
             // Iterate
66 66
             foreach ($result['players'] as $key => $player) {
67
-                $result['players'][ $key ] = array_merge($player, $this->check('player', $player));
67
+                $result['players'][$key] = array_merge($player, $this->check('player', $player));
68 68
             }
69 69
         } else {
70 70
             $result['players'] = [];
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         if (isset($result['teams']) && count($result['teams']) > 0) {
75 75
             // Iterate
76 76
             foreach ($result['teams'] as $key => $team) {
77
-                $result['teams'][ $key ] = array_merge($team, $this->check('team', $team));
77
+                $result['teams'][$key] = array_merge($team, $this->check('team', $team));
78 78
             }
79 79
         } else {
80 80
             $result['teams'] = [];
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         // Normalized return array
105 105
         $normalized = [];
106 106
 
107
-        if (isset($this->normalize[ $section ]) && !empty($this->normalize[ $section ])) {
108
-            foreach ($this->normalize[ $section ] as $property => $raw) {
107
+        if (isset($this->normalize[$section]) && !empty($this->normalize[$section])) {
108
+            foreach ($this->normalize[$section] as $property => $raw) {
109 109
                 // Default the value for the new key as null
110 110
                 $value = null;
111 111
 
@@ -113,18 +113,18 @@  discard block
 block discarded – undo
113 113
                     // Iterate over the raw property we want to use
114 114
                     foreach ($raw as $check) {
115 115
                         if (array_key_exists($check, $data)) {
116
-                            $value = $data[ $check ];
116
+                            $value = $data[$check];
117 117
                             break;
118 118
                         }
119 119
                     }
120 120
                 } else {
121 121
                     // String
122 122
                     if (array_key_exists($raw, $data)) {
123
-                        $value = $data[ $raw ];
123
+                        $value = $data[$raw];
124 124
                     }
125 125
                 }
126 126
 
127
-                $normalized[ 'gq_' . $property ] = $value;
127
+                $normalized['gq_' . $property] = $value;
128 128
             }
129 129
         }
130 130
 
Please login to merge, or discard this patch.
src/GameQ/Filters/Test.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Aa3.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Aapg.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Arkse.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Armedassault2oa.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Armedassault3.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Bf4.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 GameQ.
4
- *
5
- * GameQ 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
- * GameQ 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 Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
- */
3
+     * This file is part of GameQ.
4
+     *
5
+     * GameQ 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
+     * GameQ 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 Lesser General Public License for more details.
14
+     *
15
+     * You should have received a copy of the GNU Lesser General Public License
16
+     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
+     */
18 18
 
19 19
 namespace GameQ;
20 20
 
Please login to merge, or discard this patch.