Completed
Push — master ( 047121...54c8bf )
by Patrick
02:58 queued 01:25
created
api/v1/class.AreasAPI.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
         if($args['name'] === '*')
33 33
         {
34 34
             $leads = $dataTable->read($odata->filter, $odata->select, $odata->top,
35
-                                  $odata->skip, $odata->orderby);
35
+                                    $odata->skip, $odata->orderby);
36 36
         }
37 37
         else
38 38
         {
39 39
             $leads = $dataTable->read(new \Data\Filter("area eq '".$args['name']."'"), $odata->select, $odata->top,
40
-                                  $odata->skip, $odata->orderby);
40
+                                    $odata->skip, $odata->orderby);
41 41
         }
42 42
         if(empty($leads))
43 43
         {
Please login to merge, or discard this patch.
profile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,21 +36,21 @@
 block discarded – undo
36 36
 {
37 37
     $mails = $page->user->allMail;
38 38
     $count = count($mails);
39
-    $page->body.='
39
+    $page->body .= '
40 40
             <label for="allMail" class="col-sm-2 control-label">Registered Emails:</label>
41 41
             <div class="col-sm-10">';
42 42
     for($i = 0; $i < $count; $i++)
43 43
     {
44
-        $page->body.='<div class="input-group">
44
+        $page->body .= '<div class="input-group">
45 45
                         <input type="text" class="form-control" value="'.$mails[$i].'" readonly>
46 46
                         <div class="input-group-append">
47 47
                           <button class="btn btn-outline-danger" type="button" onClick="removeEmail(\''.$mails[$i].'\')"><i class="fas fa-minus"></i></button>
48 48
                         </div>
49 49
                       </div>';
50 50
     }
51
-    $page->body.='</div>';
51
+    $page->body .= '</div>';
52 52
 }
53
-$page->body.='
53
+$page->body .= '
54 54
             <label for="mail" class="col-sm-2 control-label">Email:</label>
55 55
             <div class="col-sm-10">
56 56
                 <input class="form-control" id="mail" name="mail" type="text" readonly/>
Please login to merge, or discard this patch.
Autoload.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@  discard block
 block discarded – undo
9 9
 * @license http://www.apache.org/licenses/ Apache 2.0 License
10 10
  */
11 11
 
12
-if(file_exists(__DIR__ . '/vendor/autoload.php'))
12
+if(file_exists(__DIR__.'/vendor/autoload.php'))
13 13
 {
14
-    require(__DIR__ . '/vendor/autoload.php');
14
+    require(__DIR__.'/vendor/autoload.php');
15 15
 }
16 16
 
17
-spl_autoload_register(function ($class) {
17
+spl_autoload_register(function($class) {
18 18
 
19 19
     // project-specific namespace prefix
20 20
     $prefix = 'Flipside\\Profiles\\';
21 21
 
22 22
     // base directory for the namespace prefix
23
-    $base_dir = __DIR__ . '/';
23
+    $base_dir = __DIR__.'/';
24 24
 
25 25
     // does the class use the namespace prefix?
26 26
     $len = strlen($prefix);
27
-    if (strncmp($prefix, $class, $len) !== 0) {
27
+    if(strncmp($prefix, $class, $len) !== 0) {
28 28
         // no, move to the next registered autoloader
29 29
         return;
30 30
     }
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
     // replace the namespace prefix with the base directory, replace namespace
36 36
     // separators with directory separators in the relative class name, append
37 37
     // with .php
38
-    $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
38
+    $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
39 39
 
40 40
     // if the file exists, require it
41
-    if (file_exists($file)) {
41
+    if(file_exists($file)) {
42 42
         require $file;
43 43
     }
44 44
 });
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
     require(__DIR__ . '/vendor/autoload.php');
15 15
 }
16 16
 
17
-spl_autoload_register(function ($class) {
17
+spl_autoload_register(function ($class)
18
+{
18 19
 
19 20
     // project-specific namespace prefix
20 21
     $prefix = 'Flipside\\Profiles\\';
@@ -24,7 +25,8 @@  discard block
 block discarded – undo
24 25
 
25 26
     // does the class use the namespace prefix?
26 27
     $len = strlen($prefix);
27
-    if (strncmp($prefix, $class, $len) !== 0) {
28
+    if (strncmp($prefix, $class, $len) !== 0)
29
+    {
28 30
         // no, move to the next registered autoloader
29 31
         return;
30 32
     }
@@ -38,7 +40,8 @@  discard block
 block discarded – undo
38 40
     $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
39 41
 
40 42
     // if the file exists, require it
41
-    if (file_exists($file)) {
43
+    if (file_exists($file))
44
+    {
42 45
         require $file;
43 46
     }
44 47
 });
Please login to merge, or discard this patch.
lead/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@
 block discarded – undo
18 18
 $aar_count = 0;
19 19
 if($aarGroup !== false)
20 20
 {
21
-    $aar_count  = $aarGroup->member_count();
21
+    $aar_count = $aarGroup->member_count();
22 22
 }
23 23
 $af_count = 0;
24 24
 if($afGroup !== false)
25 25
 {
26
-    $af_count   = $afGroup->member_count();
26
+    $af_count = $afGroup->member_count();
27 27
 }
28 28
 $cc_count = 0;
29 29
 if($ccGroup !== false)
30 30
 {
31
-    $cc_count   = $ccGroup->member_count();
31
+    $cc_count = $ccGroup->member_count();
32 32
 }
33 33
 
34 34
 $page->content['cards'] = array();
Please login to merge, or discard this patch.