@@ -9,22 +9,22 @@ discard block |
||
| 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 |
||
| 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 | }); |
@@ -14,7 +14,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | }); |
@@ -18,17 +18,17 @@ |
||
| 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(); |