AKSW / Erfurt

PHP5 / Zend based Semantic Web API for Social Semantic Software
41 stars 27 forks source link

Refactor `is/areModel[s]Allowed()` #113

Open white-gecko opened 8 years ago

white-gecko commented 8 years ago

Refactor isModelAllowed() and areModelsAllowed() in library/Erfurt/Ac/Default.php from

singular () {
  plural()[1];
}

plural () {
  loop {
    operation
  }
}

to

singular () {
  operation
}

plural () {
  loop {
    singluar()
  }
}